Running the following fail at building gcc-4.5.3-r2 # crossdev -S --ex-gdb -t mips32el-softfloat-linux-gnu -P --quiet-build=n -P -N * Restoring user setting 'UCLIBC_CPU' to 'MIPS_ISA_MIPS32' * Restoring user setting 'USE' to '-hardened savedconfig -cxx -server' * Restoring user setting 'BVER' to '2.22-r1' * Restoring user setting 'GVER' to '4.5.3-r2' * Restoring user setting 'KVER' to '3.1' * Restoring user setting 'LVER' to '2.13-r4' -------------------------------------------------- * crossdev version: 20120305 * Host Portage ARCH: amd64 * Target Portage ARCH: mips * Target System: mips32el-softfloat-linux-gnu * Stage: 4 (C/C++ compiler) * ABIs: default * binutils: binutils-2.22-r1 * gcc: gcc-4.5.3-r2 * headers: linux-headers-3.1 * libc: glibc-2.13-r4 * Extra: gdb: DO IT xgcc (as) segfault at libgcc configure : ... checking for suffix of object files... configure: error: in `/var/tmp/portage/cross-mips32el-softfloat-linux-gnu/gcc-4.5.3-r2/work/build/mips32el-softfloat-linux-gnu/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. configure:3211: checking for suffix of object files configure:3233: /var/tmp/portage/cross-mips32el-softfloat-linux-gnu/gcc-4.5.3-r2/work/build/./gcc/xgcc -B/var/tmp/portage/cross-mips32el-softfloat-linux-gnu/gcc-4.5.3- r2/work/build/./gcc/ -B/usr/mips32el-softfloat-linux-gnu/bin/ -B/usr/mips32el-softfloat-linux-gnu/lib/ -isystem /usr/mips32el-softfloat-linux-gnu/include -isystem /usr /mips32el-softfloat-linux-gnu/sys-include -c -g -O2 -pipe -minterlink-mips16 conftest.c >&5 Assembler messages: Error: Bad value (2) for default CPU xgcc: Internal error: Segmentation fault (program as) Please submit a full bug report. See <http://bugs.gentoo.org/> for instructions. configure:3237: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3251: error: in `/var/tmp/portage/cross-mips32el-softfloat-linux-gnu/gcc-4.5.3-r2/work/build/mips32el-softfloat-linux-gnu/libgcc': configure:3254: error: cannot compute suffix of object files: cannot compile I've tried with different binutils releases with no change. How could we progress at debugging that ? Reproducible: Always
Created attachment 312051 [details] /usr/mips32el-softfloat-linux-gnu/var/log/portage/cross-mips32el-softfloat-linux-gnu-gcc-stage1.log
Created attachment 312053 [details] /var/tmp/portage/cross-mips32el-softfloat-linux-gnu/gcc-4.5.3-r2/work/build/gcc-build-logs.tar.bz2
simple test: $ touch test.s $ mips32el-softfloat-linux-gnu-as -EL -O2 -g -no-mdebug -mabi=n32 -KPIC Assembler messages: Error: Bad value (2) for default CPU Segmentation fault (core dumped)
mips32el-* is not a valid tuple. mips64* implies 64bit, while everything else is 32bit. so don't use the "32". gas crashing is not nice, but once you pick a valid target, it stops.