[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#925870: binutils-mips64el-linux-gnuabi64: segfault while cross building gcc-8



Package: binutils-mips64el-linux-gnuabi64
Version: 2.31.1-16
User: helmutg@debian.org
Usertags: rebootstrap

cross building gcc-8 from amd64 to mips64el fails.

http://crossqa.debian.net/build/gcc-8_8.3.0-4_mips64el_20190326224556.log
| configure:3470: mips64el-linux-gnuabi64-gcc-8  -mabi=32 -o conftest -g -O2 -minterlink-mips16  -Wl,-z,relro conftest.c  >&5
| collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
| compilation terminated.
| /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/../../../../mips64el-linux-gnuabi64/bin/ld: /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/crtbeginS.o: ABI is incompatible with that of the selected emulation
| /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/../../../../mips64el-linux-gnuabi64/bin/ld: failed to merge target specific data of file /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/crtbeginS.o
| /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/../../../../mips64el-linux-gnuabi64/bin/ld: /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/crtendS.o: ABI is incompatible with that of the selected emulation
| /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/../../../../mips64el-linux-gnuabi64/bin/ld: failed to merge target specific data of file /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/crtendS.o
| /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/../../../../mips64el-linux-gnuabi64/bin/ld: /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/crtbeginS.o: in function `deregister_tm_clones':
| crtstuff.c:(.text+0xc): relocation truncated to fit: R_MIPS_GOT_PAGE against `.tm_clone_table'
| /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/../../../../mips64el-linux-gnuabi64/bin/ld: crtstuff.c:(.text+0x10): relocation truncated to fit: R_MIPS_GOT_DISP against `__TMC_END__'
| /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/../../../../mips64el-linux-gnuabi64/bin/ld: crtstuff.c:(.text+0x14): relocation truncated to fit: R_MIPS_GOT_OFST against `.tm_clone_table'
| /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/../../../../mips64el-linux-gnuabi64/bin/ld: /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/crtbeginS.o: in function `register_tm_clones':
| crtstuff.c:(.text+0x44): relocation truncated to fit: R_MIPS_GOT_PAGE against `.tm_clone_table'
| /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/../../../../mips64el-linux-gnuabi64/bin/ld: crtstuff.c:(.text+0x48): relocation truncated to fit: R_MIPS_GOT_DISP against `__TMC_END__'
| /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/../../../../mips64el-linux-gnuabi64/bin/ld: crtstuff.c:(.text+0x4c): relocation truncated to fit: R_MIPS_GOT_OFST against `.tm_clone_table'
| /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/../../../../mips64el-linux-gnuabi64/bin/ld: /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/crtbeginS.o: in function `__do_global_dtors_aux':
| crtstuff.c:(.text+0xa0): relocation truncated to fit: R_MIPS_GOT_PAGE against `.bss'
| /usr/lib/gcc-cross/mips64el-linux-gnuabi64/8/../../../../mips64el-linux-gnuabi64/bin/ld: crtstuff.c:(.text+0xa8): relocation truncated to fit: R_MIPS_GOT_OFST against `.bss'
| configure:3473: $? = 1

As we can see, ld segfaults. It is unclear to me why it segfaults, but
the segfault seems to be reliable for mips64el, but cannot be reproduced
for e.g. arm64.

Helmut


Reply to: