Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

error when building tool chain

I am getting the following errors (lost of them) when I try to build the tool chain:

toolchain_build_nios2/gcc-3.4.6-final/nios2-linux-uclibc/libstdc++-v3/include/ext/rope:2035:37: macro "index" requires 2 arguments, but only 1 given.

Has anyone else seen this error or know how to fix it?

8 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    the build script is updated to fix this, download the build0329.zip . Remove old build dirs by uncomment line1 of build script.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo@Mar 29 2006, 08:11 PM

    the build script is updated to fix this, download the build0329.zip . remove old build dirs by uncomment line1 of build script.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=13913)

    --- quote end ---

    --- Quote End ---

    Thanks, I&#39;ll try it...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo@Mar 29 2006, 08:11 PM

    the build script is updated to fix this, download the build0329.zip . remove old build dirs by uncomment line1 of build script.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=13913)

    --- quote end ---

    --- Quote End ---

    Thanks, that fixed the build tools problem, but now I have another one. I get this error message when I try to build the kernel after I configured it to build for the NIOS2 eval board:

    build_nios2/staging_dir/bin/nios2-linux-ld:

    line 174: /buildroot/build_nios2/staging_dir/bin/nios2-linux-ld.real: No such file or directory
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    What is the command you used to compile kernel?

    Do you have more message, 10 more liness?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo@Mar 29 2006, 10:28 PM

    what is the command you used to compile kernel?

    do you have more message, 10 more liness?

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=13920)

    --- quote end ---

    --- Quote End ---

    Here it is:

    make ARCH=nios2nommu

    CHK include/linux/version.h

    CC arch/nios2nommu/kernel/asm-offsets.s

    GEN include/asm-nios2nommu/asm-offsets.h

    CC init/main.o

    CHK include/linux/compile.h

    UPD include/linux/compile.h

    CC init/version.o

    CC init/do_mounts.o

    LD init/mounts.o

    /opt/toolchain_nios2/bin/nios2-linux-ld: line 163: /opt/toolchain_nios2/bin/nios2-linux-ld.real: No such file or directory

    /opt/toolchain_nios2/bin/nios2-linux-ld: line 163: exec: /opt/toolchain_nios2/bin/nios2-linux-ld.real: cannot execute: No such file or directory

    make[1]: *** [init/mounts.o] Error 126

    make: *** [init] Error 2
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by fmcmurra@Mar 31 2006, 09:52 AM

    /opt/toolchain_nios2/bin/nios2-linux-ld: line 163: /opt/toolchain_nios2/bin/nios2-linux-ld.real: no such file or directory

    --- Quote End ---

    Hi fcmurra,

    Not sure if this is relevant, but it looks like your toolchain seems to be installed under /opt, rather than ~ as per buildroot guide. If this wasn&#39;t your intention, then perhaps you still have an older toolchain installed, which collides with your freshly-built one? If so, try removing &#39;/opt/toolchain_nios2" directory out of your path. Otherwise I have no ideas
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Use this command to compile kernel,

    make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- zImage
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo@Mar 30 2006, 05:06 PM

    use this command to compile kernel,

    make arch=nios2nommu cross_compile=nios2-linux-uclibc- zimage

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=13928)</div>

    --- Quote End ---

    I fixed the problem. I just created a symbolic link, it now compiles without errors. Thanks to everyone who helped...