From: "汪 翼" <dam_wang@hotmail.com>
To: gcc@gnu.org
Cc: cgen@sources.redhat.com, fche@redhat.com
Subject: error while install cross compiler
Date: Sun, 17 Nov 2002 05:07:00 -0000 [thread overview]
Message-ID: <F116WGxegIqunLOyDc40000eca2@hotmail.com> (raw)
[-- 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/
next reply other threads:[~2002-11-17 13:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-17 5:07 汪 翼 [this message]
2002-11-19 19:48 ` Alexandre Oliva
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F116WGxegIqunLOyDc40000eca2@hotmail.com \
--to=dam_wang@hotmail.com \
--cc=cgen@sources.redhat.com \
--cc=fche@redhat.com \
--cc=gcc@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).