GCC Cross Compiler
Posted: Thu Dec 29, 2005 2:21 am
Following the OS-Faq guide to building a cross compiler, I've come upon many problems.
Up until this one, I have seen easy fixes. This one I just plain have no idea. As a note:
I have over-ridden the target host machine to be i686-unknown-cygwin, as it detects x86_64-unknown-cygwin, and GCC reports (after doing all the checks...) it doesn't compile for x86_64. I'm compiling GCC 3.4.0, and this is the output I get from it:
To configure it, I used:
The only real difference being "--host" and the lack of c++.
Binutils is already compiled fine, however, for host machine x86_64.
Up until this one, I have seen easy fixes. This one I just plain have no idea. As a note:
I have over-ridden the target host machine to be i686-unknown-cygwin, as it detects x86_64-unknown-cygwin, and GCC reports (after doing all the checks...) it doesn't compile for x86_64. I'm compiling GCC 3.4.0, and this is the output I get from it:
Code: Select all
mkdir -p -- libgcc
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/usr/src/build-gcc/gcc/xgcc -B/usr/src/build-gcc/gcc/ -B//bin/ -B//lib/ -isystem
//include -isystem //sys-include -O2 -I../../gcc-3.4.0/gcc/../winsup/w32api/inc
lude -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototyp
es -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_N
OT_NEEDED -I. -I. -I../../gcc-3.4.0/gcc -I../../gcc-3.4.0/gcc/. -I../../gcc-3.4
.0/gcc/../include -DL_chkstk -xassembler-with-cpp -c ../../gcc-3.4.0/gcc/config
/i386/cygwin.asm -o libgcc/./_chkstk.o
cc1: //include: No such host or network path
cc1: //sys-include: No such host or network path
make[2]: *** [libgcc/./_chkstk.o] Error 1
make[2]: Leaving directory `/usr/src/build-gcc/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/usr/src/build-gcc/gcc'
make: *** [all-gcc] Error 2
Code: Select all
$ ../gcc-3.4.0/configure --target=$TARGET --prefix=$PREFIX --disable-nls --enable-languages=c --without-headers --host=i686-unknown-cygwin
Binutils is already compiled fine, however, for host machine x86_64.