On Sat, 03 Jun 2017 22:45:56 +0200 (CEST), Eric <[email protected]> wrote: > On Sat, 3 Jun 2017 14:23:25 -0500, Bruce Dubbs <[email protected]> wrote: >> Eric wrote: >>> I am up to chapter 6.13 in LFS 8.0, and I am getting test failures for >>> binutil 2.27: >>> >>> basic_pic_test.o:basic_test.cc:typeinfo for t16a: error: undefined >>> reference to 'vtable for __cxxabiv1::__class_type_info' >>> basic_pic_test.o:basic_test.cc:typeinfo for t16b: error: undefined >>> reference to 'vtable for __cxxabiv1::__si_class_type_info' >>> basic_test.o:basic_test.cc:typeinfo for t16a: error: undefined reference >>> to 'vtable for __cxxabiv1::__class_type_info' >>> basic_test.o:basic_test.cc:typeinfo for t16b: error: undefined reference >>> to 'vtable for __cxxabiv1::__si_class_type_info' >>> collect2: error: ld returned 1 exit status >>> exception_test_1.o(.eh_frame+0xa8f3): error: undefined reference to >>> '__gxx_personality_v0' >>> gcctestdir/ld: error: cannot find -lstdc++ >> >> You should have >> >> /mnt/lfs/tools/lib/libstdc++.a >> /mnt/lfs/tools/lib/libstdc++.la >> /mnt/lfs/tools/lib/libstdc++.so >> /mnt/lfs/tools/lib/libstdc++.so.6 >> /mnt/lfs/tools/lib/libstdc++.so.6.0.23 >> >> installed. If not, then gcc-pass2 in Chapter 5 was not completed properly. > > $ ls $LFS/tools/lib/libstdc++* > /mnt/lfs/tools/lib/libstdc++.a > /mnt/lfs/tools/lib/libstdc++fs.a > /mnt/lfs/tools/lib/libstdc++fs.la > /mnt/lfs/tools/lib/libstdc++.la > /mnt/lfs/tools/lib/libstdc++.so > /mnt/lfs/tools/lib/libstdc++.so.6 > /mnt/lfs/tools/lib/libstdc++.so.6.0.22 > /mnt/lfs/tools/lib/libstdc++.so.6.0.22-gdb.py > > $ ls -l $LFS/usr/lib/libstdc++* > ... /mnt/lfs/usr/lib/libstdc++.la > ... /mnt/lfs/usr/lib/libstdc++.so -> /tools/lib/libstdc++.so > ... /mnt/lfs/usr/lib/libstdc++.so.6 -> /tools/lib/libstdc++.so.6 > > so something else, I guess.
Obviously I didn't spot anything in the file list - until I tried to redo the first error test standalone - errored of course, so I reran it with verbose output (as per the dummy test from Chapter 6.10) which revealed that it was looking for libstdc++.a . LFS isn't supposed to care about that library, but the test does. It presumably should have got a symlink from /usr/lib with the others in Chapter 6.6. Development 8.0 actually has this, perhaps it should have been in the (currently non-existent) errata for 8.0 Stable). Having fixed that, there is still a test failure due to the lack of the dc program. Again, Dev 8.0 has ordering changes and a change in readline instructions which wouldd fix that - I think. Oh well, it's supposed to be a learning experience :-) Eric -- ms fnd in a lbry -- 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
