• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Linux From Scratch/ GCC 4

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

electrorcamd

Member
Joined
Jul 27, 2004
Location
Belton, MO
I'm trying to get Linux From Scratch working, but I'm having problems compiling glibc-2.3.5. These are the last few lines:
math/s_isinf.os -MD -MP -MF /mnt/lfs/sources/glibc-build/math/s_isinf.os.dt -MT /mnt/lfs/sources/glibc-build/math/s_isinf.os
../sysdeps/ieee754/dbl-64/s_isinf.c:29: error: 'isinf' aliased to undefined symbol '__isinf'
make[2]: *** [/mnt/lfs/sources/glibc-build/math/s_isinf.os] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.5/math'
make[1]: *** [math/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.5'
make: *** [all] Error 2

Does anybody know what might be causing this? I'm using GCC 4.0.0, which compiled without problems, and binutils was fine also. Could this be caused by using gcc 4 instead of 3.4.3?
This is the part of the handbook I am in:
http://lfs.osuosl.org/lfs/view/development/chapter05/glibc.html
Thanks
 
No, it is Linux from scratch, literally. It's where you compile everything from source and configure everything yourself. It is similar to a stage 1 of Gentoo, except there is no package management and you have to do a little more yourself. Here is the link:
www.linuxfromscratch.org
 
It's a super basic linux distro. Not many people use it because of stuff like the above error. I really have no idea what could be causing it without diving into the code. Try posting on the linux from scratch forums.
 
It's my understanding that there are ALOT of things that won' compile correctly with GCC 4.0 may wanna stick 3.3.5 or 3.4 and get a working system. Good luck with LFS btw. Only knew one guy who did it and he reloaded the thing with gentoo after 2 weeks of headaches :D
 
I didn't even notice you were using GCC 4.0...

4.0 is HIGHLY unstable. It's known to break stuff. I'm not even sure if it's in beta yet.

I would definitely roll back to an older, more stable version of gcc.
 
Thanks kaltag. I already have 3.4.3 downloaded, since 4.0 still needs some help.
I'm installing this inside of Gentoo, just to mess around with for now. If I can get it working decently, I might do an LFS install on my server because of the small size.
Edit:
I didn't see your post before I posted MRD. I knew it had some problems after reading some about it on the Gentoo forums, but I decided I would try it and see what would happen.
 
glibc 2.3.5 does not work with gcc 4.0.0. If you can get a later version (ie a later snapshot) it should work. Or, you could wait for 2.3.6 (you maybe want to wait for a later 4.0.x or 4.1.x gcc release as well).
 
Okay, I'll either go back to 3.4.3, which I compiled yesterday. Or, I will look for a later version of glibc.
Thanks
 
I tried a newer version of glibc (a snapshot release) and it still didn't work. I'm compiling glibc-2.3.5 with gcc-3.4.3 right now, and it seems to be working fine. Hopefully it will continue that way.
Edit:
It just finished compiling with no errors.
 
Last edited:
Back