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

cannot find -lz

Altera_Forum
Honored Contributor II
1,331 Views

When i compile the uClinux kernel, I met an error shown as below: 

 

/opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/../../../../nios2-linux-uclibc/bin/ld.real: cannot find -lz 

collect2: ld returned 1 exit status 

make[4]: *** [boa] 错误 1 

make[4]: Leaving directory `/home/eagle/software/uClinux-dist/user/boa/src' 

make[3]: *** [all] 错误 2 

make[3]: Leaving directory `/home/eagle/software/uClinux-dist/user/boa' 

make[2]: *** [boa] 错误 2 

make[2]: Leaving directory `/home/eagle/software/uClinux-dist/user' 

make[1]: *** [all] 错误 2 

make[1]: Leaving directory `/home/eagle/software/uClinux-dist/user' 

make: *** [subdirs] 错误 1 

 

What should i do now?
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
659 Views

Sorry, it was my mistake. 

Please update to nios2 patch ver 27. ( you need to Reverse old patch first !) 

Or install nios2libs.tar.bz2, which has zlib in it.
0 Kudos
Altera_Forum
Honored Contributor II
659 Views

 

--- Quote Start ---  

originally posted by hippo@Jan 7 2007, 09:55 PM 

sorry, it was my mistake. 

please update to nios2 patch ver 27. ( you need to reverse old patch first !) 

or install nios2libs.tar.bz2, which has zlib in it. 

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

--- quote end ---  

 

--- Quote End ---  

 

 

now it&#39;s ok! I have used v27
0 Kudos
Reply