Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 732886

Summary: app-benchmarks/siege fails to link with LLD because of /usr/lib in the link command line
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Andrea Cerisara <andreacerisara>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/17356
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 731004    
Attachments: build.log
other.tar.bz2

Description Agostino Sarubbo gentoo-dev 2020-07-16 11:47:59 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-benchmarks/siege fails to link with LLD because of /usr/lib in the link command line.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This PR gives an idea about a fix: https://github.com/PhotoFlare/photoflare/pull/248/files.
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-16 11:48:05 UTC
Created attachment 649462 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-07-16 11:48:08 UTC
Created attachment 649464 [details]
other.tar.bz2

other logs
Comment 3 Andrea Cerisara 2020-08-31 20:34:14 UTC
I'll get in touch with upstream because I need help on this one.
Comment 4 David Seifert gentoo-dev 2020-08-31 21:10:12 UTC
(In reply to Andrea Cerisara from comment #3)
> I'll get in touch with upstream because I need help on this one.

The fix is simple, prevent -L/usr/lib from getting injected. It's a useless flag.
Comment 5 Andrea Cerisara 2020-08-31 22:51:34 UTC
Ok, I think I found it.
Comment 6 Larry the Git Cow gentoo-dev 2020-09-16 02:01:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9cc464c43d3ebd1c493244b3e5816c65eb0a2aa5

commit 9cc464c43d3ebd1c493244b3e5816c65eb0a2aa5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-09-16 02:00:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-09-16 02:00:34 +0000

    app-benchmarks/siege: forward-port LDFLAGS changes
    
    Bug: https://bugs.gentoo.org/732886
    Closes: https://github.com/gentoo/gentoo/pull/17356
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Sam James <sam@gentoo.org>

 app-benchmarks/siege/siege-4.0.7.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd4ea26296468aa04e671ed3073a7c3b03df4ebd

commit bd4ea26296468aa04e671ed3073a7c3b03df4ebd
Author:     Andrea Cerisara <andreacerisara@gmail.com>
AuthorDate: 2020-09-01 06:51:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-09-16 01:55:46 +0000

    app-benchmarks/siege: remove /usr/lib from LDFLAGS
    
    Signed-off-by: Andrea Cerisara <andreacerisara@gmail.com>
    Bug: https://bugs.gentoo.org/732886
    Package-Manager: Portage-3.0.4, Repoman-2.3.23
    Closes: https://github.com/gentoo/gentoo/pull/17356
    Signed-off-by: Sam James <sam@gentoo.org>

 app-benchmarks/siege/siege-4.0.5.ebuild | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)