[lfs-dev] Lfs 8.0-Systemd Failure @ 6.13, Binutils-2.27

Armin K. krejzi.lfs at email.com
Sat Sep 16 18:24:33 PDT 2017


On 17.9.2017 1:12, Bruce Dubbs wrote:
> Dr. George E. Moore wrote:
>> Building LFS version 8.0-systemd. Get error messages executing the "make
>> -k check". Cannot find the -lstdc++ file. Suggestions welcomed. A
>> portion of the output error log follows:
>>
>> -------------------------------------------------------------------------- 
>>
> 
>> g++ -W -Wall    -Wstack-usage=262144 -D_LARGEFILE_SOURCE
>> -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -Bgcctestdir/ -static
>> -o tls_static_test tls_test.o tls_test_file2.o tls_test_main.o
>> tls_test_c.o -lpthread -ldl
>> gcctestdir/ld: error: cannot find -lstdc++
>> collect2: error: ld returned 1 exit status
>> make[5]: *** [Makefile:4104: tls_static_test] Error 1
>> g++ -W -Wall    -Wstack-usage=262144 -D_LARGEFILE_SOURCE
>> -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -Bgcctestdir/ -static
>> -o tls_static_pic_test tls_test_main.o tls_test_pic.o
>> tls_test_file2_pic.o tls_test_c_pic.o -lpthread -ldl
>> gcctestdir/ld: error: cannot find -lstdc++
>> collect2: error: ld returned 1 exit status
>> make[5]: *** [Makefile:4101: tls_static_pic_test] Error 1
>> ...
> 
> We don't need quite so much of the log.
> 
> The output is really fairly clear: error: cannot find -lstdc++
> 
> At this point in Chapter 6, you should have /tools/lib/libstdc++.so
> 
> Also, you really should be using LFS-8.1.
> 
>    -- Bruce
> 

I think I've seen similar issue before. While you're right that he 
should be having that one, he also needs to have 
/usr/lib/libstdc++.so{,.6} symlinked to their /tools/lib counterparts. I 
managed to miss it once when I scripted my build and a similar error 
happened.


More information about the lfs-dev mailing list