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 11-28-2005, 08:14 PM   #1
tritong
Member
 
Registered: Nov 2005
Posts: 40

Rep: Reputation: 15
Post gcc problem !!!


HI all !!!
My kernel is Linux 2.6.12-9-amd64-generic #1 Mon Oct 10 13:27:39 BST 2005 x86_64 GNU/Linux. I want to build LFS on it, when I try to compile GCC-4.0.2 some error occured :
--- configure [ok]
--- make bootstrap [error]
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when 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 `/media/lfs/s/gcc/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/media/lfs/s/gcc/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/media/lfs/s/gcc/gcc'
make: *** [bootstrap] Error 2

How can I solve my prob ???
Everybody ! Please help me !!!
 
Old 11-29-2005, 03:35 AM   #2
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
Re: gcc problem !!!

Quote:
Originally posted by tritong
HI all !!!
My kernel is Linux 2.6.12-9-amd64-generic #1 Mon Oct 10 13:27:39 BST 2005 x86_64 GNU/Linux. I want to build LFS on it, when I try to compile GCC-4.0.2 some error occured :
--- configure [ok]
--- make bootstrap [error]
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libc.so when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/../lib/libc.a when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/tools/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/libc.a when 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 `/media/lfs/s/gcc/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory `/media/lfs/s/gcc/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/media/lfs/s/gcc/gcc'
make: *** [bootstrap] Error 2

How can I solve my prob ???
Everybody ! Please help me !!!
Send a bug report to the mailing list of LFS.

Or try build the LFS 6.1 Stable which should work.
 
Old 11-29-2005, 01:24 PM   #3
midiox
Member
 
Registered: Oct 2005
Location: Rezekne, Latvia
Distribution: LFS
Posts: 31

Rep: Reputation: 15
I had the same

cannot find -lc
collect2: ld returned 1 exit status

problem with LFS-BOOK-6.1 and I decided that I forgot to issue "make install" after "make" (I do not remember, which package exactly it was), because I had a break between two compilings. So I did "make install" for the package before the problematic one and then repeated compiling the problematic package. Everything went fine. Although I am not sure that I did not "make install" twice for the first package.
 
Old 11-29-2005, 07:35 PM   #4
tritong
Member
 
Registered: Nov 2005
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks mr_demilord !!!

Does kernel amd64 support for Linux from Scratch ???

I think it doesn't .?!?!?!?

When I use kernel 2.6.12, LFS work OK . Why kernel amd64 does not work ???
 
  


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
Solved Problem Second GCC-Pass(or gettext sanity check problem) hoes Linux From Scratch 0 09-04-2005 10:20 AM
problem with gcc or me? kahn Programming 6 06-13-2005 03:20 AM
gcc problem krock923 Programming 13 03-15-2005 08:28 AM
GCC problem HiOctane21 Linux - Newbie 2 02-19-2004 05:55 PM
gcc 3.2-7 problem necromancer Programming 7 03-04-2003 01:04 PM


All times are GMT -5. The time now is 06:39 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