This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gold build failure when using the same version as system ld
- From: Matthias Klose <doko at ubuntu dot com>
- To: binutils <binutils at sourceware dot org>
- Date: Thu, 08 Oct 2009 17:58:13 +0200
- Subject: gold build failure when using the same version as system ld
Seen this when trying to build a package again. The system ld in this case is
2.19.91.20091005 (configured without gold). Trying to build the very same
sources with --enable-gold, I get sometimes a build failure of the form:
/bin/bash ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Werror -g -O2 -Wno-format-security -release `cat
../bfd/libtool-soversion` -Wl,-Bsymbolic-functions -o libopcodes.la -rpath
/usr/lib dis-buf.lo disassemble.lo dis-init.lo i386-dis.lo i386-opc.lo
-Wl,/build/buildd/binutils-2.19.91.20091005/builddir-gold/opcodes/../bfd/.libs/libbfd.so
-L/build/buildd/binutils-2.19.91.20091005/builddir-gold/opcodes/../libiberty/pic
-liberty -Wl,-lc,--as-needed,-lm,--no-as-needed
libtool: link: gcc -shared .libs/dis-buf.o .libs/disassemble.o .libs/dis-init.o
.libs/i386-dis.o .libs/i386-opc.o
-L/build/buildd/binutils-2.19.91.20091005/builddir-gold/opcodes/../libiberty/pic
-liberty -Wl,-Bsymbolic-functions
-Wl,/build/buildd/binutils-2.19.91.20091005/builddir-gold/opcodes/../bfd/.libs/libbfd.so
-Wl,-lc -Wl,--as-needed -Wl,-lm -Wl,--no-as-needed -Wl,-soname
-Wl,libopcodes-2.19.91.20091005.so -o .libs/libopcodes-2.19.91.20091005.so
as: error while loading shared libraries:
/build/buildd/binutils-2.19.91.20091005/builddir-gold/./opcodes/.libs/libopcodes-2.19.91.20091005.so:
file too short
make[5]: *** [binary.o] Error 1
make[5]: Leaving directory
`/build/buildd/binutils-2.19.91.20091005/builddir-gold/gold'
make[4]: *** [all-recursive] Error 1
On powerpc, I always get a segfault in gas when building the gold testsuite.
g++ -DHAVE_CONFIG_H -I. -I../../gold -I../../gold -I../../gold/../include
-I../../gold/../elfcpp -DLOCALEDIR="\"/usr/share/locale\""
-DBINDIR="\"/usr/bin\"" -DTOOLBINDIR="\"/usr/powerpc-linux-gnu/bin\"" -W -Wall
-Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=binary.o -g
-O2 -Wno-format-security -Wno-error -MT binary.o -MD -MP -MF .deps/binary.Tpo -c
-o binary.o ../../gold/binary.cc
g++: Internal error: Segmentation fault (program as)
Please submit a full bug report.
No problem as long as following daily snapshots and prereleases where the soname
changes, but once the soname stays fixed, the gold build fails.
Matthias