LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   glibc install on lfs (https://www.linuxquestions.org/questions/linux-from-scratch-13/glibc-install-on-lfs-17017/)

bbenz3 03-26-2002 02:40 AM

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

lfslinux 03-26-2002 10:25 AM

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

bbenz3 03-26-2002 10:39 AM

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.

lfslinux 03-26-2002 10:58 AM

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.

bbenz3 03-26-2002 11:29 AM

It may be hard but I will get through it. It has been a really neat experience.
Thanks

bbenz3 03-26-2002 12:14 PM

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

lfslinux 03-26-2002 12:33 PM

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?

bbenz3 03-26-2002 01:01 PM

It is statically linked for sure now.


All times are GMT -5. The time now is 11:48 AM.