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++
12603 Discussions

still struggling with toolchain

Altera_Forum
Honored Contributor II
978 Views

Hi, 

 

I tried to build my toolchain following this thread 

 

previous thread (http://forum.niosforum.com/forum/index.php?showtopic=3129&st=0

 

and I did the best I could. But somehow I am still stuck at the busybox. 

 

/home/bdu/NIOS/buildroot/build_nios2/staging_dir/bin-ccache/../lib/gcc/nios2-linux-uclibc/3.4.2/../../../../nios2-linux-uclibc/bin/ld: unrecognized option '-z' 

/home/bdu/NIOS/buildroot/build_nios2/staging_dir/bin-ccache/../lib/gcc/nios2-linux-uclibc/3.4.2/../../../../nios2-linux-uclibc/bin/ld: use the --help option for usage information 

GNU ld version 2.15 

collect2: ld returned 1 exit status 

make[2]: *** [libbusybox.so.1.1.1] Error 1 

make[1]: *** [_all] Error 2 

make[1]: Leaving directory `/home/bdu/NIOS/buildroot/build_nios2/busybox' 

make: *** [/home/bdu/NIOS/buildroot/build_nios2/busybox/busybox] Error 2 

 

 

The ld does not support -z option. I guess this has something to do with the patches or configs. But I could figure out which part I missed. 

 

I'd appreciate any help on this.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
261 Views

Hi bdu, 

 

It try to build shared libbb, which is not supported on nios2. 

In menuconfig of busybox, disable shared libbb. 

It is critical to have the right configs. 

 

Those posts were old. Please follow the new one, 

http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174

There is a new build script, and it should be easier than ever. 

 

Hippo
0 Kudos
Altera_Forum
Honored Contributor II
261 Views

Hi, hippo, 

 

Finally got it working. Thanks for the help! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/laugh.gif  

 

 

--- Quote Start ---  

originally posted by hippo@Feb 9 2006, 01:15 AM 

hi bdu, 

 

it try to build shared libbb, which is not supported on nios2. 

in menuconfig of busybox, disable shared libbb. 

it is critical to have the right configs. 

 

those posts were old. please follow the new one, 

http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174

there is a new build script, and it should be easier than ever. 

 

hippo 

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

--- quote end ---  

 

--- Quote End ---  

0 Kudos
Reply