glibc + nptl compile fail on x86-64
Kelly Burkhart <[email protected]>
| Newsgroups | gmane.comp.lib.phil |
|---|---|
| Message-ID | <[email protected]> |
Has anyone been able to get NPTL working on x86-64? I'm failing to build glibc with the following error: /opt/kernel/gcc-bootstrap/bin/x86_64-unknown-linux-gnu-gcc plural.c -c -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -I../include -I. -I/opt/kernel/glibc-build/intl -I.. -I../libio -I../nptl -I/opt/kernel/glibc-build -I../sysdeps/x86_64/elf -I../nptl/sysdeps/unix/sysv/linux/x86_64 -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/x86_64 -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/x86_64 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/fpu -I../sysdeps/x86_64 -I../sysdeps/wordsize-64 -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 /opt/kernel/gcc-bootstrap/lib/gcc-lib/x86_64-unknown-linux-gnu/3.4/include -isystem /opt/kernel/linux-2.6.0-test1/include -D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h -D'LOCALEDIR="/opt/lib64/share/locale"' -D'LOCALE_ALIAS_PATH="/opt/lib64/share/locale"' -o /opt/kernel/glibc-build/intl/plural.o -MD -MP -MF /opt/kernel/glibc-build/intl/plural.o.dt /tmp/ccJLHZct.s: Assembler messages: /tmp/ccJLHZct.s:539: Error: Incorrect register `%rax' used with `l' suffix gmake[2]: *** [/opt/kernel/glibc-build/intl/l10nflist.o] Error 1 I'm running Suse 8.2 x86-64 beta on a dual Opteron, upgraded to kernel 2.6.0-test1. gcc & glibc fresh from CVS 2003-07-17. nptl-0.53 I added '#include <linux/compiler.h>' prior to all other includes in linux-2.6.0-test1/include/linux/sysctl.h. gcc configured like this: ../gcc/configure --prefix=/opt/kernel/gcc-bootstrap --disable-shared \ --enable-languages=c,c++ glibc configured like this: CC=/opt/kernel/gcc-bootstrap/bin/x86_64-unknown-linux-gnu-gcc \ ../glibc/libc/configure --prefix=/opt/lib64 --disable-profile \ --enable-add-ons=nptl --with-__thread --enable-kernel=current \ --with-tls --with-headers=/opt/kernel/linux-2.6.0-test1/include If anyone has successfully built please let me know what toolchain versions appear to work (or if my quest is futile). Any help much appreciated. -K