[lfs-dev] 6.13. Binutils-2.27 tests

Wayne Blaszczyk wblaszcz at bigpond.net.au
Tue Feb 28 12:41:39 PST 2017


I noticed that during the 'make -k check' the whole gold test suite (240+ tests) is skipped due to an error.

from http://www.linuxfromscratch.org/lfs/build-logs/8.0/i7-4700MQ/test-logs/080-binutils-2.27

make[6]: Leaving directory '/sources/binutils-2.27/build/gold/testsuite'
make[5]: *** [Makefile:5520: check-am] Error 2
make[5]: Leaving directory '/sources/binutils-2.27/build/gold/testsuite'
make[4]: *** [Makefile:5524: check] Error 2
make[4]: Leaving directory '/sources/binutils-2.27/build/gold/testsuite'

Upon further investigation, it turns out that this is due to a missing static stdc++ file.
There is a simple fix for this. In the Creating Essential Files and Symlinks
ln -sv /tools/lib/libstdc++.so{,.6} /usr/lib
ln -fsv /tools/lib/libstdc++.{a,so{,.6}} /usr/lib

After this change the gold testsuite executed correctly with only one test failure.
The test failure was with relro_test.
After a quick Google search it turns out that this is due to a missing dc (bc) command.
I personally just stubbed out the test without looking at it further.


More information about the lfs-dev mailing list