Forum Discussion

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

-lpthread

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!

3 Replies

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

    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!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

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