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

Bruce Dubbs bruce.dubbs at gmail.com
Sat Sep 16 16:12:12 PDT 2017


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



More information about the lfs-dev mailing list