GCC 5.1.0 build errors with target=arm and language=java

I am using MinGW/MSYS to build GCC 5.1.0 using Windows 8.1 32 bit OS.

I downloaded gcc and build as below

$ cd gcc-5.1.0

$ ./contrib/download_prerequisites

Downloaded and built GMP, MPFR & MPC

$ cd ..

$ mkdir build gcc-5

$ cd build-gcc5

$ CFLAGS=’-D__USE_MINGW_ACCESS’ ../gcc-5.1.0/configure –prefix=/d/GCJ_Building/out-gcc –target=arm-none-eabi –enable-languages=java –disable-shared –disable-libada –disable-libssp –disable-multilib

$ make all install

checking build system type… i686-pc-mingw32

checking host system type… arm-none-eabi

checking for –enable-version-specific-runtime-libs… no

checking for a BSD-compatible install… /bin/install -c

checking for gawk… gawk

checking for arm-none-eabi-ar… arm-none-eabi-ar

checking for arm-none-eabi-lipo… arm-none-eabi-lipo

checking for arm-none-eabi-nm… /d/GCJ_Building/build-gcc5/./gcc/nm

checking for arm-none-eabi-ranlib… arm-none-eabi-ranlib

checking for arm-none-eabi-strip… arm-none-eabi-strip

checking whether ln -s works… no, using cp -p

checking for arm-none-eabi-gcc… /d/GCJ_Building/build-gcc5/./gcc/xgcc -B/d/GCJ_Building/build-gcc5/./gcc/ -B/d/GCJ_Building/out-gcc/arm-none-eabi/bin/ -B/d/GCJ_Building/out-gcc/arm-none-eabi/lib/ -isystem /d/GCJ_Building/out-gcc/arm-none-eabi/include -isystem /d/GCJ_Building/out-gcc/arm-none-eabi/sys-include

checking for suffix of object files… configure: error: in `/d/GCJ_Building/build-gcc5/arm-none-eabi/libgcc’:

configure: error: cannot compute suffix of object files: cannot compile

See `config.log’ for more details.

make[1]: *** [configure-target-libgcc] Error 1

make[1]: Leaving directory `/d/GCJ_Building/build-gcc5′

make: *** [all] Error 2


Source: gcc

Leave a Reply