Re: Build a cross compiler on Windows using MSYS2
Posted: Thu Mar 31, 2016 10:15 am
It compiled fine for an hour then spat out the following error:
Command lines:
The error:
Command lines:
Code: Select all
$ export PREFIX=/home/Harley/opt/cross
$ export TARGET=i686-elf
$ ../gcc-5.3.0/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers
$ make all-gcc # it fails here
Code: Select all
In file included from /usr/lib/gcc/x86_64-pc-msys/4.9.2/include/c++/string:41:0,
from ../../gcc-5.3.0/gcc/system.h:201,
from gtype-desc.c:22:
/usr/lib/gcc/x86_64-pc-msys/4.9.2/include/c++/bits/allocator.h:46:75: fatal error: bits/c++allocator.h: No such file or directory
compilation terminated.
Makefile:1065:recipe for target 'gtype-desc.o' failed
make[1]: *** [gtype-desc.o] Error 1
make[1]: Leaving directory '/home/Harley/src/build-gcc/gcc'
Makefile:4113: recipe for target 'all-gcc' failed
make: *** [all-gcc] Error 2