LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-26-2002, 02:40 AM   #1
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
glibc install on lfs


Ok I have been trying LFS out and this time everything is going great. But I got to the part on installing glibc and it gives me and error stating
Quote:
GNU libc must be compiled using BNU CC
Where can I get this. I tried the GNU.org site, but I don't understand exactly what the GNU CC is. Am I looking for the gcc compiler or what. I am running redhat 7.2. Thanks

Last edited by bbenz3; 03-26-2002 at 09:43 AM.
 
Old 03-26-2002, 10:25 AM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Re: glibc install on lfs

Quote:
Originally posted by bbenz3
Ok I have been trying LFS out and this time everything is going great. But I got to the part on installing glibc and it gives me and error stating Where can I get this. I tried the GNU.org site, but I don't understand exactly what the GNU CC is. Am I looking for the gcc compiler or what. I am running redhat 7.2. Thanks
It's in the LFS FAQ, please have a read at:

http://www.linuxfromscratch.org/faq/#AEN156
 
Old 03-26-2002, 10:39 AM   #3
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Original Poster
Rep: Reputation: 30
Hey thanks. That will fix my problem too, however the reason I posted was I couldn't understand the GNU gcc website at all. I finally found a mirror ftp site and that was just straight forward enough that I could dl it from there.
 
Old 03-26-2002, 10:58 AM   #4
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Quote:
Originally posted by bbenz3
Hey thanks. That will fix my problem too, however the reason I posted was I couldn't understand the GNU gcc website at all. I finally found a mirror ftp site and that was just straight forward enough that I could dl it from there.
Yeah sorry the FAQ link was just to fix the "not using GNU CC" error that Gilbc's configure gave you.


As you figured out, GNU CC is /usr/bin/gcc - the system's compiler made by the GNU project.
 
Old 03-26-2002, 11:29 AM   #5
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Original Poster
Rep: Reputation: 30
It may be hard but I will get through it. It has been a really neat experience.
Thanks
 
Old 03-26-2002, 12:14 PM   #6
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Original Poster
Rep: Reputation: 30
well i am still getting that error.
Quote:
If you're getting an error from configure like: checking whether we are using GNU C... no
configure: error: GNU libc must be compiled using GNU CC


It may be because egrep (from the grep package) isn't working.

To test if egrep is working before reinstalling the grep package in Chapter 6, run the following command from outside chroot: file $LFS/usr/bin/egrep


If it doesn't say "statically linked" you have a problem and need to reinstall the grep package.

To test if egrep is working after reinstalling the grep package in Chapter 6, run the following command from inside chroot: egrep root /etc/passwd


If it doesn't print root's line from /etc/passwd, again, you have a problem. (This test also works if you encounter the problem after rebooting into the new LFS system.)
I followed everything there and all of that seems to work except the statically linked part. I am really confused. I reinstalled grep and I also got the source for GNU gcc 3.0 and installed that as well. I am most confused, plz help. thanks

well I rereinstalled grep and this time it comes up statically linked but I still get the same error. most confused

Last edited by bbenz3; 03-26-2002 at 12:22 PM.
 
Old 03-26-2002, 12:33 PM   #7
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Quote:
Originally posted by bbenz3
well i am still getting that error.


I followed everything there and all of that seems to work except the statically linked part. I am really confused. I reinstalled grep and I also got the source for GNU gcc 3.0 and installed that as well. I am most confused, plz help. thanks

well I rereinstalled grep and this time it comes up statically linked but I still get the same error. most confused
Well first determin is egrep is statically linked or not. Is it?
 
Old 03-26-2002, 01:01 PM   #8
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Original Poster
Rep: Reputation: 30
It is statically linked for sure now.
 
  


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
LFS without gcc and glibc nazir Linux From Scratch 5 08-05-2005 11:23 AM
LFS v6-installation of glibc; need help kartheekpn Linux From Scratch 31 04-26-2005 04:13 PM
Glibc-2.3.3-lfs-5.1 EPM_Students Linux From Scratch 1 02-12-2005 06:37 AM
Glibc (2.3.3-lfs-5.1) Mystified Linux From Scratch 2 12-02-2004 05:14 PM
LFS 4.1 book install hung at section 6.14: Glibc-2.3.1 SparceMatrix Linux From Scratch 4 05-30-2003 04:56 PM

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

All times are GMT -5. The time now is 04:03 PM.

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