Hi all,

I'm attempting to build a fresh trunk pull using glibc 2.7 instead of uClibc. I'm building on a VM of ubuntu server 10.04LTS. This same server is building many OpenWRT builds using uClibc without issue. It is failing, when compiling glibc, with the following error:

make[6]: Entering directory `/home/buildsrvr/openwrt/trunk-glibc/build_dir/toolchain-i386_gcc-4.5-linaro_glibc-2.7/glibc-2.7/nptl' i486-openwrt-linux-gnu-gcc pthread_rwlock_tryrdlock.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Winline -Wwrite-strings -fhonour-copts -fmerge-all-constants -fno-align-functions -fno-align-jumps -fno-align-labels -fno-align-loops -march=k6-2 -pipe -Wstrict-prototypes -mpreferred-stack-boundary=2 -I../include -I/home/buildsrvr/openwrt/trunk-glibc/build_dir/toolchain-i386_gcc-4.5-linaro_glibc-2.7/glibc-2.7-final/nptl -I/home/buildsrvr/openwrt/trunk-glibc/build_dir/toolchain-i386_gcc-4.5-linaro_glibc-2.7/glibc-2.7-final -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i486 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -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../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -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 -I../nptl -I.. -I../libio -I. -nostdinc -isystem /home/buildsrvr/openwrt/trunk-glibc/staging_dir/toolchain-i386_gcc-4.5-linaro_glibc-2.7/lib/gcc/i486-openwrt-linux-gnu/4.5.4/include -isystem /home/buildsrvr/openwrt/trunk-glibc/staging_dir/toolchain-i386_gcc-4.5-linaro_glibc-2.7/lib/gcc/i486-openwrt-linux-gnu/4.5.4/include-fixed -isystem /home/buildsrvr/openwrt/trunk-glibc/staging_dir/toolchain-i386_gcc-4.5-linaro_glibc-2.7/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DNOT_IN_libc=1 -DIS_IN_libpthread=1 -o /home/buildsrvr/openwrt/trunk-glibc/build_dir/toolchain-i386_gcc-4.5-linaro_glibc-2.7/glibc-2.7-final/nptl/pthread_rwlock_tryrdlock.o -MD -MP -MF /home/buildsrvr/openwrt/trunk-glibc/build_dir/toolchain-i386_gcc-4.5-linaro_glibc-2.7/glibc-2.7-final/nptl/pthread_rwlock_tryrdlock.o.dt -MT /home/buildsrvr/openwrt/trunk-glibc/build_dir/toolchain-i386_gcc-4.5-linaro_glibc-2.7/glibc-2.7-final/nptl/pthread_rwlock_tryrdlock.o
pthread_rwlock_tryrdlock.c: Assembler messages:
pthread_rwlock_tryrdlock.c:52: Error: bad register name `%sil'
make[6]: *** [/home/buildsrvr/openwrt/trunk-glibc/build_dir/toolchain-i386_gcc-4.5-linaro_glibc-2.7/glibc-2.7-final/nptl/pthread_rwlock_tryrdlock.o] Error 1 make[6]: Leaving directory `/home/buildsrvr/openwrt/trunk-glibc/build_dir/toolchain-i386_gcc-4.5-linaro_glibc-2.7/glibc-2.7/nptl'
make[5]: *** [nptl/subdir_lib] Error 2
make[5]: Leaving directory `/home/buildsrvr/openwrt/trunk-glibc/build_dir/toolchain-i386_gcc-4.5-linaro_glibc-2.7/glibc-2.7'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/buildsrvr/openwrt/trunk-glibc/build_dir/toolchain-i386_gcc-4.5-linaro_glibc-2.7/glibc-2.7-final' make[3]: *** [/home/buildsrvr/openwrt/trunk-glibc/staging_dir/toolchain-i386_gcc-4.5-linaro_glibc-2.7/stamp/.glibc_built] Error 2 make[3]: Leaving directory `/home/buildsrvr/openwrt/trunk-glibc/toolchain/glibc'
make[2]: *** [toolchain/glibc/compile] Error 2
make[2]: Leaving directory `/home/buildsrvr/openwrt/trunk-glibc'
make[1]: *** [/home/buildsrvr/openwrt/trunk-glibc/staging_dir/toolchain-i386_gcc-4.5-linaro_glibc-2.7/stamp/.toolchain_install] Error 2
make[1]: Leaving directory `/home/buildsrvr/openwrt/trunk-glibc'
make: *** [world] Error 2

I hope that pasted correctly. If not, the error specifically is:
pthread_rwlock_tryrdlock.c:52: Error: bad register name `%sil'

To enable glibc, I enabled Developer Tools, Toolchain Options, Use glibc, and changed the version to 2.7 inside of menuconfig. Then I did a standard "make". I found an old ticket regarding glibc and binutils, https://dev.openwrt.org/ticket/7133 , however, this appears to be failing for a different reason than that one.

Any suggestions? Google hasn't turned up much.

Best regards,
Adam
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to