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 06-26-2005, 10:33 PM   #1
unfunfofmpc
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Rep: Reputation: 0
GCC-CORE error.


Before I say anything, I want to say I had an error with binutils 2.15... (the version expected in LFS book), the standard undefined references in arlex.l error; however, installing bison & flex did not fix the problem, so I just decided to compile binutils 2.16 and that worked fine.


Anyway, I encounter a problem @: make BOOT_LDFLAGS="-static" bootstrap

It goes through its compiling stages (3 stages, first build, build with gcc ,build again w/ gcc.), during its second stage it encounters this error (error is @ bottom, i started from where it entered /gcc:
Quote:
make[2]: Entering directory `/LFS/gcc-build/gcc'
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototype
s -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I.././gcc-3.4.1/gcc -I.././gcc-3.4.1/gcc/. -I.././gcc-3.4.1/gcc/../include .././gcc-3.4.1/gcc/genmodes.c -o genmodes.o
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -c -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I.././gcc-3.4.1/gcc -I.././gcc-3.4.1/gcc/. -I.././gcc-3.4.1/gcc/../include .././gcc-3.4.1/gcc/errors.c -o errors.o
stage1/xgcc -Bstage1/ -B/tools/i686-pc-linux-gnu/bin/ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -DGENERATOR_FILE -static -o genmodes \
genmodes.o errors.o ../libiberty/libiberty.a
/tools/i686-pc-linux-gnu/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make[2]: *** [genmodes] Error 1
make[2]: Leaving directory `/LFS/gcc-build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/LFS/gcc-build/gcc'
make: *** [bootstrap] Error 2
Not quite sure what -lc even is..
The reason I stated my binutils problem is I am thinking binutils is the cause of this error. the ld executable was created during the binutils build.

Any ideas? If I am correct about the error being caused by binutils, how the heck do I get my binutils 2.15 build to work, because no matter what, it did not want to.

Thanks to anyone who can answer this question.
 
Old 07-08-2005, 04:47 PM   #2
[|RoA|]RoadRunner
Member
 
Registered: Jul 2005
Distribution: LFS
Posts: 43

Rep: Reputation: 15
http://www.linuxquestions.org/questi...21#post1723821
 
  


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
in gcc compiler error: parse error before string constsnt cynthia_thomas Linux - Networking 1 10-20-2005 02:29 AM
Fedora Core 4 bad gcc? sausagejohnson Fedora 7 07-05-2005 10:12 AM
GCC For Fedora Core 3 TwiztedTom Linux - Software 2 05-09-2005 06:38 AM
gcc 3.3.3 core http download ebit Linux From Scratch 1 10-01-2004 07:46 AM
LFS5.1.1 gcc-core-3.3.3 bootstrap (first pass) error. Cynric Linux From Scratch 3 08-18-2004 10:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:19 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
Open Source Consulting | Domain Registration