GNU bug report logs - #29184
binutils 2.29 fails to set RUNPATH in gcc-cross-boot0

Previous Next

Package: guix;

Reported by: Marius Bakke <mbakke <at> fastmail.com>

Date: Mon, 6 Nov 2017 22:08:01 UTC

Severity: normal

Tags: patch

Done: Marius Bakke <mbakke <at> fastmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 29184 in the body.
You can then email your comments to 29184 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#29184; Package guix. (Mon, 06 Nov 2017 22:08:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Marius Bakke <mbakke <at> fastmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 06 Nov 2017 22:08:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: bug-guix <at> gnu.org
Subject: binutils 2.29 fails to set RUNPATH in gcc-cross-boot0
Date: Mon, 06 Nov 2017 23:07:21 +0100
[Message part 1 (text/plain, inline)]
I tried to cherry-pick the binutils 2.29 update
(b0a14e5628eb56052f0c3d21a7b5375f5813b01d), but it breaks the
'validate-runpath' phase of gcc-cross-boot0:

--8<---------------cut here---------------start------------->8---
starting phase `validate-runpath'
validating RUNPATH of 8 binaries in "/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/libexec"...
/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/libexec/gcc/x86_64-guix-linux-gnu/5.5.0/cc1: error: depends on 'ld-linux-x86-64.so.2', which cannot be found in RUNPATH ()          
/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/libexec/gcc/x86_64-guix-linux-gnu/5.5.0/cc1plus: error: depends on 'ld-linux-x86-64.so.2', which cannot be found in RUNPATH ()      
/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/libexec/gcc/x86_64-guix-linux-gnu/5.5.0/collect2: error: depends on 'ld-linux-x86-64.so.2', which cannot be found in RUNPATH ()     
/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/libexec/gcc/x86_64-guix-linux-gnu/5.5.0/lto-wrapper: error: depends on 'ld-linux-x86-64.so.2', which cannot be found in RUNPATH ()  
/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/libexec/gcc/x86_64-guix-linux-gnu/5.5.0/lto1: error: depends on 'ld-linux-x86-64.so.2', which cannot be found in RUNPATH ()
validating RUNPATH of 9 binaries in "/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/bin"...
/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/bin/x86_64-guix-linux-gnu-c++: error: depends on 'ld-linux-x86-64.so.2', which cannot be found in RUNPATH ()
/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/bin/x86_64-guix-linux-gnu-cpp: error: depends on 'ld-linux-x86-64.so.2', which cannot be found in RUNPATH ()
/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/bin/x86_64-guix-linux-gnu-gcc: error: depends on 'ld-linux-x86-64.so.2', which cannot be found in RUNPATH ()
/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/bin/x86_64-guix-linux-gnu-gcov: error: depends on 'ld-linux-x86-64.so.2', which cannot be found in RUNPATH ()
/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/bin/x86_64-guix-linux-gnu-gcov-dump: error: depends on 'ld-linux-x86-64.so.2', which cannot be found in RUNPATH ()
/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/bin/x86_64-guix-linux-gnu-gcov-tool: error: depends on 'ld-linux-x86-64.so.2', which cannot be found in RUNPATH ()
validating RUNPATH of 11 binaries in "/gnu/store/b5xfgxh3yqcy2y0sqaampyci1n88sgia-gcc-cross-boot0-5.5.0-lib/lib"...
/gnu/store/b5xfgxh3yqcy2y0sqaampyci1n88sgia-gcc-cross-boot0-5.5.0-lib/lib/gcc/x86_64-guix-linux-gnu/5.5.0/plugin/libcc1plugin.so: error: depends on 'libstdc++.so.6', which cannot be found in RUNPATH ()
/gnu/store/b5xfgxh3yqcy2y0sqaampyci1n88sgia-gcc-cross-boot0-5.5.0-lib/lib/libcc1.so: error: depends on 'libstdc++.so.6', which cannot be found in RUNPATH ()
phase `validate-runpath' failed after 0.1 seconds
--8<---------------cut here---------------end--------------->8---
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#29184; Package guix. (Tue, 07 Nov 2017 10:40:02 GMT) Full text and rfc822 format available.

Message #8 received at 29184 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Marius Bakke <mbakke <at> fastmail.com>
Cc: 29184 <at> debbugs.gnu.org
Subject: Re: bug#29184: binutils 2.29 fails to set RUNPATH in gcc-cross-boot0
Date: Tue, 07 Nov 2017 11:39:47 +0100
Hi!

