checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile

meganathan picture meganathan · Sep 29, 2012 · Viewed 16k times · Source

While building ARM toolchain , I got the following error

checking for suffix of object files... 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 `<path>/gcc-4.3.2-arm-elf'
make: *** [all] Error 2

what might be the problem?

Answer

Jonathan Wakely picture Jonathan Wakely · Oct 1, 2012

Did you read http://gcc.gnu.org/wiki/FAQ#configure_suffix ?

Have you installed GMP, MPFR and MPC? Are they in your library search path?

See http://gcc.gnu.org/wiki/InstallingGCC and make sure you've followed the basic instructions. By far the simplest way to build GCC (including as a cross compiler) is to follow these instructions:

  • Alternatively, after extracting the GCC source archive, simply run the ./contrib/download_prerequisites script in the GCC source directory. That will download the support libraries and create symlinks, causing them to be built automatically as part of the GCC build process.