OK, thanks to Nightstrike, I've fixed that part of the build. Now,
I'm trying to build a cross-compiler hosted on i386-pc-mingw32 and
targetting x86_64-pc-mingw32. I do that by having a directory $HOME/
win64 which contains:
- $HOME/win64/x86_64-pc-mingw32/bin: the binutils targetting win64
- $HOME/win64/x86_64-pc-mingw32/include: the headers
- $HOME/win64/x86_64-pc-mingw32/lib: the linker scripts (probably
not useful)
- $HOME/win64/x86_64-pc-mingw32/lib64: the CRT
I have also create directory named $HOME/win64/mingw, which is a copy
of $HOME/win64/x86_64-pc-mingw32 (otherwise, the build dies in
fixincludes because it's trying to get the target headers from $HOME/
win64/x86_64-pc-mingw32/include).
I configure GCC with: ../trunk/configure --prefix=/home/FX/win64 --
with-sysroot=/home/FX/win64 --build=i386-pc-mingw32 --target=x86_64-
pc-mingw32 --enable-languages=c,fortran --with-gmp=/home/FX/local --
disable-werror --disable-nls --enable-threads=win32
Now, the strange thing is that this build dies while configure target-
libgfortran, with:
checking dependency style of /home/FX/ibin64/./gcc/xgcc -B/home/FX/
ibin64/./gcc/ -L/home/FX/ibin64/x86_64-pc-mingw32/winsup/mingw -L/
home/FX/ibin64/x86_64-pc-mingw32/winsup/w32api/lib -isystem /home/
FX/trunk/winsup/mingw/include -isystem /home/FX/trunk/winsup/w32api/
include -B/home/FX/win64/x86_64-pc-mingw32/bin/ -B/home/FX/win64/
x86_64-pc-mingw32/lib/ -isystem /home/FX/win64/x86_64-pc-mingw32/
include -isystem /home/FX/win64/x86_64-pc-mingw32/sys-include... gcc3
checking whether symbol versioning is supported... configure:
error: Link tests are not allowed after GCC_NO_EXECUTABLES.
make[1]: *** [configure-target-libgfortran] Error 1
make[1]: Leaving directory `/home/FX/ibin64'
I know I had this working at some earlier point, so it's probably
that configure line is not the one I used last time. The most likely
culprit is, I think, --with-sysroot, so I'm running another build
without it, but in the meantime I'd appreciate any hint: is it the
way it should be done? (and thus, an issue with the GCC build system)
FX