glibc-2.7: make goes into infinite loop
I'm trying to install glibc-2.7 on my Linux x86-64 2.6 kernel system. I'm using gcc 4.3.1 and binutils 2.18.
The ./configure goes fine, but the make goes into an infinite loop, continually leaving and entering the "nptl" directory. I see absolutely no errors. If you're interested, here's what I see: Code:
make[2]: Entering directory `/tmp/glibc-2.7/nptl' I'm stumped, and searching the interweb has provided no clues. Anyone had any experience with this? Any idea why it's looping like this? Thanks. |
There is a detailed build instruction for glibc 2.7 here :
http://www.linuxfromscratch.org/lfs/...r05/glibc.html (Linux From Scratch) 'gcc 4.3.1' is of later date (June 9th, 2008) than glibc 2.7, which is from "Date: Thu, 1 Nov 2007 23:17:10" ....but give it a try again..... or wait for a possible update (patch) for glibc to deal with gcc 4.3.1 compiling. No harm done with compiling ( = 'make'), but your system may not like a different 'glibc'. So please make backup of "everything" before installing. **Nothing, repeat nothing might work after you do a 'make install' !!! All currently installed stuff is depending on the original system glibc. Rgds |
Thanks for the replay, knudfl.
Trust me, I've tried different versions of gcc, different versions of binutils, even different glibc packages. All of them - every single one - goes into an infinite build loop in the "nptl" directory. It's frustrating because no error messages are generated. I can't tell why it keeps looping, what test it's failing that prevents it from moving forward. Extremely annoying. I'm on RHEL4 and I may just upgrade to RHEL5 to get the necessary level of glibc I need. That's probably the best solution. Thanks again for your help. |
The mentioned files were made to be compiled with gcc 4.2 (or 4.1),
I think. I would be surprised, if everything "from last year" would work with 4.3 , first version being March 2008. I made a "test compile" of gcc and a glibc, 2 months ago : no errors. And lots of other people do the same in "Linux From Scratch" So it's difficult to reproduce errors like yours. Rgds |
New comment : There are dedicated procedures to succeed with compiling
of e.g. binutils and glibc, see LFS ==> http://www.linuxfromscratch.org/lfs/...r05/glibc.html (this page is for glibc 2.7) You will need a "build directory" just outside each top - directory : binutils-x.xx >> binutils-build, and glibc-2.7 >> glibc-build . And a configure example : 'cd glibc-build' 'sh ../glibc-2.7/configure \ --prefix=/tools \ --disable-profile --enable-add-ons \ --enable-kernel=2.6.0 --with-binutils=/tools/bin \ --without-gd --with-headers=/tools/include \ --without-selinux but just try for yourself. (I made a toolchain yesterday with gcc, binutils and some more. (for arm processor)) and the procedures are "look alike" Rgds |
All times are GMT -5. The time now is 08:53 AM. |