Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832476 - x11-wm/wmii-3.9.2-r6 fails to link with LLD because of /usr/lib in the link command line
Summary: x11-wm/wmii-3.9.2-r6 fails to link with LLD because of /usr/lib in the link c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: LD-is-lld, systemwide-lld
  Show dependency tree
 
Reported: 2022-02-01 07:29 UTC by Agostino Sarubbo
Modified: 2022-06-14 12:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,51.77 KB, text/plain)
2022-02-01 07:29 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-02-01 07:29:47 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: x11-wm/wmii-3.9.2-r6 fails to link with LLD because of /usr/lib in the link command line.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses CLANG as a compiler and LLD as a linker
This PR gives an idea about a fix: https://github.com/PhotoFlare/photoflare/pull/248/files.
Comment 1 Agostino Sarubbo gentoo-dev 2022-02-01 07:29:49 UTC
Created attachment 764069 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-02-01 07:29:51 UTC
Error(s) that match a know pattern:

ld.lld: error: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../lib64/crt1.o is incompatible with elf32-i386
Comment 3 Larry the Git Cow gentoo-dev 2022-06-14 12:54:16 UTC
The bug has been closed via the following commit(s):

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

commit cb55b251745f54c94f6bd20530f8a506ef8e5463
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-14 12:37:33 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-14 12:54:05 +0000

    x11-wm/wmii: fix build w/ lld; fix VariableScope
    
    Closes: https://bugs.gentoo.org/836124
    Closes: https://bugs.gentoo.org/832476
    Signed-off-by: Sam James <sam@gentoo.org>

 x11-wm/wmii/files/wmii-3.9.2-libdir.patch | 12 +++++
 x11-wm/wmii/wmii-3.9.2-r7.ebuild          | 84 +++++++++++++++++++++++++++++++
 2 files changed, 96 insertions(+)