LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 08-09-2005, 12:10 PM   #1
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
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?
 
Old 08-09-2005, 01:27 PM   #2
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
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.

Last edited by shotokan; 08-09-2005 at 01:36 PM.
 
Old 08-09-2005, 08:06 PM   #3
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
even, though it quit when I ran make install? Ummm....sorry but that seems counter-intuitive.
 
Old 08-10-2005, 12:21 AM   #4
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

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

Last edited by shotokan; 08-10-2005 at 12:24 AM.
 
Old 08-10-2005, 09:06 AM   #5
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
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.
 
Old 08-10-2005, 09:24 PM   #6
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
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'
 
Old 08-10-2005, 10:59 PM   #7
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
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!
 
Old 08-11-2005, 05:35 PM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
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...
 
Old 08-11-2005, 08:13 PM   #9
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
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?
 
Old 08-11-2005, 09:38 PM   #10
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
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.
 
Old 08-11-2005, 09:52 PM   #11
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
in gcc compiler error: parse error before string constsnt cynthia_thomas Linux - Networking 1 10-20-2005 01:29 AM
Section 6.15 Coreutils compile error microsoft/linux Linux From Scratch 7 09-04-2005 07:48 PM
LFS 6.0 Bindutils section 6.13 error xushi Linux From Scratch 6 05-31-2005 11:31 AM
depmod: error reading ELF section data Commish66 Mandriva 1 02-12-2004 12:56 PM
NVIDIA...Parse error on line 13 of section Mandrake 9.0 serok Linux - Newbie 2 11-08-2003 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration