This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problems building crosscompiler


Heya,

I'm currently trying to build a cross compiler for arm-thumb-elf under a 
i586-pc-beos host/build environment.

The steps I used to build the chain were these:
mkdir /boot/apps/gba-develop; cd /boot/apps/gba-develop
mkdir _pkg; cd _pkg
$ tar xzvf binutils-2.11.tar.gz 
$ tar xzvf gcc-core-3.0.tar.gz 
$ tar xzvf newlib-1.9.0.tar.gz 
$ cd ..; mkdir _build 
$ mkdir binutils; mkdir gcc; mkdir newlib 
$ cd binutils 
$ /boot/apps/gba-develop/_pkg/binutils-2.11.tar.gz/configure 
--target=arm-elf --prefix=/boot/apps/gba-develop -v 
$ make all install 
$ PATH=/boot/apps/gba-develop/bin:$PATH ; export PATH 
$ cd ../gcc 
$ /boot/apps/gba-develop/_pkg/gcc-3.0/configure --target=arm-elf 
--prefix=/boot/apps/gba-develop -v/arm -v 
$ make all install 
..

Here, when building libgcc1-test, xgcc complains it can't execute 
`collect2` ("missing libraries") - what gives?
------
Testing libgcc1.  Ignore linker warning messages.
/xgcc -B./ -B/boot/apps/gba-develop/arm-thumb-elf/bin/ -isystem 
/boot/apps/gba-develop/arm-thumb-elf/include -DCROSS_COMPILE -DIN_GCC    
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-isystem ./include  libgcc1-test.o -o libgcc1-test \
  -nostartfiles -nostdlib `./xgcc -B./ 
-B/boot/apps/gba-develop/arm-thumb-elf/bin/ -isystem 
/boot/apps/gba-develop/arm-thumb-elf/include --print-libgcc-file-name`
xgcc: installation problem, cannot exec `./collect2': Missing library
make: *** [libgcc1-test] Error 1
pip : gcc $ ./collect2
collect2: no arguments
pip : gcc $
------

Clearly, I can run collet2 from the command line without any problems.


Thanks in advance,
--
Mikael J @ http://hem.spray.se/tic_khr


 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]