This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
compiler problems with old glibc
- From: Der Herr Hofrat <der dot herr at hofr dot at>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 1 May 2002 11:04:33 +0200 (CEST)
- Subject: compiler problems with old glibc
Hi !
For an embedded project I tried to compile glibc-2.0.7pre6
with a 2.95.2 gcc, but it fails, after compiling a substantial
part, with:
gcc ../sysdeps/generic/memmove.c -c -O2 -Wall -Winline -Wno-parentheses -Wstrict
-prototypes -Wwrite-strings -g -I. -I.. -I../libio -I../sysdeps/i386/elf -I
../crypt/sysdeps/unix -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthread
s/sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/
unix -I../linuxthreads/sysdeps/i386/i586 -I../linuxthreads/sysdeps/i386 -I../lin
uxthreads/sysdeps/pthread/no-cmpxchg -I../sysdeps/unix/sysv/linux/i386 -I../sysd
eps/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/i58
6 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/libm-i387 -I../sysde
ps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754 -I../sysdeps/libm-ieee754
-I../sysdeps/generic -I../sysdeps/stub -D_LIBC_REENTRANT -include ../libc-symbo
ls.h -o memmove.o
../sysdeps/generic/memmove.c: In function `memmove':
../sysdeps/generic/memmove.c:57: Invalid `asm' statement:
../sysdeps/generic/memmove.c:57: fixed or forbidden register 2 (cx) was spilled
for class CREG.
../sysdeps/generic/memmove.c:75: Invalid `asm' statement:
../sysdeps/generic/memmove.c:75: fixed or forbidden register 2 (cx) was spilled
for class CREG.
../sysdeps/generic/memmove.c:88: Invalid `asm' statement:
../sysdeps/generic/memmove.c:88: fixed or forbidden register 2 (cx) was spilled
for class CREG.
../sysdeps/generic/memmove.c:101: Invalid `asm' statement:
../sysdeps/generic/memmove.c:101: fixed or forbidden register 2 (cx) was spilled
for class CREG.
make[1]: *** [memmove.o] Error 1
make[1]: Leaving directory `/usr/src/packages/BUILD/glibc-2.0.7pre6/string'
make: *** [string/subdir_lib] Error 2
Bad exit status from /var/tmp/rpm-tmp.62793 (%build)
So can one actually compile older glibc with 2.95.2 or am I wasting my time ?
Does anybody know of any infos/howto/* that describe compiling old glibc
version with newer compilers ?
thx !
hofrat