From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3134 invoked by alias); 17 Nov 2002 13:07:52 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 3127 invoked from network); 17 Nov 2002 13:07:50 -0000 Received: from unknown (HELO hotmail.com) (207.68.163.116) by sources.redhat.com with SMTP; 17 Nov 2002 13:07:50 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 17 Nov 2002 05:07:46 -0800 Received: from 218.108.29.238 by sea1fd.sea1.hotmail.msn.com with HTTP; Sun, 17 Nov 2002 13:07:46 GMT X-Originating-IP: [218.108.29.238] From: =?gb2312?B?zfQg0u0=?= To: gcc@gnu.org Cc: cgen@sources.redhat.com, fche@redhat.com Bcc: Subject: error while install cross compiler Date: Sun, 17 Nov 2002 05:07:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 17 Nov 2002 13:07:46.0549 (UTC) FILETIME=[52A38250:01C28E3A] X-SW-Source: 2002-q4/txt/msg00026.txt.bz2 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/