Hi I want to build a arm-elf target cross compiler. I follow the document I found, which direct me what to do: http://www.ailis.de/~k/knowledge/crosscompiling/toolchain.php I have build binutils and the arm-elf-gcc successfully, then, as the document says, I config and make the glibc with the command: > ../glibc-2.2.4/configure --target=arm-elf --prefix=/homex/student/wangy/arm-elf-toolchain/arm-elf --enable-add-ons > make but I got a error like: arm-elf-gcc ../sysdeps/unix/sysv/linux/i386/sysdep.S -c -I../include -I. -I/home/student/wangy/tar-files/glibc-build/csu -I.. -I../libio -I/home/student/wangy/tar-files/glibc-build -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/i686 -I../linuxthreads/sysdeps/i386/i586 -I../sysdeps/i386/i586 -I../sysdeps/i386/i486 -I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386/i686 -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/i686/fpu -I../sysdeps/i386/i686 -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 -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DHAVE_INITFINI -DASSEMBLER -I/home/student/wangy/tar-files/glibc-build/csu/. -DGAS_SYNTAX -o /home/student/wangy/tar-files/glibc-build/csu/sysdep.o ../sysdeps/unix/sysv/linux/i386/sysdep.S: Assembler messages: ../sysdeps/unix/sysv/linux/i386/sysdep.S:30: Error: unrecognized symbol type "" ../sysdeps/unix/sysv/linux/i386/sysdep.S:50: Error: unrecognized symbol type "" ../sysdeps/unix/sysv/linux/i386/sysdep.S:51: Error: bad instruction `negl %eax' ../sysdeps/unix/i386/sysdep.S:47: Error: bad instruction `pushl %eax' ../sysdeps/unix/i386/sysdep.S:49: Error: bad instruction `call __errno_location' ../sysdeps/unix/i386/sysdep.S:51: Error: bad instruction `popl %ecx' ../sysdeps/unix/i386/sysdep.S:52: Error: bad instruction `movl %ecx,(%eax)' ../sysdeps/unix/i386/sysdep.S:74: Error: bad instruction `movl $-1,%eax' ../sysdeps/unix/i386/sysdep.S:75: Error: bad instruction `ret' make[2]: *** [/home/student/wangy/tar-files/glibc-build/csu/sysdep.o] Error 1 make[2]: Leaving directory `/home/student/wangy/tar-files/glibc-2.2.4/csu' make[1]: *** [csu/subdir_lib] Error 2 make[1]: Leaving directory `/home/student/wangy/tar-files/glibc-2.2.4' make: *** [all] Error 2 I build the binutils in /home/student/wangy/arm-elf-toolchain/, the version of arm-elf-gcc I built was gcc-2.95.3.tar.gz. I tried to use arm-elf-gcc without glibc like: arm-elf-gcc test.c What I got was: /home/student/wangy/arm-elf-toolchain/arm-elf/bin/ld: cannot open crt0.o: No such file or directory collect2: ld returned 1 exit status What to do now? Thanks for your help! Dam Wang _________________________________________________________________ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/lccn/