Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sun, 17 Jul 2011 02:02:31 +0400
From: Solar Designer <solar@...nwall.com>
To: owl-dev@...ts.openwall.com
Subject: binutils ld internal error when building glibc 2.14

Hi,

Just to have this documented - apparently, we'll need to update binutils
right after our gcc update, before we're able to update glibc.  When
building glibc 2.14 on an Owl-current'ish system with gcc 4.5.0 (custom
build I made a year ago), it failed with:

/usr/bin/ld: BFD (Linux/GNU Binutils) 2.20.51.0.11.20100810 internal error, aborting at ../../bfd/elf64-x86-64.c line 2772 in elf64_x86_64_relocate_section

More context:

[...]
a - elf/dl-vdso.o
a - elf/tlsdesc.o
a - elf/dl-tlsdesc.o
./scripts/mkinstalldirs /tmp/.private/solar/glibc-2.14/build/linkobj
mkdir /tmp/.private/solar/glibc-2.14/build/linkobj
(cd /tmp/.private/solar/glibc-2.14/build/linkobj; \
         ar x ../libc_pic.a; \
         rm $(ar t ../sunrpc/librpc_compat_pic.a | sed 's/^compat-//'); \
         ar x ../sunrpc/librpc_compat_pic.a; \
         ar cr libc_pic.a *.os; \
         rm *.os)
gcc   -shared -static-libgcc -Wl,-O1  -Wl,-z,defs -Wl,-dynamic-linker=/tmp/.private/solar/glibc-2.14-inst/lib/ld-linux-x86-64.so.2  -B/tmp/.private/solar/glibc-2.14/build/csu/  -Wl,--version-script=/tmp/.private/solar/glibc-2.14/build/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -nostdlib -nostartfiles -e __libc_main -L/tmp/.private/solar/glibc-2.14/build -L/tmp/.private/solar/glibc-2.14/build/math -L/tmp/.private/solar/glibc-2.14/build/elf -L/tmp/.private/solar/glibc-2.14/build/dlfcn -L/tmp/.private/solar/glibc-2.14/build/nss -L/tmp/.private/solar/glibc-2.14/build/nis -L/tmp/.private/solar/glibc-2.14/build/rt -L/tmp/.private/solar/glibc-2.14/build/resolv -L/tmp/.private/solar/glibc-2.14/build/crypt -L/tmp/.private/solar/glibc-2.14/build/nptl -Wl,-rpath-link=/tmp/.private/solar/glibc-2.14/build:/tmp/.private/solar/glibc-2.14/build/math:/tmp/.private/solar/glibc-2.14/build/elf:/tmp/.private/solar/glibc-2.14/build/dlfcn:/tmp/.private/solar/glibc-2.14/build/nss:/tmp/.private/solar/glibc-2.14/build/nis:/tmp/.private/solar/glibc-2.14/build/rt:/tmp/.private/solar/glibc-2.14/build/resolv:/tmp/.private/solar/glibc-2.14/build/crypt:/tmp/.private/solar/glibc-2.14/build/nptl -o /tmp/.private/solar/glibc-2.14/build/linkobj/libc.so -T /tmp/.private/solar/glibc-2.14/build/shlib.lds /tmp/.private/solar/glibc-2.14/build/csu/abi-note.o /tmp/.private/solar/glibc-2.14/build/elf/soinit.os -Wl,--whole-archive /tmp/.private/solar/glibc-2.14/build/linkobj/libc_pic.a -Wl,--no-whole-archive /tmp/.private/solar/glibc-2.14/build/elf/sofini.os /tmp/.private/solar/glibc-2.14/build/elf/interp.os /tmp/.private/solar/glibc-2.14/build/elf/ld.so -lgcc
/usr/bin/ld: BFD (Linux/GNU Binutils) 2.20.51.0.11.20100810 internal error, aborting at ../../bfd/elf64-x86-64.c line 2772 in elf64_x86_64_relocate_section

/usr/bin/ld: Please report this bug.

collect2: ld returned 1 exit status
make[1]: *** [/tmp/.private/solar/glibc-2.14/build/linkobj/libc.so] Error 1
make[1]: Leaving directory `/tmp/.private/solar/glibc-2.14'
make: *** [all] Error 2
Command exited with non-zero status 2
398.00user 85.72system 1:46.15elapsed 455%CPU (0avgtext+0avgdata 402944maxresident)k
0inputs+0outputs (10major+23064681minor)pagefaults 0swaps

Alexander

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