LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 01-28-2002, 11:36 PM   #1
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Rep: Reputation: 30
I bwoke the world


The first barrier..

I've gotten up to compiling glibc-2.2.4 and struck a small problem..

when trying to compile I get the error :


checking whether the C compiler (gcc ) works... \c
no
checking whether the C compiler (gcc ) is a cross-compiler... \c
(cached) \c
yes
checking whether we are using GNU C... \c
no
configure: error: GNU libc must be compiled using GNU CC
<s-packages-3.1/glibc-build#
I assume its cause glibc isn't installed to start with, so I'm thinking I should be doing it via root in my redhat distro

what have I done wrong?? or not done at all??

and whats with the \c at the end of every line? I didn't see that in other peoples post?

So if I tried to compile it as root of my distro it would work right?
I was gonna try it but didn't wanna break anything..that and the book says no..

(weird how many questions you can have off a simple error eh)

also..the booklet thing states its glibc-2.2.5 when the package is 2.2.4..
I change the script to reflect that cause I doubted it was gonna work if I didn't...but pretty sure you guys have seen the typo already (was it a typo?)

Last edited by dj_relentless; 01-28-2002 at 11:52 PM.
 
Old 01-29-2002, 02:53 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
You are using version 3.1 of the book right? I don't see glibc-2.2.5 anywhere in my book it's all 2.2.4.
You should compile it when chrooted into your lfs system. You don't have to be root in your host distribution to compile it like you did the previous packages.
I've never seen any of those \c when I was building it. You might want to go back a few steps and confirm that every packages has been properly installed. Especially since your first error states that the c compiler doesn't even work. You kinda need it to continue the rest.
 
Old 01-29-2002, 01:01 PM   #3
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Original Poster
Rep: Reputation: 30
Hey ya know your right, the pdf file I downloaded at home says 2.2.5 and the one at work say 2.2.4..weird..
I should be able to look at all the dir's and that would tell me if I've left anything out..
Cause I thought maybe it was gcc so I reinstalled that just in case I was going senile but no difference..I know its my fault since no one else had this issue but I'm not sure what I could have missed.. I've been doing it without scrips or anything so possibly I've made a typo somewhere along the line..
I've also tried :
screaming
cursing
throwing things at it
threatening it with death
threating to like windows better
pleading with it..
singing to it..
Offering it alcohol..
Offering it weed..
Offering marrage..
Offering a prostitute..male and female..
Offering to buy it a car..
promising to not kiss girlfriend in front of it..
Threating to cut the power cable..
Offering food..
Offering chocolate..
Promising not to press the reset button again..
Promising not to overclock it..
and I even promissed I wouldn't let anyone under the age of 10 play on it ever again..

alas still not reaction..
 
Old 01-29-2002, 06:23 PM   #4
isajera
Senior Member
 
Registered: Jun 2001
Location: San Antonio, TX
Distribution: distro? what's a distro?
Posts: 1,635

Rep: Reputation: 45
have you tried setting the execute permissions on gcc and the making sure it's in the right path?
 
Old 01-29-2002, 06:33 PM   #5
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Original Poster
Rep: Reputation: 30
I haven't verified where it is nor permissions..if the permissions are wrong it would tell me in the compile right? according to docs it went into /mnt/lfs/usr .. But I have a look after work and stop assuming..
Thanks..
 
Old 01-29-2002, 06:37 PM   #6
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Re: I bwoke the world

Quote:
Originally posted by dj_relentless
The first barrier..

I've gotten up to compiling glibc-2.2.4 and struck a small problem..

when trying to compile I get the error :

checking whether we are using GNU C... \c
no
configure: error: GNU libc must be compiled using GNU CC
You got some problems.

first of all, the \c indicates that something is missing. I can't quite remember what causes a missing \c but I do remember that by inspecting the configure output right from the very beginning will tell you that something is missing. Look for "no such file or directory" errors.

Secondly, it not being able to detect whether or not you're using GNU CC is most often caused by /mnt/lfs/usr/bin/egrep missing, or not being statically linked. Either way, you're going to have to exit chroot, go back to chapter 5 and reinstall grep.

May I point you to http://search.linuxfromscratch.org and http://www.linuxfromscratch.org/faq/

Both problems occur quite frequently and the GNU CC thing is so frequent it even made it in the FAQ.

I think it's safe to say at this point that there's no single error encountered during LFS compile jobs that hasn't been encountered before, so the search engine (that searches the mailing list archives) is your friend.
 
Old 01-29-2002, 07:25 PM   #7
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Original Poster
Rep: Reputation: 30
Thankyou muchly, I'll read through the configure output properly and find out what I have or haven't done..
and I'l read the faq now to stop silly questions in future
 
Old 01-29-2002, 09:26 PM   #8
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Original Poster
Rep: Reputation: 30
yep you were right, I reinstalled it and all is well again..cheer cheer..
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A whole new world 8oluf7 LinuxQuestions.org Member Intro 2 01-08-2005 06:36 AM
I want the whole world to know german LinuxQuestions.org Member Success Stories 3 06-28-2004 02:44 PM
world writeable files will not stay world writeable antken Mandriva 1 03-02-2004 05:04 PM
hello world in g++ Longinus Programming 22 02-22-2004 11:58 PM
Hello World! flaw Linux - Newbie 6 09-19-2002 02:54 AM


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