NT/Win32 cross Linux compiler
Kevin Farrell
kfarrell@seagull.nl
Wed Jun 30 10:00:00 GMT 1999
Hi,
I'm trying to build a Win32-hosted Linux-targetting cross-compiler using the
Canadian cross compiler process. I've been successful at building the
Linux->Windows Cygwin32 cross compiler (i586-cygwin32) which I used to build
(successfully) the egcs-1.1.2 Windows->Linux cross-compiler
(i586-linux-gnu). The latter produces 4 executables:
i586-linux-gnu-c++
i586-linux-gnu-c++filt
i586-linux-gnu-g++
i586-linux-gnu-gcc
I have a number of questions now:
(1) When I try to produce an object file using the -c option for a simple
hello world C++ program, I get the following message:
---
i586-L~1.EXE: HELLO.CPP: linker input file unused since linking not done
---
and no hello.o file is produced. This brings me to my second question:
(2-1) Now I'm wondering where do I get the linker from? Do I use the linker
from a Windows installation of the Cygwin32 binaries?
(2-2) I tried to build the binutils-2.9.1 using the i586-cygwin32
Linux->Windows compiler (which I mentioned at the start of this mail), but I
get the following error:
---
/bin/sh ./libtool --mode=link
/home/kfarrell/cross-compilers/lin2win/bin/i586-cygwin32-gcc -g -o size.exe
size.o bucomm.o version.o filemode.o ../bfd/libbfd.la
../libiberty/libiberty.a
/home/kfarrell/cross-compilers/lin2win/bin/i586-cygwin32-gcc -g -o size.exe
size.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a
../libiberty/libiberty.a
../bfd/.libs/libbfd.a: could not read symbols: Archive has no index; run
ranlib to add one
collect2: ld returned 1 exit status
make[1]: *** [size.exe] Error 1
make[1]: Leaving directory
`/home/kfarrell/cross-compilers/build/binutils/binutils'
make: *** [all-binutils] Error 2
---
I tried running ranlib on libbfd.a but it doesn't make any difference.
Can someone please help me?
Thanks very much,
Kevin.
Kevin Farrell
Software Developer
<mailto: kfarrell@seagull.nl>
SEAGULL IRELAND
Swords Business Plaza, Main street, Swords, Co. Dublin, Ireland
P.O.Box 6751, Swords.
Tel. +353 1 8903090, Fax +353 1 8903089
http://www.seagullsw.com/
More information about the crossgcc
mailing list