public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* error while install cross compiler
@ 2002-11-17  5:07 汪 翼
  2002-11-19 19:48 ` Alexandre Oliva
  0 siblings, 1 reply; 2+ messages in thread
From: 汪 翼 @ 2002-11-17  5:07 UTC (permalink / raw)
  To: gcc; +Cc: cgen, fche

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 3418 bytes --]

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/ 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: error while install cross compiler
  2002-11-17  5:07 error while install cross compiler 汪 翼
@ 2002-11-19 19:48 ` Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2002-11-19 19:48 UTC (permalink / raw)
  To: 汪 翼; +Cc: gcc, cgen, fche

On Nov 17, 2002, 汪 翼 <dam_wang@hotmail.com> wrote:

> Hi I want to build a arm-elf target cross compiler.

>> ../glibc-2.2.4/configure --target=arm-elf

Last time I looked glibc was not a compiler :-)

--target makes no sense for glibc.  What you want is something more
like --build=<whatever your build platform is> --host=arm-linux-gnu

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-20  3:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-17  5:07 error while install cross compiler 汪 翼
2002-11-19 19:48 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).