[lfs-support] ***SPAM*** Re: makefile:382: recipe for target 'perl' failed

Pierre Labastie pierre.labastie at neuf.fr
Thu Mar 26 06:51:11 PDT 2015

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 

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


More information about the lfs-support mailing list