Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12612 Discussions

error when building tool chain

Altera_Forum
Honored Contributor II
1,083 Views

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?
0 Kudos
8 Replies
Altera_Forum
Honored Contributor II
337 Views

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

0 Kudos
Altera_Forum
Honored Contributor II
337 Views

 

--- 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...
0 Kudos
Altera_Forum
Honored Contributor II
337 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
337 Views

What is the command you used to compile kernel? 

Do you have more message, 10 more liness?
0 Kudos
Altera_Forum
Honored Contributor II
337 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
337 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
337 Views

Use this command to compile kernel, 

make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- zImage
0 Kudos
Altera_Forum
Honored Contributor II
337 Views

 

--- 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...
0 Kudos
Reply