Le 26/03/2015 05:58, meet bhatt a écrit :
"Could you send the output of:

echo 'main(){}' | gcc -xc -v -Wl,-verbose -lrt - 2>&1 | grep libpthread"

The o/p is:
libpthread.so.0 needed by /mnt/LFS/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib64/librt.so
found ld-linux-x86-64.so.2 at /tools/lib/ld-linux-x86-64.so.2
/mnt/LFS/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../x86_64-unknown-linux-gnu/bin/ld: warning: libpthread.so.0, needed by /mnt/LFS/tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../lib64/librt.so, not found (try using -rpath or -rpath-link)

"I suspect something with binutils.":
Why? You suspect something wrong with the linker?

Well, I have had that kind of errors when the --with-sysroot switch was not present when building binutils-pass2. The problem with the output above is that the message does not seem to tell where "ld" looks for libpthread.

Another problem is that you should have been hit earlier by that (For example when building "check") if it comes from binutils.

Anyway, I just checked. The output of the command above gives for me:
libpthread.so.0 needed by /tools/lib/../lib64/librt.so
found libpthread.so.0 at /tools/lib/libpthread.so.0

So I still think it is a problem with the linker. Can you check the configure command you passed when building binutils-pass2 (specially the "\" continuation characters).

Pierre

--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to