This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: building glibc with gold linker & -frecord-gcc-switches results in internal error


Den 07:43 29. november 2011 skrev Ian Lance Taylor <iant@google.com> følgende:
> Per Øyvind Karlsen <peroyvind@mandriva.org> writes:
>
>> When building glibc using the gold linker and compiling with
>> -frecord-gcc-switches the following happens (keeping it short with the
>> relevant details only):
>> gcc ? ?-shared -static-libgcc
>> -Wl,-dynamic-linker=/lib64/ld-linux-x86-64.so.2 -Wl,-z,defs
>> -B/home/peroy vind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/csu/
>> ?-Wl,-z,combreloc ?-Wl,--hash-style=both
>> -L/home/peroyvind/RPM/glibc/B
>> UILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux
>> -L/home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/math
>> -L/home/pe royvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/elf
>> -L/home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_6
>> 4-linux/dlfcn -L/home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/nss
>> -L/home/peroyvind/RPM/glibc/BUILD/glibc-2.14-
>> 394-g8f3b1ff/build-x86_64-linux/nis
>> -L/home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/rt
>> -L/home/peroyvind/RPM/gl
>> ibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/resolv
>> -L/home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/cry
>> pt -L/home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/nptl
>> -Wl,-rpath-link=/home/peroyvind/RPM/glibc/BUILD/glibc-2
>> .14-394-g8f3b1ff/build-x86_64-linux:/home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/math:/home/peroyvind/RPM/glib
>> c/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/elf:/home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/dlfcn:/hom
>> e/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/nss:/home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86
>> _64-linux/nis:/home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/rt:/home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g
>> 8f3b1ff/build-x86_64-linux/resolv:/home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/crypt:/home/peroyvind/RPM/glibc
>> /BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/nptl -o
>> /home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/elf/sot
>> russ-lib.so ?/home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/csu/abi-note.o
>> -Wl,--as-needed /home/peroyvind/RPM/g
>> libc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/elf/sotruss-lib.os
>> /home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_6
>> 4-linux/libc.so
>> /home/peroyvind/RPM/glibc/BUILD/glibc-2.14-394-g8f3b1ff/build-x86_64-linux/elf/ld.so
>> /home/peroyvind/RPM/glibc/BUILD/glibc-2
>> .14-394-g8f3b1ff/build-x86_64-linux/libc_nonshared.a
>> -Wl,--no-as-needed
>> /usr/bin/ld: internal error in relocate, at ../../gold/x86_64.cc:2917
>> collect2: ld returned 1 exit status
>>
>>
>> This does not happen with BFD linker, and removing
>> -frecord-gcc-switches will avoid this happening when using gold
>> linker..
>
> Can you pare this down to a test case smaller than building glibc?
I wish.. :/
>
> Which gold sources are you using?
Latest.

--
Regards,
Per Øyvind


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]