LinuxQuestions.org
Review your favorite Linux distribution.
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 01-05-2004, 07:04 PM   #1
Blibblob
LQ Newbie
 
Registered: Jan 2004
Distribution: SuSE
Posts: 6

Rep: Reputation: 0
GCC first build for LFS, bootstrap error


I have followed the LFS book 5.0 closely, and when I compile GCC-3.3.1, it says there is an error, first there are warnings about undefined references, then it says:
make[2]: *** [cc1] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gcc-build/gcc'
make: *** [bootstrap] Error 2

I have absolutely no idea what happened. I had built GCC just fine the first time(I restarted the process when Glibc wouldn't build at all), maybe there were errors the first time. I saw a few threads about this from before, but none really got answered as far as I could tell.
 
Old 01-05-2004, 09:44 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
What was the error directly before what you've put here. We need the lines with "error:" in them to help.
 
Old 01-06-2004, 04:57 AM   #3
Danleff
LQ Newbie
 
Registered: Dec 2001
Location: Albany NY
Distribution: RedHat 8; Yoper; Debian
Posts: 14

Rep: Reputation: 0
Are you using Mandrake 9.0 or above as your host system?
 
Old 01-06-2004, 01:46 PM   #4
Blibblob
LQ Newbie
 
Registered: Jan 2004
Distribution: SuSE
Posts: 6

Original Poster
Rep: Reputation: 0
Those are the only lines with error in them. Before that were a bunch of C files with undefined references. Most of what it tries to compile has undefined references. There shouldn't be anything wrong with the downloaded file, as it compiled previously without a problem(I restarted the process when Glibc couldn't find the rest of the information)

I am using Suse 8.2 as my host system.

Last edited by Blibblob; 01-06-2004 at 01:59 PM.
 
Old 01-06-2004, 02:16 PM   #5
cjcuk
Member
 
Registered: Dec 2003
Distribution: Openwall, ~LFS
Posts: 128

Rep: Reputation: 15
Quote:
Originally posted by Blibblob
Those are the only lines with error in them. Before that were a bunch of C files with undefined references. Most of what it tries to compile has undefined references. There shouldn't be anything wrong with the downloaded file, as it compiled previously without a problem(I restarted the process when Glibc couldn't find the rest of the information)
This allows us to get a further idea. You see, saying there are undefined references does not really tell us what has happened - is it not finding headers or linking failing or x? Do you have any more details, ie, what it is unable to find?
 
Old 01-06-2004, 05:19 PM   #6
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Undefined refrences, could be missing enviromental variables, or incorrect ones. what does
echo $PATH
echo $LD_LIBRARY_PATH
produce?

Are they pointing to the right places? do you have the sources in these places that the code is asking for. What about -L and -I paths, are they pointing to the right places?
 
Old 01-06-2004, 06:37 PM   #7
Blibblob
LQ Newbie
 
Registered: Jan 2004
Distribution: SuSE
Posts: 6

Original Poster
Rep: Reputation: 0
The undefined references that I can see at the bottom are "targetm" and "regclass_map", before that I think I saw the x86 architecture.

$PATH is correct, it has the temporary folder for the new system at the front, and then the correct rest. And the book told me to unset LD_LIBRARY_PATH in my bash profile. And I, uh, don't understand what you mean by the two options.

Last edited by Blibblob; 01-06-2004 at 06:51 PM.
 
Old 01-06-2004, 06:57 PM   #8
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Yep, They refer to the x86 definitions for gcc, targetm = target machine, and regclass_map is the register map. It seems if these are the definitions it can't find, then there is some missing files in your source, or there in the wrong place.

Your looking for i386.h and similar.
 
Old 01-07-2004, 05:50 PM   #9
Blibblob
LQ Newbie
 
Registered: Jan 2004
Distribution: SuSE
Posts: 6

Original Poster
Rep: Reputation: 0
Ah, I guess that make sense, they are missing(well, I can't find them), so I'll re-extract the file, see if that works.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Build Error During Gentoo Bootstrap jrtayloriv Linux - Newbie 2 12-31-2004 11:40 AM
LFS5.1.1 gcc-core-3.3.3 bootstrap (first pass) error. Cynric Linux From Scratch 3 08-18-2004 09:34 PM
3rd LFS build (this time on x86-64): about GCC and GLIBC and other questions... ParticleHunter Linux From Scratch 1 08-16-2004 10:47 AM
GCC error when compiling it for LFS safrout Linux From Scratch 1 06-14-2003 06:16 AM
gcc 2.3 bootstrap error NGraphiX Linux From Scratch 1 05-15-2003 11:45 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration