LFS version 6.5, chapter 6.12.1, make check Binutils-2.19.1 errors
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
LFS version 6.5, chapter 6.12.1, make check Binutils-2.19.1 errors
Bit of a newb here, I am working through LFS and everything was going well up to this point. I received the following errors running 'make check' for the binutils installation:
configure:1549: checking build system type
configure:1567: result: i686-pc-linux-gnu
configure:1602: checking host system type
configure:1616: result: i686-pc-linux-gnu
configure:1624: checking target system type
configure:1638: result: i686-pc-linux-gnu
configure:1682: checking for a BSD-compatible install
configure:1748: result: /tools/bin/install -c
configure:1759: checking whether ln works
configure:1781: result: yes
configure:1785: checking whether ln -s works
configure:1789: result: yes
configure:2983: checking for gcc
configure:2999: found /tools/bin/gcc
configure:3009: result: gcc
configure:3255: checking for C compiler version
configure:3258: gcc --version </dev/null >&5
gcc (GCC) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3261: $? = 0
configure:3263: gcc -v </dev/null >&5
Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/4.4.1/specs
Target: i686-pc-linux-gnu
Configured with: /mnt/lfs/sources/gcc-4.4.1/configure --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap
Thread model: posix
gcc version 4.4.1 (GCC)
configure:3266: $? = 0
configure:3268: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:3271: $? = 1
configure:3294: checking for C compiler default output file name
configure:3297: gcc conftest.c >&5
configure:3300: $? = 0
configure:3348: result: a.out
configure:3353: checking whether the C compiler works
configure:3359: ./a.out
configure:3362: $? = 0
configure:3381: result: yes
configure:3388: checking whether we are cross compiling
configure:3390: result: no
configure:3393: checking for suffix of executables
configure:3395: gcc -o conftest conftest.c >&5
configure:3398: $? = 0
configure:3425: result:
configure:3431: checking for suffix of object files
configure:3452: gcc -c conftest.c >&5
configure:3455: $? = 0
configure:3479: result: o
configure:3483: checking whether we are using the GNU C compiler
configure:3507: gcc -c conftest.c >&5
configure:3513: $? = 0
configure:3517: test -z
|| test ! -s conftest.err
configure:3520: $? = 0
configure:3523: test -s conftest.o
configure:3526: $? = 0
configure:3539: result: yes
configure:3545: checking whether gcc accepts -g
configure:3566: gcc -c -g conftest.c >&5
configure:3572: $? = 0
configure:3576: test -z
|| test ! -s conftest.err
configure:3579: $? = 0
configure:3582: test -s conftest.o
configure:3585: $? = 0
configure:3596: result: yes
configure:3613: checking for gcc option to accept ANSI C
configure:3683: gcc -c -g -O2 conftest.c >&5
configure:3689: $? = 0
configure:3693: test -z
|| test ! -s conftest.err
configure:3696: $? = 0
configure:3699: test -s conftest.o
configure:3702: $? = 0
configure:3720: result: none needed
configure:3738: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
configure:3744: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:3929: checking for g++
configure:3945: found /tools/bin/g++
configure:3955: result: g++
configure:3971: checking for C++ compiler version
configure:3974: g++ --version </dev/null >&5
g++ (GCC) 4.4.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3977: $? = 0
configure:3979: g++ -v </dev/null >&5
Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/4.4.1/specs
Target: i686-pc-linux-gnu
Configured with: /mnt/lfs/sources/gcc-4.4.1/configure --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap
Thread model: posix
gcc version 4.4.1 (GCC)
configure:3982: $? = 0
configure:3984: g++ -V </dev/null >&5
g++: '-V' option must have argument
configure:3987: $? = 1
configure:3990: checking whether we are using the GNU C++ compiler
configure:4014: g++ -c conftest.cc >&5
configure:4020: $? = 0
configure:4024: test -z
|| test ! -s conftest.err
configure:4027: $? = 0
configure:4030: test -s conftest.o
configure:4033: $? = 0
configure:4046: result: yes
configure:4052: checking whether g++ accepts -g
configure:4073: g++ -c -g conftest.cc >&5
configure:4079: $? = 0
configure:4083: test -z
|| test ! -s conftest.err
configure:4086: $? = 0
configure:4089: test -s conftest.o
configure:4092: $? = 0
configure:4103: result: yes
configure:4145: g++ -c -g -O2 conftest.cc >&5
configure:4151: $? = 0
configure:4155: test -z
|| test ! -s conftest.err
configure:4158: $? = 0
configure:4161: test -s conftest.o
configure:4164: $? = 0
configure:4190: g++ -c -g -O2 conftest.cc >&5
conftest.cc: In function 'int main()':
conftest.cc:13: error: 'exit' was not declared in this scope
configure:4196: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
| exit (42);
| ;
| return 0;
| }
configure:4145: g++ -c -g -O2 conftest.cc >&5
conftest.cc:9: error: 'void std::exit(int)' should have been declared inside 'std'
configure:4151: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| extern "C" void std::exit (int) throw (); using std::exit;
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
| ;
| return 0;
| }
configure:4145: g++ -c -g -O2 conftest.cc >&5
conftest.cc:9: error: 'void std::exit(int)' should have been declared inside 'std'
In file included from conftest.cc:10:
/usr/include/stdlib.h:543: error: declaration of 'void std::exit(int) throw ()' throws different exceptions
conftest.cc:9: error: from previous declaration 'void std::exit(int)'
configure:4151: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| extern "C" void std::exit (int); using std::exit;
| #include <stdlib.h>
| int
| main ()
| {
| exit (42);
| ;
| return 0;
| }
configure:4145: g++ -c -g -O2 conftest.cc >&5
configure:4151: $? = 0
configure:4155: test -z
|| test ! -s conftest.err
configure:4158: $? = 0
configure:4161: test -s conftest.o
configure:4164: $? = 0
configure:4190: g++ -c -g -O2 conftest.cc >&5
configure:4196: $? = 0
configure:4200: test -z
|| test ! -s conftest.err
configure:4203: $? = 0
configure:4206: test -s conftest.o
configure:4209: $? = 0
configure:4296: checking for gnatbind
configure:4323: result: no
configure:4376: checking for gnatmake
configure:4403: result: no
configure:4415: checking whether compiler driver understands Ada
configure:4438: result: no
configure:4447: checking how to compare bootstrapped objects
configure:4472: result: cmp --ignore-initial=16 $$f1 $$f2
configure:6124: checking for bison
configure:6153: result: no
configure:6124: checking for byacc
configure:6153: result: no
configure:6124: checking for yacc
configure:6153: result: no
configure:6170: checking for bison
configure:6199: result: no
configure:6215: checking for gm4
configure:6244: result: no
configure:6215: checking for gnum4
configure:6244: result: no
configure:6215: checking for m4
configure:6231: found /tools/bin/m4
configure:6241: result: m4
configure:6260: checking for flex
configure:6289: result: no
configure:6260: checking for lex
configure:6289: result: no
configure:6306: checking for flex
configure:6335: result: no
configure:6351: checking for makeinfo
configure:6367: found /tools/bin/makeinfo
configure:6377: result: makeinfo
configure:6410: checking for expect
configure:6426: found /tools/bin/expect
configure:6436: result: expect
configure:6457: checking for runtest
configure:6473: found /tools/bin/runtest
configure:6483: result: runtest
configure:6596: checking for ar
configure:6612: found /tools/bin/ar
configure:6622: result: ar
configure:6731: checking for as
configure:6747: found /tools/bin/as
configure:6757: result: as
configure:6866: checking for dlltool
configure:6895: result: no
configure:6924: checking for ld
configure:6950: result: /tools/lib/gcc/i686-pc-linux-gnu/4.4.1/../../../../i686-pc-linux-gnu/bin/ld
configure:7136: checking for lipo
configure:7165: result: no
configure:7271: checking for nm
configure:7287: found /tools/bin/nm
configure:7297: result: nm
configure:7406: checking for ranlib
configure:7422: found /tools/bin/ranlib
configure:7432: result: ranlib
configure:7536: checking for strip
configure:7552: found /tools/bin/strip
configure:7562: result: strip
configure:7666: checking for windres
configure:7695: result: no
configure:7801: checking for windmc
configure:7830: result: no
configure:7936: checking for objcopy
configure:7952: found /tools/bin/objcopy
configure:7962: result: objcopy
configure:8071: checking for objdump
configure:8087: found /tools/bin/objdump
configure:8097: result: objdump
configure:8245: checking for cc
configure:8261: found /tools/bin/cc
configure:8271: result: cc
configure:8400: checking for c++
configure:8416: found /tools/bin/c++
configure:8426: result: c++
configure:8555: checking for gcc
configure:8571: found /tools/bin/gcc
configure:8581: result: gcc
configure:8705: checking for gcj
configure:8734: result: no
configure:8860: checking for gfortran
configure:8889: result: no
configure:9094: checking for ar
configure:9110: found /tools/bin/ar
configure:9120: result: ar
configure:9317: checking for as
configure:9333: found /tools/bin/as
configure:9343: result: as
configure:9540: checking for dlltool
configure:9569: result: no
configure:9763: checking for ld
configure:9779: found /tools/bin/ld
configure:9789: result: ld
configure:9986: checking for lipo
configure:10015: result: no
configure:10209: checking for nm
configure:10225: found /tools/bin/nm
configure:10235: result: nm
configure:10432: checking for objdump
configure:10448: found /tools/bin/objdump
configure:10458: result: objdump
configure:10655: checking for ranlib
configure:10671: found /tools/bin/ranlib
configure:10681: result: ranlib
configure:10878: checking for strip
configure:10894: found /tools/bin/strip
configure:10904: result: strip
configure:11101: checking for windres
configure:11130: result: no
configure:11324: checking for windmc
configure:11353: result: no
configure:11380: checking where to find the target ar
configure:11403: result: just compiled
configure:11422: checking where to find the target as
configure:11445: result: just compiled
configure:11464: checking where to find the target cc
configure:11497: result: host tool
configure:11506: checking where to find the target c++
configure:11542: result: host tool
configure:11551: checking where to find the target c++ for libstdc++
configure:11587: result: host tool
configure:11596: checking where to find the target dlltool
configure:11619: result: just compiled
configure:11638: checking where to find the target gcc
configure:11671: result: host tool
configure:11680: checking where to find the target gcj
configure:11716: result: host tool
configure:11725: checking where to find the target gfortran
configure:11761: result: host tool
configure:11770: checking where to find the target ld
configure:11793: result: just compiled
configure:11812: checking where to find the target lipo
configure:11834: result: host tool
configure:11843: checking where to find the target nm
configure:11866: result: just compiled
configure:11885: checking where to find the target objdump
configure:11908: result: just compiled
configure:11927: checking where to find the target ranlib
configure:11950: result: just compiled
configure:11969: checking where to find the target strip
configure:11992: result: just compiled
configure:12011: checking where to find the target windres
configure:12034: result: just compiled
configure:12053: checking where to find the target windmc
configure:12076: result: just compiled
configure:12123: checking whether to enable maintainer-specific portions of Makefiles
configure:12132: result: no
configure:12165: checking whether -fkeep-inline-functions is supported
configure:12189: gcc -c -g -O2 -fkeep-inline-functions conftest.c >&5
configure:12195: $? = 0
configure:12199: test -z
|| test ! -s conftest.err
configure:12202: $? = 0
configure:12205: test -s conftest.o
configure:12208: $? = 0
configure:12210: result: yes
configure:12427: creating ./config.status
config.log is helpful if the configure script bombs, not if the test suite fails. You need to find out what the 5 unexpected failures are and fix those or decide they're not important.
Although the OP doesn't say so, if the OP is following the instructions in the book, the OP already executed make.
The OP has test suite errors, why would you tell the OP to execute make install? You don't know what the errors are from what the OP posted. Telling the OP to install a potentially seriously borked package is not helpful.
I have been following the instructions in the LFS book version 6.5. I am on step 6.12.1. I have configured Binutils-2.19.1 with the results of config.log posted above. I then did a "make" followed by a "make check", the results of "make check" are here:
for summary in $(find . -name '*.sum'); do echo $summary; grep FAIL $summary; done
This will list each of the test suite summary files followed by any occurrences of FAIL in that file. XFAIL means expected failure and can be ignored. For example, when I execute the above on a newly built binutils-2.19.1, I get
I know now that the four unexpected failures occurred in the ld test suite. So I can look at the file ld/ld.log which provides greater detail regarding the failure. Looking at ld/ld.log, I can find the following for one of the unexpected failures
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.