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 05-23-2005, 04:20 AM   #1
alinsoar
LQ Newbie
 
Registered: Nov 2004
Location: Bucarest, Romania
Distribution: My own
Posts: 26

Rep: Reputation: 15
LFS 6.0 problem: GCC check err.


Hello,

I have a problem. I followed the LFS book trying to make a system, and I got some errors in GCC compile.
Here is the file that cotains "make -k ckeck" output error.

bash-3.00 % cat check.err
WARNING: Couldn't find the global config file.
make[1]: [check-gcc] Error 1 (ignored)
WARNING: Couldn't find the global config file.
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
WARNING: g++.old-deja/g++.pt/friend44.C compilation failed to produce executable
make[1]: [check-g++] Error 1 (ignored)
WARNING: Couldn't find the global config file.
make[3]: *** [check-DEJAGNU] Error 1
make[2]: *** [check-am] Error 2
make[2]: Target `check' not remade because of errors.
make[1]: *** [check-recursive] Error 1
make[1]: Target `check' not remade because of errors.
make: *** [check-target-libstdc++-v3] Error 2
make: Target `check' not remade because of errors.
bash-3.00 %

I have compiled the fifth chapter as in lfs (with gcc 3.4.1). Should I recompile this chapter too using the gcc 4.0.0? Or should I compile only in chapter 6 the gcc-4.0.0 in chroot environemt using gcc-3.4.1 from chapter 5 ?

Does somebody have any suggestions ?
 
Old 05-23-2005, 11:51 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
As requested, moved to Linux From Scratch
 
Old 05-23-2005, 12:20 PM   #3
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
so...if I understand correctly you deviated from the book and are getting errors? also, IIRC glibc will refuse to use gcc-4.0 ( unless you modify it or patch it, don't know if a patch is available or not).
 
Old 05-26-2005, 02:43 AM   #4
alinsoar
LQ Newbie
 
Registered: Nov 2004
Location: Bucarest, Romania
Distribution: My own
Posts: 26

Original Poster
Rep: Reputation: 15
No, I did not deviated from the book, and I get these errors, when I do the check for GCC.

I wish to deviate from the book, as I said above. Maybe I will not get the same errors.

I asked only if another person tried as I will.
 
Old 05-26-2005, 05:56 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
did it pass the sanity check you did in the earlier chapter?
 
Old 05-26-2005, 06:15 AM   #6
alinsoar
LQ Newbie
 
Registered: Nov 2004
Location: Bucarest, Romania
Distribution: My own
Posts: 26

Original Poster
Rep: Reputation: 15
I did not do it in Chapter 5 this time, as recommended by the author.

... strange thing... it is the fourth time when I compile on different PCs, with different Linux distributions, and I got the same errors. (I have compiled on Fedora Core3, I compiled on SUSE latest stable, on SLACK 10 it did not worked, as it did not pass yet to the 2.6 ker. ver.).

In the first of fourth tries I checked too in chapter five. (that time I did not use the package manager recommended by the author (a different user for every package), and that is why I do not have any longer the error messages from that checking). I remember well that it was the same error to libstdc++-v3. And a few others. I do not guarantee that the others were the same as these ones that you can see above.

Sorry for my bad English.
 
Old 05-26-2005, 02:48 PM   #7
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Quote:
Originally posted by alinsoar
I did not do it in Chapter 5 this time, as recommended by the author.

the author recommended to you not to do the sanity check?
 
Old 05-28-2005, 06:35 AM   #8
alinsoar
LQ Newbie
 
Registered: Nov 2004
Location: Bucarest, Romania
Distribution: My own
Posts: 26

Original Poster
Rep: Reputation: 15
Yes, he did. Only in chapter 6 he said it is absolutely necessary.
 
Old 05-28-2005, 07:11 AM   #9
alinsoar
LQ Newbie
 
Registered: Nov 2004
Location: Bucarest, Romania
Distribution: My own
Posts: 26

Original Poster
Rep: Reputation: 15
I tried gcc-4.0.0 instead of gcc-3.4.1. It does not work.

Je l'en veut.

I will recompile all LFS using 4.0.0
 
Old 05-28-2005, 08:32 PM   #10
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
the sanity check would be necessary in both, if your temporary compiler fails the sanity check, it cannot build the main system. personally, I wouldn't go for gcc-4.x yet, give it some time. most likely you accidentally made a mistake during the toolchain build or your host system is giving you the problems.
 
Old 05-31-2005, 03:56 AM   #11
alinsoar
LQ Newbie
 
Registered: Nov 2004
Location: Bucarest, Romania
Distribution: My own
Posts: 26

Original Poster
Rep: Reputation: 15
thanks, I will try just now.
 
Old 06-03-2005, 05:37 AM   #12
alinsoar
LQ Newbie
 
Registered: Nov 2004
Location: Bucarest, Romania
Distribution: My own
Posts: 26

Original Poster
Rep: Reputation: 15
I have recompiled everythig, and this time I made
" make check " after glibc compilation, the first step, in the first chapter.

The first error message is :

gcc -B/tools/bin/ -nostdlib -nostartfiles -o /mnt/lfs/sources/glibc-build/stdlib/test-canon -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2 -Wl,-z,combreloc -Wl,-z,relro /mnt/lfs/sources/glibc-build/csu/crt1.o /mnt/lfs/sources/glibc-build/csu/crti.o `gcc -B/tools/bin/ --print-file-name=crtbegin.o` /mnt/lfs/sources/glibc-build/stdlib/test-canon.o -Wl,-rpath-link=/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt/lfs/sources/glibc-build/nptl /mnt/lfs/sources/glibc-build/libc.so.6 /mnt/lfs/sources/glibc-build/libc_nonshared.a -lgcc -Wl,--as-needed -lgcc_s -Wl,--no-as-needed `gcc -B/tools/bin/ --print-file-name=crtend.o` /mnt/lfs/sources/glibc-build/csu/crtn.o
GCONV_PATH=/mnt/lfs/sources/glibc-build/iconvdata LC_ALL=C /mnt/lfs/sources/glibc-build/elf/ld-linux.so.2 --library-path /mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt/lfs/sources/glibc-build/nptl /mnt/lfs/sources/glibc-build/stdlib/test-canon --test-dir=/mnt/lfs/sources/glibc-build/stdlib > /mnt/lfs/sources/glibc-build/stdlib/test-canon.out
make[2]: *** [/mnt/lfs/sources/glibc-build/stdlib/test-canon.out] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.5/stdlib'
make[1]: *** [stdlib/tests] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.5'
make: *** [check] Error 2
/mnt/lfs/sources/glibc-build %

Any ideas?
 
  


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
LFS-5.0 GCC problem with binutils-2.14 pass 1 NCappaZoo Linux From Scratch 6 06-14-2009 03:47 AM
Solved Problem Second GCC-Pass(or gettext sanity check problem) hoes Linux From Scratch 0 09-04-2005 10:20 AM
LFS without gcc and glibc nazir Linux From Scratch 5 08-05-2005 11:23 AM
Dual system boot err: rootnoverify(hd1,0),but the hd0 err msg existed befor shut down lilipeng24 Linux - General 3 06-25-2005 12:10 PM
gcc not working after LFS 6.0 ch 6.61 Barnette Linux From Scratch 1 01-11-2005 09:19 PM

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

All times are GMT -5. The time now is 07:10 AM.

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