This is the mail archive of the
crossgcc@sources.redhat.com
mailing list for the crossgcc project.
See the CrossGCC FAQ for lots
more information.
crossgcc: ld error msg
- To: crossgcc at sourceware dot cygnus dot com
- Subject: crossgcc: ld error msg
- From: Tian Ling <tling at cadence dot com>
- Date: Fri, 23 Feb 2001 18:17:52 -0800
Hi,
I was trying to build crossgcc on my linux host. Things look fine but in the end I got this error msg:
# MY_TARGET-gcc foo.c
/usr/local/MY_TARGET/bin/ld: cannot open crt0.o: No such file or directory
collect2: ld return 1 exit status
I followed following steps to build crossgcc:
0.
prefix=/usr/local
1. <build binutils>
cd binutils-2.9.1
configure --target=MY_TARGET --prefix=$prefix
make all install
2. <build gcc>
cd gcc-2.95.1
ln -s <path-to-newlib>/newlib-1.8.1/newlib newlib
configure --target=MY_TARGET --with-newlib --with-headers=<path_to_newlib>/newlib/libc/include
make cross LANGUAGES="c c++" install
Based on the error message, what could be wrong? I did a find and found there are two crt0.o in my system, under /usr/lib/bcc/i386/ and /usr/lib/bcc/i86/
Thanks a lot for your time and help.
Tian Ling
------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com