LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-02-2005, 03:33 PM   #1
Barnette
LQ Newbie
 
Registered: Dec 2003
Posts: 9

Rep: Reputation: 0
gcc make error in ch5.5 of LFS 6.0


Hi. I'm trying to install my first LFS.
I haven't been using Linux very long either...
and here's my problem:

I get down to this step in section 5.5 of LFS 6
make BOOT_LDFLAGS="-static" bootstrap

at the end of where it fails it says there are undefined references
i.e. "/usr/lib/libc.a(dl-version.o)(text+0xbe): undefined reference to 'strlen'
before saying "collect2: ld returned 1 exit status
make[2]: *** [genmodes] Error 1
make[1]: *** [stage2 build] Error 2
make: *** [bootstrap] Error 2"

I *never* see "ld: cannot find -lc"

Being really new to Linux, I have no idea what to do next. Any have any suggestions?
 
Old 01-02-2005, 07:35 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
whats your host system? It would be a problem there since it is using the host development libraries (hence the static build so you won't have the same problem after chrooting )
 
Old 01-03-2005, 03:09 AM   #3
Barnette
LQ Newbie
 
Registered: Dec 2003
Posts: 9

Original Poster
Rep: Reputation: 0
host system

vector linux.
do i need additional libraries, or to change something about the way its already set up?

thanks.
 
Old 01-03-2005, 03:26 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
kinda odd considering it made it through stage one and on to stage two.

dont really know considering it found libc.a once a didn't have a problem with it.

I don't know what you could change as far as the setup, what version of glibc do you have on the host system?

Last edited by __J; 01-03-2005 at 03:28 AM.
 
Old 01-03-2005, 04:08 AM   #5
Barnette
LQ Newbie
 
Registered: Dec 2003
Posts: 9

Original Poster
Rep: Reputation: 0
2.3.2

I haven't changed anything (haven't changed much, added some programs) from the 4.3 defaults.
 
Old 01-03-2005, 12:09 PM   #6
Barnette
LQ Newbie
 
Registered: Dec 2003
Posts: 9

Original Poster
Rep: Reputation: 0
I think I'll try the LFS live cd.
 
  


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
Error Compiling GCC (1st Pass) in LFS 6.0 TGWDNGHN Linux From Scratch 1 06-30-2005 09:57 PM
LFS 6 ch5.9 adjusting the toolchain failed sanity check totty79 Linux From Scratch 1 03-21-2005 03:58 PM
GCC first build for LFS, bootstrap error Blibblob Linux From Scratch 8 01-07-2004 06:50 PM
GCC error when compiling it for LFS safrout Linux From Scratch 1 06-14-2003 07:16 AM
LFS Chap 5 - gcc first make command errors antken Linux From Scratch 3 03-17-2003 11:38 PM


All times are GMT -5. The time now is 06: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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration