Fails to build i386-pe cross compiler
Posted: Tue Nov 16, 2010 3:44 am
Hi everybody,
I was building a cross compiler as described in the wiki. I downloaded the sources for gcc 4.2.4 and binutils 2.19 and then succesfully built it with TARGET=i586-elf.
Then I tried to build it again, this time with TARGET=i386-pe. Binutils were created just fine, but running "make all-gcc" failed because it could not find <stdio.h>:My host compiler is: gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Looking for a solution I only found this post that is quite mingw-specific. I know next to nothing about building gcc. Could someone point me to the right direction please?
I was building a cross compiler as described in the wiki. I downloaded the sources for gcc 4.2.4 and binutils 2.19 and then succesfully built it with TARGET=i586-elf.
Then I tried to build it again, this time with TARGET=i386-pe. Binutils were created just fine, but running "make all-gcc" failed because it could not find <stdio.h>:
Code: Select all
/usr/src/build-gcc/./gcc/xgcc -B/usr/src/build-gcc/./gcc/ -B/usr/local/cross/i386-pe/bin/ -B/usr/local/cross/i386-pe/lib/ -isystem /usr/local/cross/i386-pe/include -isystem /usr/local/cross/i386-pe/sys-include -O2 -I../../gcc-4.2.4/gcc/../winsup/w32api/include -O2 -g -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc-4.2.4/gcc -I../../gcc-4.2.4/gcc/. -I../../gcc-4.2.4/gcc/../include -I../../gcc-4.2.4/gcc/../libcpp/include -I../../gcc-4.2.4/gcc/../libdecnumber -I../libdecnumber -DL_muldi3 -c ../../gcc-4.2.4/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included from ./tm.h:10,
from ../../gcc-4.2.4/gcc/libgcc2.c:35:
../../gcc-4.2.4/gcc/config/i386/cygming.h:51:19: error: stdio.h: No such file or
directory
Looking for a solution I only found this post that is quite mingw-specific. I know next to nothing about building gcc. Could someone point me to the right direction please?