LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Section 6.14 Gcc-3.4.1 error (https://www.linuxquestions.org/questions/linux-from-scratch-13/section-6-14-gcc-3-4-1-error-351545/)

microsoft/linux 08-09-2005 12:10 PM

Section 6.14 Gcc-3.4.1 error
 
Ok, so I'm trying to build the gcc source in the chroot environment(according to section 6.14. I ran the 'make -k check' command, and a few errors were given. I then ran the 'make install' command, and it aborted w/ errors. Here is the output of my test summary file
Quote:


*********************************************
*Section 6.14 Gcc-3.4.1
*Some errors were given during make -k check
*After make install
*********************************************

cat <<'EOF' |
LAST_UPDATED: Obtained from CVS: -rgcc_3_4_1_release

Native configuration is i686-pc-linux-gnu

=== g++ tests ===


Running target unix
WARNING: g++.old-deja/g++.mike/p10769a.C compilation failed to produce executable
WARNING: g++.old-deja/g++.other/enum5.C compilation failed to produce executable
XPASS: g++.old-deja/g++.other/init5.C execution test
WARNING: g++.old-deja/g++.pt/friend44.C compilation failed to produce executable

=== g++ Summary ===

# of expected passes 9640
# of unexpected successes 1
# of expected failures 67
# of unsupported tests 32
/sources/gcc-build/gcc/testsuite/../g++ version 3.4.1

=== gcc tests ===


Running target unix
FAIL: gcc.c-torture/execute/va-arg-25.c execution, -Os
XPASS: gcc.dg/cpp/cmdlne-dI-M.c scan-file (^|\\\\n)cmdlne-dI-M.*:[^\\\\n]*cmdlne-dI-M.c
XPASS: gcc.dg/cpp/cmdlne-dM-M.c scan-file (^|\\\\n)cmdlne-dM-M[^\\\\n]*:[^\\\\n]*cmdlne-dM-M.c
FAIL: gcc.dg/cleanup-10.c execution test
FAIL: gcc.dg/cleanup-11.c execution test
FAIL: gcc.dg/cleanup-5.c execution test
FAIL: gcc.dg/cleanup-8.c execution test
FAIL: gcc.dg/cleanup-9.c execution test

=== gcc Summary ===

# of expected passes 24622
# of unexpected failures 6
# of unexpected successes 2
# of expected failures 68
# of untested testcases 7
# of unsupported tests 191
/sources/gcc-build/gcc/xgcc version 3.4.1


=== libstdc++-v3 check-abi Summary ===

# of added symbols: 298
# of missing symbols: 284
# of incompatible symbols: 284
=== libstdc++ tests ===


Running target unix
XPASS: 26_numerics/c99_classification_macros_c.cc (test for excess errors)

=== libstdc++ Summary ===

# of expected passes 2696
# of unexpected successes 1
# of expected failures 5

Compiler version: 3.4.1
Platform: i686-pc-linux-gnu
configure flags: --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++
EOF
Mail -s "Results for 3.4.1 testsuite on i686-pc-linux-gnu" gcc-testresults@gcc.gnu.org &&
mv /sources/gcc-build/./gcc/testsuite/g++.sum /sources/gcc-build/./gcc/testsuite/g++.sum.sent &&
mv /sources/gcc-build/./gcc/testsuite/gcc.sum /sources/gcc-build/./gcc/testsuite/gcc.sum.sent &&
mv /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-abi.sum /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-abi.sum.sent &&
mv /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++.sum /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++.sum.sent &&
mv /sources/gcc-build/./gcc/testsuite/g++.log /sources/gcc-build/./gcc/testsuite/g++.log.sent &&
mv /sources/gcc-build/./gcc/testsuite/gcc.log /sources/gcc-build/./gcc/testsuite/gcc.log.sent &&
mv /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-abi.log /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++-abi.log.sent &&
mv /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++.log /sources/gcc-build/./i686-pc-linux-gnu/libstdc++-v3/testsuite/libstdc++.log.sent &&
true
Any thoughts?

shotokan 08-09-2005 01:27 PM

I really don't think you have anything to worry about.
(It may be another case where make check is useless and untrustworthy)

So, just continue on with installing GCC, and if you have any problems post them.

microsoft/linux 08-09-2005 08:06 PM

even, though it quit when I ran make install? Ummm....sorry but that seems counter-intuitive.

shotokan 08-10-2005 12:21 AM

Ok, so you tried make install. Did you get any errors before make check?
If so, post them.

microsoft/linux 08-10-2005 09:06 AM

no, I don't think so, but I went back and ran the ../gcc-3.4.1/configure command, and it looks like everything it's looking for it can't find, perhaps a toolchain problem? is there a way to fix that? I'll have to get the output for you.

microsoft/linux 08-10-2005 09:24 PM

ok, here are the errors from the 'make check' command
Quote:

WARNING: g++.old-deja/g++.mike/p10769a.C compilation failed to produce executable
WARNING: g++.old-deja/g++.other/enum5.C compilation failed to produce executable
XPASS: g++.old-deja/g++.other/init5.C execution test
WARNING: g++.old-deja/g++.pt/friend44.C compilation failed to produce executable

XPASS: 26_numerics/c99_classification_macros_c.cc (test for excess errors)

make[3]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [check-recursive] Error 1
make[1]: Target `check' not remade because of errors.
make[1]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make: *** [check-target-libstdc++-v3] Error 2
make[1]: Entering directory `/sources/gcc-build/i686-pc-linux-gnu/libiberty'
make[2]: Entering directory `/sources/gcc-build/i686-pc-linux-gnu/libiberty/testsuite'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libiberty/testsuite'
make[1]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libiberty'
make: Target `check' not remade because of errors.
and here are the error's from 'make install
Quote:

make[4]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make[1]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make[1]: Entering directory `/sources/gcc-build/i686-pc-linux-gnu/libiberty'
make[2]: Entering directory `/sources/gcc-build/i686-pc-linux-gnu/libiberty/testsuite'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libiberty/testsuite'
make[1]: Leaving directory `/sources/gcc-build/i686-pc-linux-gnu/libiberty'

shotokan 08-10-2005 10:59 PM

For make install those are not errors, they don't say 'Error' anywhere. (I made that mistake too)

As for make check here's a quote from the lfs-book
Quote:

Test the results, but do not stop at errors:
CONGRATULATIONS, YOU CAN FINALLY CONTINUE ON!

sundialsvcs 08-11-2005 05:35 PM

Well-l-l... better take a look at the config.log or whatever first. Messages like "could not create executable" usually mean something else, and you need to look for a detailed logfile to find out why.

I saw a bunch of these and what was really the matter was that glibc was hosed. Trying the simple "cc command test" mentioned earlier in the instructions revealed that the command didn't work. I had indeed done something wrong.

As anxious as you may be to "proceed," you really do need to do a little bit of deeper-looking before you proceed from this point, given these messages...

microsoft/linux 08-11-2005 08:13 PM

I tried the cc dummy.c test, mentioned earlier in the book. It listed the correct listing. So I assume that's not the error. I'll look into it some more. Any ideas as to what's wrong?

shotokan 08-11-2005 09:38 PM

It didn't abort with errors at all.
 
Your make install was successful.
Those aren't errors they don't say Error any where, but in make check which the book says not to stop at.

microsoft/linux 08-11-2005 09:52 PM

alright, alright. I'll keep going. But if something goes wrong, I'm holding you accountable :)


All times are GMT -5. The time now is 08:22 AM.