Package: binutils-gold Version: 2.21.53.20110922-1 Severity: important Hello,
On armhf gold fails with internal error for objects produced from trivial programs. $ cat a.c int a; int b; $ gcc a.c /usr/bin/ld: internal error in operator(), at ../../gold/common.cc:124 collect2: ld returned 1 exit status $ gcc -v a.c Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.6.1/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.1-13' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --disable-sjlj-exceptions --with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16 --with-mode=thumb --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf Thread model: posix gcc version 4.6.1 (Debian 4.6.1-13) COLLECT_GCC_OPTIONS='-v' '-march=armv7-a' '-mfloat-abi=hard' '-mfpu=vfpv3-d16' '-mthumb' /usr/lib/gcc/arm-linux-gnueabihf/4.6.1/cc1 -quiet -v -imultilib . -imultiarch arm-linux-gnueabihf a.c -quiet -dumpbase a.c -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -mthumb -auxbase a -version -o /tmp/ccaEtHJ7.s GNU C (Debian 4.6.1-13) version 4.6.1 (arm-linux-gnueabihf) compiled by GNU C version 4.6.1, GMP version 5.0.2, MPFR version 3.0.1-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=60 --param ggc-min-heapsize=56207 ignoring nonexistent directory "/usr/local/include/arm-linux-gnueabihf" ignoring nonexistent directory "/usr/lib/gcc/arm-linux-gnueabihf/4.6.1/../../../../arm-linux-gnueabihf/include" #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc/arm-linux-gnueabihf/4.6.1/include /usr/local/include /usr/lib/gcc/arm-linux-gnueabihf/4.6.1/include-fixed /usr/include/arm-linux-gnueabihf /usr/include End of search list. GNU C (Debian 4.6.1-13) version 4.6.1 (arm-linux-gnueabihf) compiled by GNU C version 4.6.1, GMP version 5.0.2, MPFR version 3.0.1-p3, MPC version 0.9 GGC heuristics: --param ggc-min-expand=60 --param ggc-min-heapsize=56207 Compiler executable checksum: 1c901e3ab7e8efe5d5ece914d002d4ed COLLECT_GCC_OPTIONS='-v' '-march=armv7-a' '-mfloat-abi=hard' '-mfpu=vfpv3-d16' '-mthumb' as -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -meabi=5 -o /tmp/cc8cSdmh.o /tmp/ccaEtHJ7.s COMPILER_PATH=/usr/lib/gcc/arm-linux-gnueabihf/4.6.1/:/usr/lib/gcc/arm-linux-gnueabihf/4.6.1/:/usr/lib/gcc/arm-linux-gnueabihf/:/usr/lib/gcc/arm-linux-gnueabihf/4.6.1/:/usr/lib/gcc/arm-linux-gnueabihf/ LIBRARY_PATH=/usr/lib/gcc/arm-linux-gnueabihf/4.6.1/:/usr/lib/gcc/arm-linux-gnueabihf/4.6.1/../../../arm-linux-gnueabihf/:/usr/lib/gcc/arm-linux-gnueabihf/4.6.1/../../../:/lib/arm-linux-gnueabihf/:/lib/:/usr/lib/arm-linux-gnueabihf/:/usr/lib/ COLLECT_GCC_OPTIONS='-v' '-march=armv7-a' '-mfloat-abi=hard' '-mfpu=vfpv3-d16' '-mthumb' /usr/lib/gcc/arm-linux-gnueabihf/4.6.1/collect2 --build-id --no-add-needed --eh-frame-hdr -dynamic-linker /lib/ld-linux.so.3 -X --hash-style=both -m armelf_linux_eabi /usr/lib/gcc/arm-linux-gnueabihf/4.6.1/../../../arm-linux-gnueabihf/crt1.o /usr/lib/gcc/arm-linux-gnueabihf/4.6.1/../../../arm-linux-gnueabihf/crti.o /usr/lib/gcc/arm-linux-gnueabihf/4.6.1/crtbegin.o -L/usr/lib/gcc/arm-linux-gnueabihf/4.6.1 -L/usr/lib/gcc/arm-linux-gnueabihf/4.6.1/../../../arm-linux-gnueabihf -L/usr/lib/gcc/arm-linux-gnueabihf/4.6.1/../../.. -L/lib/arm-linux-gnueabihf -L/usr/lib/arm-linux-gnueabihf /tmp/cc8cSdmh.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/arm-linux-gnueabihf/4.6.1/crtend.o /usr/lib/gcc/arm-linux-gnueabihf/4.6.1/../../../arm-linux-gnueabihf/crtn.o /usr/bin/ld: internal error in operator(), at ../../gold/common.cc:124 collect2: ld returned 1 exit status $ gcc -c a.c $ gold a.o gold: internal error in operator(), at ../../gold/common.cc:124 Please tell me if you need more information. Dmitri Gribenko -- System Information: Debian Release: wheezy/sid APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: armhf (armv7l) Kernel: Linux 2.6.38-ac2-ac100 (SMP w/2 CPU cores) Locale: LANG=ru_UA.UTF-8, LC_CTYPE=ru_UA.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages binutils-gold depends on: ii binutils 2.21.53.20110922-1 binutils-gold recommends no packages. binutils-gold suggests no packages. -- no debconf information
int a; int b;
a.o
Description: application/object