I am trying to cross compile GCC for an AMCC 440SP platform (powerpc-linux). Binutils and bootstrap GCC compile fine, but when I make glibc it errors out with the following:
.... snippet .... if test -r /opt/luan2/toolchain/build/glibc/csu/abi-tag.h.new; then mv -f /opt/luan2/toolchain/build/glibc/csu/abi-tag.h.new /opt/luan2/toolchain/build/glibc/csu/abi-tag.h; \ else echo >&2 'This configuration not matched in ../abi-tags'; exit 1; fi gawk -f ../scripts/gen-as-const.awk ../linuxthreads/sysdeps/powerpc/tcb-offsets.sym \ | powerpc-linux-gcc -S -o /opt/luan2/toolchain/build/glibc/tcb-offsets.hT3 -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -mnew-mnemonics -I../include -I. -I/opt/luan2/toolchain/build/glibc/csu -I.. -I../libio -I/opt/luan2/toolchain/build/glibc -I../sysdeps/powerpc/powerpc32/elf -I../sysdeps/powerpc/elf -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc/powerpc32 -I../linuxthreads/sysdeps/unix/sysv/linux/powerpc -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/powerpc/powerpc32 -I../linuxthreads/sysdeps/powerpc -I../sysdeps/unix/sysv/linux/powerpc/powerpc32 -I../sysdeps/unix/sysv/linux/powerpc -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/powerpc -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/powerpc/powerpc32/fpu -I../sysdeps/powerpc/powerpc32 -I../sysdeps/wordsize-32 -I../sysdeps/powerpc/soft-fp -I../sysdeps/powerpc/fpu -I../sysdeps/powerpc -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /opt/luan2/toolchain/bin/lib/gcc/powerpc-linux/4.0.2/include -isystem /opt/luan2/toolchain/source/linux-2.6.13/include/ -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -x c - \ -MD -MP -MF /opt/luan2/toolchain/build/glibc/tcb-offsets.h.dT -MT '/opt/luan2/toolchain/build/glibc/tcb-offsets.h.d /opt/luan2/toolchain/build/glibc/tcb-offsets.h' <stdin>: In function dummy: <stdin>:11: warning: asm operand 0 probably doesnt match constraints <stdin>:11: error: impossible constraint in asm make[2]: *** [/opt/luan2/toolchain/build/glibc/tcb-offsets.h] Error 1 make[2]: Leaving directory `/opt/luan2/toolchain/source/glibc-2.3.5/csu' make[1]: *** [csu/subdir_lib] Error 2 make[1]: Leaving directory `/opt/luan2/toolchain/source/glibc-2.3.5' make: *** [all] Error 2 .... snippet .... Here is the configuration I run from a separate build/glibc directory: ../../source/glibc-2.3.5/configure --prefix=/opt/luan2/toolchain/bin --target=powerpc-linux --host=powerpc-linux --enable-add-ons=linuxthreads --with-headers=/opt/luan2/toolchain/source/linux-2.6.13/include/ --with-binutils=/opt/luan2/toolchain/bin/powerpc-linux/bin This seems to complete without any issues. It seems that gcc is having issues with the following line in gen-as-const.awk: printf "asm (\"@@@name@@@%s@@@value@@@%%0@@@end@@@\" : : \"i\" (%s));\n", name, $0; Is my configure line incorrect, or have I maybe incorrectly configured bootstrap gcc prior to building glibc? Thanks, Jeff Stevens __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com