LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-13-2006, 06:58 PM   #1
fatsheep
Member
 
Registered: Sep 2006
Posts: 79

Rep: Reputation: 15
Error When Compiling GCC


When I compile gcc with the "make bootstrap" command I get an error message after a few minutes:

Quote:
libgcc/32/unwind-c_s.o -lc && rm -f 32/libgcc_s.so && if [ -f 32/libgcc_s.so.1 ]; then mv -f 32/libgcc_s.so.1 32/lib gcc_s.so.1.backup; else true; fi && mv 32/libgcc_s.so.1.tmp 32/libgcc_s.so.1 && ln -s libgcc_s.so.1 32/libgcc_s.so
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/li bc.so when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/li bc.a when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so w hen searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a wh en searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s.so] Error 1
make[3]: Leaving directory `/mnt/lfs/tools/gcc-build/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/mnt/lfs/tools/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/lfs/tools/gcc-build/gcc'
make: *** [bootstrap] Error 2
Any ideas?
 
Old 10-14-2006, 03:37 AM   #2
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
What architecture do you have (processor type - x86, x86_64, ppc, alpha or ... )? I suppose it's x86_64
What is the host distro you are using (kernel version, ...)? You might need a more "modern" kernel.
What gcc version does your distro have (is it 2.95.x ?)? You might need to ungrade you gcc.
 
Old 10-14-2006, 11:10 AM   #3
fatsheep
Member
 
Registered: Sep 2006
Posts: 79

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Vitalie Ciubotaru
What architecture do you have (processor type - x86, x86_64, ppc, alpha or ... )? I suppose it's x86_64
What is the host distro you are using (kernel version, ...)? You might need a more "modern" kernel.
What gcc version does your distro have (is it 2.95.x ?)? You might need to ungrade you gcc.
Distrobution: Ubuntu Dapper 6.06
Architecture: x86_64
GCC Version: 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
Kernel: 2.6.15-27-amd64-generic

So you're thinking I should downgrade GCC for compiling LFS? I just checked in synaptic and it looks like the 3.4 and 3.3 versions of GCC are all that's available in the repositories. However, removing gcc 4.0 removes a bunch of programs and libraries on my system so I would prefer not to do that.

Last edited by fatsheep; 10-14-2006 at 11:46 AM.
 
Old 10-14-2006, 04:09 PM   #4
fatsheep
Member
 
Registered: Sep 2006
Posts: 79

Original Poster
Rep: Reputation: 15
I've decided to burn a LiveCD and start over. Hopefully I don't run into the same problem this time.
 
  


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 3.3.6 with 64bit gcc 4.0.3 cs-cam Linux - Software 0 04-22-2006 05:20 AM
Error Compiling GCC (1st Pass) in LFS 6.0 TGWDNGHN Linux From Scratch 1 06-30-2005 08:57 PM
error compiling kernel 2.6.2 (GCC too old??) Dancingsalad Linux - Newbie 5 02-07-2004 04:05 PM
GCC error when compiling it for LFS safrout Linux From Scratch 1 06-14-2003 06:16 AM
gcc error while compiling gawk iceman47 Linux From Scratch 2 03-04-2003 12:12 PM


All times are GMT -5. The time now is 09:45 PM.

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