nptl compatibility with gcc, binutils and glibc..

anish sheth asheth at cisco.com
Wed Mar 24 17:24:50 UTC 2004


hello,

I am trying to use nptl with glibc 2.3.2 ( downloaded from gnu.org ). I am 
also using gcc-3.2.3  and binutils 2.13.2 ( both from gnu.org).

when trying to compile glibc with nptl, I run into one or other errors. 
(glibc without nptl compiles fine with above gcc and binutils..)

can you please let me know what combination of glibc, gcc, binutils and 
nptl is suppose to work?
Please include me in your response as I am not subscribed to the alias yet.

I have tried nptl versions 0.10, 0.15, 0.20, 0.25, 0.30 and 0.60 from 
ftp://people.redhat.com/drepper/nptl/

here are different errors:

1) nptl-0.10

make[2]: Entering directory `/aesop/asheth/src/glibc-2.3.2/csu'
gcc -B/aesop/asheth/src/binutils-2.13.2-inst/bin/ 
../sysdeps/unix/sysv/linux/init-first.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -g      -I../include -I. 
-I/aesop/asheth/src/glibc-2.3.2-nptlb/csu -I.. 
-I../libio  -I/aesop/asheth/src/glibc-2.3.2-nptlb -I../sysdeps/i386/elf 
-I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv 
-I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv 
-I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix 
-I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 
-I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 
-I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf 
-I../sysdeps/generic  -nostdinc -isystem 
/aesop/asheth/src/gcc-3.2.3-inst/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include 
-isystem /aesop/asheth/src/linux-2.4.24/include/ -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DHAVE_INITFINI 
-o /aesop/asheth/src/glibc-2.3.2-nptlb/csu/init-first.o
In file included from ../sysdeps/unix/sysv/linux/ldsodefs.h:25,
                  from ../sysdeps/unix/sysv/linux/init-first.c:30:
../sysdeps/generic/ldsodefs.h:253: warning: type defaults to `int' in 
declaration of `type name'
../sysdeps/generic/ldsodefs.h:253: storage class specified for parameter 
`type name'
../sysdeps/generic/ldsodefs.h:253: syntax error before "_dl_load_lock"
../sysdeps/generic/ldsodefs.h:256: warning: return type defaults to `int'
../sysdeps/generic/ldsodefs.h:256: warning: function declaration isn't a 
prototype
../sysdeps/generic/ldsodefs.h: In function `__rtld_lock_define_recursive':
../sysdeps/generic/ldsodefs.h:256: storage class specified for parameter 
`_dl_osversion'
../sysdeps/generic/ldsodefs.h:258: storage class specified for parameter 
`_dl_platform'

<error truncated let me know if you need more>



2) nptl-0.11 and 0.15

gcc -B/aesop/asheth/src/binutils-2.13.2-inst/bin/ 
../nptl/sysdeps/unix/sysv/linux/raise.c -c -std=gnu99 -O2 -Wall -Winline 
-Wstrict-prototypes -Wwrite-strings -g      -I../include -I. 
-I/aesop/asheth/src/glibc-2.3.2-nptlb/signal -I.. 
-I../libio  -I/aesop/asheth/src/glibc-2.3.2-nptlb -I../sysdeps/i386/elf 
-I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv 
-I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv 
-I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix 
-I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 
-I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf 
-I../sysdeps/generic  -nostdinc -isystem 
/aesop/asheth/src/gcc-3.2.3-inst/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include 
-isystem /aesop/asheth/src/linux-2.4.24/include/ -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o 
/aesop/asheth/src/glibc-2.3.2-nptlb/signal/raise.o
In file included from ../nptl/sysdeps/unix/sysv/linux/raise.c:23:
../nptl/pthreadP.h:90: warning: `visibility' attribute directive ignored
../nptl/pthreadP.h:92: warning: `visibility' attribute directive ignored
../nptl/sysdeps/unix/sysv/linux/raise.c:36:44: macro "INTERNAL_SYSCALL" 
requires 4 arguments, but only 2 given
../nptl/sysdeps/unix/sysv/linux/raise.c: In function `raise':
../nptl/sysdeps/unix/sysv/linux/raise.c:36: `INTERNAL_SYSCALL' undeclared 
(first use in this function)
../nptl/sysdeps/unix/sysv/linux/raise.c:36: (Each undeclared identifier is 
reported only once
../nptl/sysdeps/unix/sysv/linux/raise.c:36: for each function it appears in.)
make[2]: *** [/aesop/asheth/src/glibc-2.3.2-nptlb/signal/raise.o] Error 1
make[2]: Leaving directory `/aesop/asheth/src/glibc-2.3.2/signal'
make[1]: *** [signal/subdir_lib] Error 2
make[1]: Leaving directory `/aesop/asheth/src/glibc-2.3.2'
make: *** [all] Error 2


3) nptl-0.20 and 0.25

gcc -B/aesop/asheth/src/binutils-2.13.2-inst/bin/ herrno.c -c -std=gnu99 
-O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g      -I../include 
-I. -I/aesop/asheth/src/glibc-2.3.2-nptlb/nptl -I.. 
-I../libio  -I/aesop/asheth/src/glibc-2.3.2-nptlb -I../sysdeps/i386/elf 
-I../nptl/sysdeps/unix/sysv/linux/i386/i686 
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux 
-I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv 
-I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux 
-I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman 
-I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv 
-I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix 
-I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 
-I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 
-I../sysdeps/ieee754 -I../sysdeps/generic/elf 
-I../sysdeps/generic  -nostdinc -isystem 
/aesop/asheth/src/gcc-3.2.3-inst/bin/../lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include 
-isystem /aesop/asheth/src/linux-2.4.24/include/ -D_LIBC_REENTRANT 
-D_LIBC_REENTRANT -include ../include/libc-symbols.h   -DNOT_IN_libc=1 
-DIS_IN_libpthread=1    -o /aesop/asheth/src/glibc-2.3.2-nptlb/nptl/herrno.o
herrno.c:27: syntax error before "int"
make[2]: *** [/aesop/asheth/src/glibc-2.3.2-nptlb/nptl/herrno.o] Error 1
make[2]: Leaving directory `/aesop/asheth/src/glibc-2.3.2/nptl'
make[1]: *** [nptl/others] Error 2
make[1]: Leaving directory `/aesop/asheth/src/glibc-2.3.2'
make: *** [all] Error 2

4) nptl-0.30 and 0.60

configure fails with error...

checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for long double... yes
checking size of long double... 12
running configure fragment for ../glibc-2.3.2/sysdeps/i386/elf
checking for i386 TLS support... yes
running configure fragment for ../glibc-2.3.2/nptl/sysdeps/unix/sysv/linux
running configure fragment for ../glibc-2.3.2/nptl/sysdeps/pthread
configure: error: compiler support for __thread is required


Thanks,
-anish 





More information about the Phil-list mailing list