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

-lpthread

Altera_Forum
Honored Contributor II
1,084 Views

when I build a project, I have "-lpthread" in Libraries. But it shown that "cygdrive/e/altera/kits/nios2_51/bin/nios2-gnutools/H-i686-pc-cygwin/bin/../lib/gcc/nios2-elf/3.4.1/../../../../nios2-elf/bin/ld: cannot find  

-lpthread". Can anyone know why? thanks!
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
355 Views

Hi,hippo 

I have resolved this problem by adding uClibc/lib. But when I upload to the flash  

and run under uClinux. Another comes out, "BINFMT_FLAT: bad magic /rev(0x10101ff,need 0x4)", can you tell me why? thanks!
0 Kudos
Altera_Forum
Honored Contributor II
355 Views

 

--- Quote Start ---  

originally posted by cuimi@Sep 26 2006, 11:58 PM 

hi,hippo 

i have resolved this problem by adding uclibc/lib. but when i upload to the flash  

and run under uclinux. another comes out, "binfmt_flat: bad magic /rev(0x10101ff,need 0x4)", can you tell me why? thanks! 

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

--- quote end ---  

 

--- Quote End ---  

 

 

Silly question here... Did you compile your executable with the "-elf2flt" option? The kernel is expecting to see a FLT (not ELF) formatted executable. 

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
355 Views

thank you!  

I have resolved it!
0 Kudos
Reply