Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 06-30-2005, 01:40 PM   #1
Registered: Aug 2003
Distribution: Slackware 10.0
Posts: 94
Blog Entries: 1

Rep: Reputation: 15
Error Compiling GCC (1st Pass) in LFS 6.0

I followed the instructions exactly, and in order. When I finnally typed
make BOOT_LDFLAGS="-static" bootstrap
It compiles normally, until the very end where it says

genmodes.o errors.o ../libiberty/libiberty.a
/tools/i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exist status
make[2]: *** [genmodes] Error 1
make[2]: Leaving directory '/mnt/lfs/gcc-3.4.1/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory '/mnt/lfs/gcc-3.4.1/gcc'
make: *** [bootstrap] Error 2

at the very end of the compilation. Then I decided to erase the unpacked gcc directory and unpack a new, fresh one, and repeat the process using root instead. This produced the same exact results.

I would appreciate any help for getting by this problem.

Thank you.
Old 06-30-2005, 08:57 PM   #2
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
... system does not have a static C library (/usr/lib/libc.a) which is required for the static compilation of packages...


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
LFS-5.0 GCC problem with binutils-2.14 pass 1 NCappaZoo Linux From Scratch 6 06-14-2009 03:47 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
GCC pass 1 error mugwump84 Linux From Scratch 2 05-10-2005 05:21 PM
binutils-2.14 first pass, gcc error Add1Sun Linux From Scratch 3 04-29-2004 04:27 PM
GCC error when compiling it for LFS safrout Linux From Scratch 1 06-14-2003 06:16 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration