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:
-------------------------------------------------------------------------- make[5]: Entering directory '/sources/binutils-2.27/build/gold/testsuite' make[5]: 'libgoldtest.a' is up to date. make[5]: 'object_unittest' is up to date. make[5]: 'binary_unittest' is up to date. make[5]: 'leb128_unittest' is up to date. make[5]: 'overflow_unittest' is up to date. make[5]: 'icf_virtual_function_folding_test' is up to date. make[5]: 'large_symbol_alignment' is up to date. make[5]: 'basic_test' is up to date. make[5]: 'basic_pic_test' is up to date. make[5]: 'eh_test' is up to date. `echo g++ -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -fno-use-linker-plugin -o basic_static_test | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -static basic_test.o gcctestdir/ld: error: cannot find -lstdc++ ../../../gold/testsuite/basic_test.cc:197: error: undefined reference to 'operator delete(void*, unsigned long)' ../../../gold/testsuite/basic_test.cc:203: error: undefined reference to 'operator delete(void*, unsigned long)' basic_test.o:basic_test.cc:typeinfo for t16b: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info' gcctestdir/ld: the vtable symbol may be undefined because the class is missing its key function basic_test.o:basic_test.cc:typeinfo for t16a: error: undefined reference to 'vtable for __cxxabiv1::__class_type_info' gcctestdir/ld: the vtable symbol may be undefined because the class is missing its key function collect2: error: ld returned 1 exit status make[5]: *** [Makefile:5837: basic_static_test] Error 1 `echo g++ -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -fno-use-linker-plugin -o basic_static_pic_test | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -static basic_pic_test.o gcctestdir/ld: error: cannot find -lstdc++ ../../../gold/testsuite/basic_test.cc:197: error: undefined reference to 'operator delete(void*, unsigned long)' ../../../gold/testsuite/basic_test.cc:203: error: undefined reference to 'operator delete(void*, unsigned long)' basic_pic_test.o:basic_test.cc:typeinfo for t16b: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info' gcctestdir/ld: the vtable symbol may be undefined because the class is missing its key function basic_pic_test.o:basic_test.cc:typeinfo for t16a: error: undefined reference to 'vtable for __cxxabiv1::__class_type_info' gcctestdir/ld: the vtable symbol may be undefined because the class is missing its key function collect2: error: ld returned 1 exit status make[5]: *** [Makefile:5844: basic_static_pic_test] Error 1 make[5]: 'basic_pie_test' is up to date. make[5]: 'constructor_test' is up to date. g++ -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -Bgcctestdir/ -static -o constructor_static_test constructor_test.o -ldl gcctestdir/ld: error: cannot find -lstdc++ collect2: error: ld returned 1 exit status make[5]: *** [Makefile:3381: constructor_static_test] Error 1 make[5]: 'two_file_test' is up to date. make[5]: 'two_file_pic_test' is up to date. g++ -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -Bgcctestdir/ -static -o two_file_static_test two_file_test_1.o two_file_test_1b.o two_file_test_2.o two_file_test_main.o -ldl gcctestdir/ld: error: cannot find -lstdc++ collect2: error: ld returned 1 exit status make[5]: *** [Makefile:4176: two_file_static_test] Error 1 make[5]: 'two_file_shared_1_test' is up to date. make[5]: 'two_file_shared_2_test' is up to date. make[5]: 'two_file_shared_1_pic_2_test' is up to date. make[5]: 'two_file_shared_2_pic_1_test' is up to date. make[5]: 'two_file_same_shared_test' is up to date. make[5]: 'two_file_separate_shared_12_test' is up to date. make[5]: 'two_file_separate_shared_21_test' is up to date. make[5]: 'two_file_relocatable_test' is up to date. make[5]: 'two_file_pie_test' is up to date. make[5]: 'pie_copyrelocs_test' is up to date. make[5]: 'weak_unresolved_symbols_test' is up to date. make[5]: 'two_file_strip_test' is up to date. make[5]: 'two_file_same_shared_strip_test' is up to date. make[5]: 'common_test_1' is up to date. make[5]: 'common_test_2' is up to date. make[5]: 'exception_test' is up to date. make[5]: 'exception_shared_1_test' is up to date. make[5]: 'exception_shared_2_test' is up to date. make[5]: 'exception_same_shared_test' is up to date. make[5]: 'exception_separate_shared_12_test' is up to date. make[5]: 'exception_separate_shared_21_test' is up to date. g++ -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -Bgcctestdir/ -static -o exception_static_test exception_test_main.o exception_test_1.o exception_test_2.o -ldl gcctestdir/ld: error: cannot find -lstdc++ ../../../gold/testsuite/exception_test_1.cc:46: error: undefined reference to '__cxa_begin_catch' ../../../gold/testsuite/exception_test_1.cc:46: error: undefined reference to '__cxa_end_catch' exception_test_1.o(.eh_frame+0xa8f3): error: undefined reference to '__gxx_personality_v0' ../../../gold/testsuite/exception_test_2.cc:30: error: undefined reference to '__cxa_allocate_exception' ../../../gold/testsuite/exception_test_2.cc:30: error: undefined reference to 'typeinfo for int' ../../../gold/testsuite/exception_test_2.cc:30: error: undefined reference to '__cxa_throw' collect2: error: ld returned 1 exit status make[5]: *** [Makefile:3429: exception_static_test] Error 1 make[5]: 'weak_test' is up to date. make[5]: 'weak_undef_test' is up to date. make[5]: 'weak_undef_test_2' is up to date. make[5]: 'weak_alias_test' is up to date. make[5]: 'weak_plt' is up to date. make[5]: 'copy_test' is up to date. make[5]: 'tls_test' is up to date. make[5]: 'tls_pic_test' is up to date. make[5]: 'tls_pie_test' is up to date. make[5]: 'tls_pie_pic_test' is up to date. make[5]: 'tls_shared_test' is up to date. make[5]: 'tls_shared_ie_test' is up to date. make[5]: 'tls_shared_gd_to_ie_test' is up to date. make[5]: 'tls_shared_gnu2_gd_to_ie_test' is up to date. make[5]: 'tls_shared_gnu2_test' is up to date. 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 make[5]: 'pr20216a_test' is up to date. make[5]: Entering directory '/sources/binutils-2.27/build/gold/testsuite' make[5]: 'libgoldtest.a' is up to date. make[5]: 'object_unittest' is up to date. make[5]: 'binary_unittest' is up to date. make[5]: 'leb128_unittest' is up to date. make[5]: 'overflow_unittest' is up to date. make[5]: 'icf_virtual_function_folding_test' is up to date. make[5]: 'large_symbol_alignment' is up to date. make[5]: 'basic_test' is up to date. make[5]: 'basic_pic_test' is up to date. make[5]: 'eh_test' is up to date. `echo g++ -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -fno-use-linker-plugin -o basic_static_test | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -static basic_test.o gcctestdir/ld: error: cannot find -lstdc++ ../../../gold/testsuite/basic_test.cc:197: error: undefined reference to 'operator delete(void*, unsigned long)' ../../../gold/testsuite/basic_test.cc:203: error: undefined reference to 'operator delete(void*, unsigned long)' basic_test.o:basic_test.cc:typeinfo for t16b: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info' gcctestdir/ld: the vtable symbol may be undefined because the class is missing its key function basic_test.o:basic_test.cc:typeinfo for t16a: error: undefined reference to 'vtable for __cxxabiv1::__class_type_info' gcctestdir/ld: the vtable symbol may be undefined because the class is missing its key function collect2: error: ld returned 1 exit status make[5]: *** [Makefile:5837: basic_static_test] Error 1 `echo g++ -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -fno-use-linker-plugin -o basic_static_pic_test | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -Bgcctestdir/ -static basic_pic_test.o gcctestdir/ld: error: cannot find -lstdc++ ../../../gold/testsuite/basic_test.cc:197: error: undefined reference to 'operator delete(void*, unsigned long)' ../../../gold/testsuite/basic_test.cc:203: error: undefined reference to 'operator delete(void*, unsigned long)' basic_pic_test.o:basic_test.cc:typeinfo for t16b: error: undefined reference to 'vtable for __cxxabiv1::__si_class_type_info' gcctestdir/ld: the vtable symbol may be undefined because the class is missing its key function basic_pic_test.o:basic_test.cc:typeinfo for t16a: error: undefined reference to 'vtable for __cxxabiv1::__class_type_info' gcctestdir/ld: the vtable symbol may be undefined because the class is missing its key function collect2: error: ld returned 1 exit status make[5]: *** [Makefile:5844: basic_static_pic_test] Error 1 make[5]: 'basic_pie_test' is up to date. make[5]: 'constructor_test' is up to date. g++ -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -Bgcctestdir/ -static -o constructor_static_test constructor_test.o -ldl gcctestdir/ld: error: cannot find -lstdc++ collect2: error: ld returned 1 exit status make[5]: *** [Makefile:3381: constructor_static_test] Error 1 make[5]: 'two_file_test' is up to date. make[5]: 'two_file_pic_test' is up to date. g++ -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -Bgcctestdir/ -static -o two_file_static_test two_file_test_1.o two_file_test_1b.o two_file_test_2.o two_file_test_main.o -ldl gcctestdir/ld: error: cannot find -lstdc++ collect2: error: ld returned 1 exit status make[5]: *** [Makefile:4176: two_file_static_test] Error 1 make[5]: 'two_file_shared_1_test' is up to date. make[5]: 'two_file_shared_2_test' is up to date. make[5]: 'two_file_shared_1_pic_2_test' is up to date. make[5]: 'two_file_shared_2_pic_1_test' is up to date. make[5]: 'two_file_same_shared_test' is up to date. make[5]: 'two_file_separate_shared_12_test' is up to date. make[5]: 'two_file_separate_shared_21_test' is up to date. make[5]: 'two_file_relocatable_test' is up to date. make[5]: 'two_file_pie_test' is up to date. make[5]: 'pie_copyrelocs_test' is up to date. make[5]: 'weak_unresolved_symbols_test' is up to date. make[5]: 'two_file_strip_test' is up to date. make[5]: 'two_file_same_shared_strip_test' is up to date. make[5]: 'common_test_1' is up to date. make[5]: 'common_test_2' is up to date. make[5]: 'exception_test' is up to date. make[5]: 'exception_shared_1_test' is up to date. make[5]: 'exception_shared_2_test' is up to date. make[5]: 'exception_same_shared_test' is up to date. make[5]: 'exception_separate_shared_12_test' is up to date. make[5]: 'exception_separate_shared_21_test' is up to date. g++ -W -Wall -Wstack-usage=262144 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O2 -Bgcctestdir/ -static -o exception_static_test exception_test_main.o exception_test_1.o exception_test_2.o -ldl gcctestdir/ld: error: cannot find -lstdc++ ../../../gold/testsuite/exception_test_1.cc:46: error: undefined reference to '__cxa_begin_catch' ../../../gold/testsuite/exception_test_1.cc:46: error: undefined reference to '__cxa_end_catch' exception_test_1.o(.eh_frame+0xa8f3): error: undefined reference to '__gxx_personality_v0' ../../../gold/testsuite/exception_test_2.cc:30: error: undefined reference to '__cxa_allocate_exception' ../../../gold/testsuite/exception_test_2.cc:30: error: undefined reference to 'typeinfo for int' ../../../gold/testsuite/exception_test_2.cc:30: error: undefined reference to '__cxa_throw' collect2: error: ld returned 1 exit status make[5]: *** [Makefile:3429: exception_static_test] Error 1 make[5]: 'weak_test' is up to date. make[5]: 'weak_undef_test' is up to date. make[5]: 'weak_undef_test_2' is up to date. make[5]: 'weak_alias_test' is up to date. make[5]: 'weak_plt' is up to date. make[5]: 'copy_test' is up to date. make[5]: 'tls_test' is up to date. make[5]: 'tls_pic_test' is up to date. make[5]: 'tls_pie_test' is up to date. make[5]: 'tls_pie_pic_test' is up to date. make[5]: 'tls_shared_test' is up to date. make[5]: 'tls_shared_ie_test' is up to date. make[5]: 'tls_shared_gd_to_ie_test' is up to date. make[5]: 'tls_shared_gnu2_gd_to_ie_test' is up to date. make[5]: 'tls_shared_gnu2_test' is up to date. 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 ... gem@debian:~$ -- Dr. George E. Moore Ph.D -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page
