http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49248
Summary: Cross compile ada failed at finding command gnatmake. Product: gcc Version: unknown Status: UNCONFIRMED Severity: major Priority: P3 Component: ada AssignedTo: unassig...@gcc.gnu.org ReportedBy: ray_l...@hotmail.com I am trying use i686-pc-mingw32 (GCC 4.6.0) to compile the target x86_64-w64-mingw32. in the 1st loop, I used the following command to compile binutils and GCC. bintuils: configure --target=x86_64-w64-mingw32 --enable-targets=x86_64-w64-mingw32,i686-w64-mingw32 --disable-shared --enable-static --prefix=/mingw32 --with-sysroot=/mingw32 --disable-nls --with-gcc --with-gnu-as --with-gnu-ld --with-stabs --enable-interwork --enable-multilib make && make install GCC 4.6.0 ../gcc-4.6.0/configure --target=x86_64-w64-mingw32 --enable-targets=x86_64-w64-mingw32,i686-w64-mingw32 --enable-multilib --enable-64bit --prefix=/mingw32 --with-sysroot=/mingw32 --disable-shared --enable-static --enable-version-specific-runtime-libs --with-dwarf2 --enable-fully-dynamic-string --enable-languages=c,ada --disable-libgomp --enable-libada --enable-gnattools --with-gcc --with-gnu-as --with-gnu-ld --with-stabs --enable-interwork --enable-multilib and I also compiled the MinGW64 Runtime with multi-lib. and I succeed got binaries start with x86_64-w64-mingw32 like x86_64-w64-mingw32-gnatmake under /mingw32/bin. in the 2nd loop, i tried to compile a pure 64bit binaries, so i run: binutils: configure --build=x86_64-w64-mingw32 --enable-targets=x86_64-w64-mingw32,i686-w64-mingw32 --disable-shared --enable-static --disable-nls --prefix=/tools --with-sysroot=/tools --host=x86_64-w64-mingw32 make -j 2 CFLAGS="-O3 -fomit-frame-pointer -pipe -m64 -m128bit-long-double -minline-stringops-dynamically" LDFLAGS="-s -Wl,--as-needed" I succeed at binutils and mingw64-runtime. but when I compiled GCC as following command: $ ../gcc-4.6.0/configure --build=x86_64-w64-mingw32 --enable-targets=all --enab le-multilib --enable-64bit --prefix=/tools --with-sysroot=/tools --disable-shar ed --enable-static --disable-nls --enable-version-specific-runtime-libs --disab le-win32-registry --with-dwarf2 --enable-fully-dynamic-string --enable-language s=c,c++,ada --disable-libgomp --enable-lto --disable-libssp --host=x86_64-w64- mingw32 make -j 2 I got failed at : x86_64-w64-mingw32-gcc -c -g -O2 -D__USE_MINGW_ACCESS -gnatpg -gnata -gnatwns - nostdinc -I- -I. -Iada -I../../gcc-4.6.0/gcc/ada -I../../gcc-4.6.0/gcc/ada/gcc-i nterface ../../gcc-4.6.0/gcc/ada/debug.adb -o ada/debug.o cp -p ../../gcc-4.6.0/gcc/ada/sinfo.ads ../../gcc-4.6.0/gcc/ada/nmake.adt ../../ gcc-4.6.0/gcc/ada/xnmake.adb ../../gcc-4.6.0/gcc/ada/xutil.ads ../../gcc-4.6.0/g cc/ada/xutil.adb ada/bldtools/nmake_b x86_64-w64-mingw32-gcc -c -g -O2 -D__USE_MINGW_ACCESS -gnatpg -gnata -gnatwns - nostdinc -I- -I. -Iada -I../../gcc-4.6.0/gcc/ada -I../../gcc-4.6.0/gcc/ada/gcc-i nterface ../../gcc-4.6.0/gcc/ada/elists.adb -o ada/elists.o x86_64-w64-mingw32-gcc -c -g -O2 -D__USE_MINGW_ACCESS -gnatpg -gnata -gnatwns - nostdinc -I- -I. -Iada -I../../gcc-4.6.0/gcc/ada -I../../gcc-4.6.0/gcc/ada/gcc-i nterface ../../gcc-4.6.0/gcc/ada/err_vars.ads -o ada/err_vars.o (cd ada/bldtools/nmake_b; gnatmake -q xnmake ; ./xnmake -b ../../nmake.adb ) (cd ada/bldtools/snamest; gnatmake -q xsnamest ; ./xsnamest ) x86_64-w64-mingw32-gcc -c -g -O2 -D__USE_MINGW_ACCESS -gnatpg -gnata -gnatwns - nostdinc -I- -I. -Iada -I../../gcc-4.6.0/gcc/ada -I../../gcc-4.6.0/gcc/ada/gcc-i nterface ../../gcc-4.6.0/gcc/ada/fmap.adb -o ada/fmap.o x86_64-w64-mingw32-gcc -c -g -O2 -D__USE_MINGW_ACCESS -gnatpg -gnata -gnatwns - nostdinc -I- -I. -Iada -I../../gcc-4.6.0/gcc/ada -I../../gcc-4.6.0/gcc/ada/gcc-i nterface ../../gcc-4.6.0/gcc/ada/fname-uf.adb -o ada/fname-uf.o /bin/sh: gnatmake: command not found /bin/sh: gnatmake: command not found /bin/sh: ./xnmake: No such file or directory /bin/sh: ./xsnamest: No such file or directory make[2]: *** [ada/nmake.adb] Error 127 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [ada/stamp-snames] Error 127 make[2]: Leaving directory `/home/beta/gcc-build/gcc' make[1]: *** [all-gcc] Error 2 make[1]: Leaving directory `/home/beta/gcc-build' make: *** [all] Error 2 I am not sure why it failed, need your great support.