bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compile error with glibc 2.2.4


From: Peter Mee
Subject: Compile error with glibc 2.2.4
Date: Wed, 12 Sep 2001 08:49:22 +0100

Hi all,

I'm wondering if someone could point me in the direction of why glibc (2.2.4
with linuxthreads 2.2.4) may not be compiling on my linux machine.  I have a
2.2.12 kernel (RedHat 6.1 originally) with gcc 2.95.2.1, make 3.79, binutils
2.11.2, autoconf 2.52 and automake 1.5 (not sure if these last two are
relevant).

I configured with (one line):

export CFLAGS=-mcpu=i386;
../configure --prefix=/usr/local/glibc-2.2.4 --enable-add-ons=linuxthreads
i386-pc-linux-gnu --with-headers=/usr/src/linux-2.2.12/include --enable-shar
ed=yes

All goes well until spinlock.c is attempted:

gcc spinlock.c -c -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -mcpu=i386  -I../include -I.  -I..
-I../libio  -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/
i386
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/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/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
/usr/local/gcc-2.95.2.1/lib/gcc-lib/i686-pc-linux-gnu/2.95.2.1/include -isys
tem /usr/src/linux-2.2.12/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h     -o spinlock.o
spinlock.c: In function `__pthread_lock':
spinlock.c:107: inconsistent operand constraints in an `asm'
make[1]: *** [spinlock.o] Error 1
make[1]: Leaving directory `/home/pmee/Downloads/glibc-2.2.4/linuxthreads'
make: *** [linuxthreads/others] Error 2

The 'offending' line is:

      __asm __volatile ("" : "=m" (lock->__status) : "0" (lock->__status));

Any ideas?

Cheers,

Peter Mee





reply via email to

[Prev in Thread] Current Thread [Next in Thread]