Create build dir: $ mkdir -p /home/paul/Programs/gcc/arm $ cd /home/paul/Programs/gcc/arm
Ran configure: $ /home/paul/Programs/gcc/gcc-4.3.2/configure --target arm-linux-elf --srcdir=/home/paul/Programs/gcc/gcc-4.3.2/ --prefix=/home/paul/Programs/gcc/gcc-arm --program-prefix=arm- --with-local-prefix=/home/paul/Programs/gcc/gcc-arm/local --enable-languages=c Completed OK. Ran make $ make ... Checking multilib configuration for libgcc... mkdir -p -- arm-linux-elf/libgcc Configuring in arm-linux-elf/libgcc configure: creating cache ./config.cache checking for --enable-version-specific-runtime-libs... no checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... no checking for mawk... mawk checking build system type... i686-pc-linux-gnu checking host system type... arm-linux-elf checking for arm-linux-elf-ar... arm-linux-elf-ar checking for arm-linux-elf-lipo... arm-linux-elf-lipo checking for arm-linux-elf-nm... /home/paul/Programs/gcc/arm/./gcc/nm checking for arm-linux-elf-ranlib... arm-linux-elf-ranlib checking for arm-linux-elf-strip... arm-linux-elf-strip checking whether ln -s works... yes checking for arm-linux-elf-gcc... /home/paul/Programs/gcc/arm/./gcc/xgcc -B/home/paul/Programs/gcc/arm/./gcc/ -B/home/paul/Programs/gcc/gcc-arm/arm-linux-elf/bin/ -B/home/paul/Programs/gcc/gcc-arm/arm-linux-elf/lib/ -isystem /home/paul/Programs/gcc/gcc-arm/arm-linux-elf/include -isystem /home/paul/Programs/gcc/gcc-arm/arm-linux-elf/sys-include 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 `/home/paul/Programs/gcc/arm' make: *** [all] Error 2 --- The relevant section in configure.log is: --- configure:2567: checking for suffix of object files configure:2588: /home/paul/Programs/gcc/arm/./gcc/xgcc -B/home/paul/Programs/gcc/arm/./gcc/ -B/home/paul/Programs/gcc/gcc-arm/arm-linux-elf/bin/ -B/home/paul/Programs/gcc/gcc-arm/arm-linux-elf/lib/ -isystem /home/paul/Programs/gcc/gcc-arm/arm-linux-elf/include -isystem /home/paul/Programs/gcc/gcc-arm/arm-linux-elf/sys-include -c -O2 -g -g -O2 conftest.c >&5 exec: 79: : Permission denied configure:2591: $? = 1 --- Running the command manually with strace reveals that gcc is calling "gcc/as", which is looking for a previous cross compiling version of "as". There is no "as" built yet as far as I can see (No other "as", no "xas" no "arm-as"), and I do not have an older cross compiler installed. Changing as to be not executable makes gcc call "as" from the build system. This fails, I believe it wants a cross compiler version. I am unsure as to why "as" has not been built, would it be built later in the process, or has it failed silently? Cheers PaulH -- Summary: configure: error: cannot compute suffix of object files - cannot find as Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: huffton at googlemail dot com GCC build triplet: x86-linux-elf GCC host triplet: x86-linux-elf GCC target triplet: arm-linux-elf http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38286