Marius Bakke <mbakke <at> fastmail.com> skribis:

> I tried to cherry-pick the binutils 2.29 update
> (b0a14e5628eb56052f0c3d21a7b5375f5813b01d), but it breaks the
> 'validate-runpath' phase of gcc-cross-boot0:
>
> starting phase `validate-runpath'
> validating RUNPATH of 8 binaries in "/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/libexec"...
> /gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/libexec/gcc/x86_64-guix-linux-gnu/5.5.0/cc1: error: depends on 'ld-linux-x86-64.so.2', which cannot be found in RUNPATH ()          

Oh, it looks like this new Binutils adds ld-linux.so to NEEDED, which
was not the case until now.

I’ve looked at NEWS files but I don’t see where this is coming from.

Could it be a problem on our side?

BTW 2.29.1 is out.

Ludo’.




Added tag(s) patch. Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Fri, 24 Nov 2017 17:26:02 GMT) Full text and rfc822 format available.

Reply sent to Marius Bakke <mbakke <at> fastmail.com>:
You have taken responsibility. (Fri, 16 Mar 2018 14:38:02 GMT) Full text and rfc822 format available.

Notification sent to Marius Bakke <mbakke <at> fastmail.com>:
bug acknowledged by developer. (Fri, 16 Mar 2018 14:38:03 GMT) Full text and rfc822 format available.

Message #15 received at 29184-done <at> debbugs.gnu.org (full text, mbox):

From: Marius Bakke <mbakke <at> fastmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 29184-done <at> debbugs.gnu.org
Subject: Re: bug#29184: binutils 2.29 fails to set RUNPATH in gcc-cross-boot0
Date: Fri, 16 Mar 2018 15:37:30 +0100
[Message part 1 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:

> Hi!
>
> Marius Bakke <mbakke <at> fastmail.com> skribis:
>
>> I tried to cherry-pick the binutils 2.29 update
>> (b0a14e5628eb56052f0c3d21a7b5375f5813b01d), but it breaks the
>> 'validate-runpath' phase of gcc-cross-boot0:
>>
>> starting phase `validate-runpath'
>> validating RUNPATH of 8 binaries in "/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/libexec"...
>> /gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/libexec/gcc/x86_64-guix-linux-gnu/5.5.0/cc1: error: depends on 'ld-linux-x86-64.so.2', which cannot be found in RUNPATH ()          
>
> Oh, it looks like this new Binutils adds ld-linux.so to NEEDED, which
> was not the case until now.
>
> I’ve looked at NEWS files but I don’t see where this is coming from.

This turned out to be because "--enable-new-dtags" is now a configure
flag which defaults to off.  So the patch to enable it was overridden
later in ldmain.c.  I removed the patch and enabled the configure flag.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#29184; Package guix. (Sat, 17 Mar 2018 18:28:02 GMT) Full text and rfc822 format available.

Message #18 received at 29184-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: Marius Bakke <mbakke <at> fastmail.com>
Cc: 29184-done <at> debbugs.gnu.org
Subject: Re: bug#29184: binutils 2.29 fails to set RUNPATH in gcc-cross-boot0
Date: Sat, 17 Mar 2018 19:27:08 +0100
Marius Bakke <mbakke <at> fastmail.com> skribis:

> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>> Hi!
>>
>> Marius Bakke <mbakke <at> fastmail.com> skribis:
>>
>>> I tried to cherry-pick the binutils 2.29 update
>>> (b0a14e5628eb56052f0c3d21a7b5375f5813b01d), but it breaks the
>>> 'validate-runpath' phase of gcc-cross-boot0:
>>>
>>> starting phase `validate-runpath'
>>> validating RUNPATH of 8 binaries in "/gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/libexec"...
>>> /gnu/store/ybh1ifgzs717mz5dp1pk2nrgakqg1l8x-gcc-cross-boot0-5.5.0/libexec/gcc/x86_64-guix-linux-gnu/5.5.0/cc1: error: depends on 'ld-linux-x86-64.so.2', which cannot be found in RUNPATH ()          
>>
>> Oh, it looks like this new Binutils adds ld-linux.so to NEEDED, which
>> was not the case until now.
>>
>> I’ve looked at NEWS files but I don’t see where this is coming from.
>
> This turned out to be because "--enable-new-dtags" is now a configure
> flag which defaults to off.  So the patch to enable it was overridden
> later in ldmain.c.  I removed the patch and enabled the configure flag.

Woow, good catch, thanks Marius!

Ludo'.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 15 Apr 2018 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.