LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GLIBC fails to compile! (https://www.linuxquestions.org/questions/linux-software-2/glibc-fails-to-compile-682528/)

posix_memalign 11-10-2008 10:40 PM

GLIBC fails to compile!
 
When attempting to compile (by running 'make') glibc 2.4 the following error occurs.

Code:

CPP='gcc -E -x c-header'  /root/temp_install/glibc-2.4/build/elf/ld-linux.so.2 --library-path /root/temp_install/glibc-2.4/build:/root/temp_install/glibc-2.4/build/math:/root/temp_install/glibc-2.4/build/elf:/root/temp_install/glibc-2.4/build/dlfcn:/root/temp_install/glibc-2.4/build/nss:/root/temp_install/glibc-2.4/build/nis:/root/temp_install/glibc-2.4/build/rt:/root/temp_install/glibc-2.4/build/resolv:/root/temp_install/glibc-2.4/build/crypt:/root/temp_install/glibc-2.4/build/nptl /root/temp_install/glibc-2.4/build/sunrpc/rpcgen -Y ../scripts -c rpcsvc/bootparam_prot.x -o /root/temp_install/glibc-2.4/build/sunrpc/xbootparam_prot.T
cannot set up thread-local storage: set_thread_area failed when setting up thread-local storage

make[2]: *** [/root/temp_install/glibc-2.4/build/sunrpc/xbootparam_prot.stmp] Error 127
make[2]: Leaving directory `/root/temp_install/glibc-2.4/sunrpc'
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory `/root/temp_install/glibc-2.4'
make: *** [all] Error 2

I'm using a --prefix=/usr.

My system is:

Linux x86_18 2.4.33.3 #1 Fri Sep 1 01:48:52 CDT 2006 i686 pentium4 i386 GNU/Linux
Currently with glibc 2.3.6.
Slackware 11.0

posix_memalign 11-11-2008 10:25 AM

When attempting to compile glibc 2.7 instead, the following happens:

Code:

init.c: In function `__pthread_initialize_minimal_internal':
init.c:259: error: `__NR_set_tid_address' undeclared (first use in this function)
init.c:259: error: (Each undeclared identifier is reported only once
init.c:259: error: for each function it appears in.)
make[2]: *** [/root/temp_install/glibc-2.7/BUILD/nptl/init.o] Error 1
make[2]: Leaving directory `/root/temp_install/glibc-2.7/nptl'
make[1]: *** [nptl/subdir_lib] Error 2
make[1]: Leaving directory `/root/temp_install/glibc-2.7'
make: *** [all] Error 2


posix_memalign 11-11-2008 06:12 PM

glibc-2.5:

Code:

pthread_mutex_timedlock.c: In function `pthread_mutex_timedlock':
pthread_mutex_timedlock.c:276: error: `__NR_clock_gettime' undeclared (first use in this function)
pthread_mutex_timedlock.c:276: error: (Each undeclared identifier is reported only once
pthread_mutex_timedlock.c:276: error: for each function it appears in.)
make[2]: *** [/root/temp_install/glibc-2.5/build/nptl/pthread_mutex_timedlock.o] Error 1
make[2]: Leaving directory `/root/temp_install/glibc-2.5/nptl'
make[1]: *** [nptl/subdir_lib] Error 2
make[1]: Leaving directory `/root/temp_install/glibc-2.5'
make: *** [all] Error 2


posix_memalign 11-11-2008 06:13 PM

Anyone, any ideas?

sinuhe 01-29-2011 01:15 PM

Quote:

Originally Posted by posix_memalign (Post 3338385)
make[2]: Leaving directory `/root/temp_install/glibc-2.7/nptl'
make[1]: *** [nptl/subdir_lib] Error 2
make[1]: Leaving directory `/root/temp_install/glibc-2.7'
make: *** [all] Error 2[/code]

You're building against the 2.4 kernel, which didn't use nptl. You might look at glibc 2.5 and linuxthreads.

EDDY1 01-29-2011 01:29 PM

Really old thread


All times are GMT -5. The time now is 12:31 AM.