Again with crt0.o
Antoine PERNIN
a_pernin@hotmail.com
Thu Apr 26 06:16:00 GMT 2001
Yes, I'm still with my crt0.o problem :
I have cygwin (now 1.3.1) with gcc2.95.3
I can configure and compile gcc for an arm-elf target, that is ok
But when i run arm-elf-gcc test.c -o test, it says :
/tools/H-i686-pc-cygwin/lib/gcc-lib/arm-elf/2.95.3/crt0.o: file not
recognized: file format not recognized
(First it doesnot find crt0.o, i have to copy it to this directory!)
$file crt0.o says
80386 COFF executable not stripped - version 30821
Could anyone help me?
PS : I guess cygwin has its own c library (would newlib1.9.0 be usefull? if
yes, how to install it properly?)
Here is how i configure and install my cross compileer (no problems for
binutils)(following redhat/ecos advices
mkdir -p /tmp/build/gcc
cd /tmp/build/gcc
/src/gcc/gcc-2.95.3/configure --target=arm-elf \
--prefix=/tools \
--exec-prefix=/tools/H-i686-pc-cygwin \
--with-gnu-as --with-gnu-ld --with-newlib \
-v 2>&1 | tee configure.out
make -w all-gcc install-gcc \
LANGUAGES="c c++" 2>&1 | tee make.out
For binutils:
mkdir -p /tmp/build/binutils
cd /tmp/build/binutils
/src/binutils/binutils-2.10.1/configure --target=arm-elf \
--prefix=/tools \
--exec-prefix=/tools/H-i686-pc-cygwin \
-v 2>&1 | tee configure.out
make -w all install 2>&1 | tee make.out
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com .
More information about the Gcc-help
mailing list