Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416321 - sys-devel/binutils-2.22: gas segfaults when building mips32el-softfloat-linux-gnu cross-compiler
Summary: sys-devel/binutils-2.22: gas segfaults when building mips32el-softfloat-linux...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-16 20:08 UTC by Bertrand Jacquin
Modified: 2012-05-19 03:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
/usr/mips32el-softfloat-linux-gnu/var/log/portage/cross-mips32el-softfloat-linux-gnu-gcc-stage1.log (cross-mips32el-softfloat-linux-gnu-gcc-stage1.log,627.91 KB, text/plain)
2012-05-16 20:09 UTC, Bertrand Jacquin
Details
/var/tmp/portage/cross-mips32el-softfloat-linux-gnu/gcc-4.5.3-r2/work/build/gcc-build-logs.tar.bz2 (gcc-build-logs.tar.bz2,40.09 KB, text/plain)
2012-05-16 20:10 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2012-05-16 20:08:54 UTC
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
Comment 1 Bertrand Jacquin 2012-05-16 20:09:48 UTC
Created attachment 312051 [details]
/usr/mips32el-softfloat-linux-gnu/var/log/portage/cross-mips32el-softfloat-linux-gnu-gcc-stage1.log
Comment 2 Bertrand Jacquin 2012-05-16 20:10:13 UTC
Created attachment 312053 [details]
/var/tmp/portage/cross-mips32el-softfloat-linux-gnu/gcc-4.5.3-r2/work/build/gcc-build-logs.tar.bz2
Comment 3 SpanKY gentoo-dev 2012-05-18 17:36:27 UTC
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)
Comment 4 SpanKY gentoo-dev 2012-05-19 03:28:39 UTC
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.