There are pretty succinct cross-compiler instructions on gnuarm.org, including how to use newlib, even if ARM is not your target. In config.log, find "suffix of object files". Nearby, you'll find what it actually did to try to figure that out, including showing the compiler commandline and output. Try to figure out why the compiler puked, and post here again if you still need help. -----Original Message----- From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On Behalf Of Eduardo Brito Sent: Friday, October 17, 2008 1:18 PM To: gcc-help@xxxxxxxxxxx Subject: Re: Problem building cross-compiler for mips John Love-Jensen escreveu: > Hi Eduardo, > > >> I'm using the following commands: >> ./configure --target=mipsel-elf --prefix=/usr/local/ ... >> > ..^^ > > As mentioned in the GCC documentation... > > http://gcc.gnu.org/install/ > http://gcc.gnu.org/install/configure.html > > ...running configure in the self-same directory of the GCC source code is > not supported. (Nor from any subdirectory within the GCC source code tree.) > > Your GCC source is likely tainted. You should rm -rf it, tar x fresh, and > start from there. > > HTH, > --Eljay > > > Thanks for the quick reply. Now I am getting this messages: Checking multilib configuration for libgcc... Configuring in mipsel-x86-linux/libgcc configure: loading cache ./config.cache checking for --enable-version-specific-runtime-libs... no checking for a BSD-compatible install... /usr/bin/install -c checking for gawk... gawk checking build system type... i686-pc-linux-gnu checking host system type... mipsel-x86-linux-gnu checking for mipsel-x86-linux-ar... mipsel-x86-linux-ar checking for mipsel-x86-linux-lipo... mipsel-x86-linux-lipo checking for mipsel-x86-linux-nm... /home/eduardo/BIC/./gcc/nm checking for mipsel-x86-linux-ranlib... mipsel-x86-linux-ranlib checking for mipsel-x86-linux-strip... mipsel-x86-linux-strip checking whether ln -s works... yes checking for mipsel-x86-linux-gcc... /home/eduardo/BIC/./gcc/xgcc -B/home/eduardo/BIC/./gcc/ -B/usr/local//mipsel-x86-linux/bin/ -B/usr/local//mipsel-x86-linux/lib/ -isystem /usr/local//mipsel-x86-linux/include -isystem /usr/local//mipsel-x86-linux/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/eduardo/BIC' make: *** [all] Error 2 The problem is the "checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile" I looked at config.log but I don't know what I should be looking at... Also, I think I should use newlib with the cross compiler... How can I do that? Thanks, Eduardo