This is the mail archive of the
mailing list for the GCC project.
Re: PATCH: Don't set HOST_LIB_PATH_bfd/HOST_LIB_PATH_opcodes
On Sat, Aug 25, 2012 at 3:27 PM, Mike Frysinger <firstname.lastname@example.org> wrote:
> On Saturday 25 August 2012 11:58:08 H.J. Lu wrote:
>> On Sat, Aug 25, 2012 at 8:31 AM, H.J. Lu <email@example.com> wrote:
>> > Hi,
>> > Setting HOST_LIB_PATH_bfd/HOST_LIB_PATH_opcodes causes:
>> > as: error while loading shared libraries:
>> > /builddir/build/BUILD/binutils/./opcodes/.libs/libopcodes-126.96.36.199.2-0.1
>> > .fc17.so: file too short
>> > make: *** [gold-threads.o] Error 2
>> > when compiling gold using binutils linked with the same versions of
>> > libbfd and libopcodes. As far as I can tell, one can run the newly built
>> > binutils without setting them since libtool already sets up proper
>> > DT_RPATH.
>> The change was introduced by
>> Paolo, do you remember the reason for this?
>> I tested this patch and works fine with --enable-shared for binutils.
>> I tested both separate build directory and in-source build. OK
>> to install?
> does this also fix:
Yes, it should. That is the same bug I ran into. Please
give my patch a try.