Summary: | media-libs/x264-0.0.20231114[abi_x86_32] with clang: x86_64-pc-linux-gnu-ld: error: relocation R_386_32 cannot be used against symbol 'x264_10_pw_4'; recompile with -fPIC | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alfred Wingate <parona> |
Component: | Current packages | Assignee: | Gentoo Media-video project <media-video> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | maffblaster, sam, vowstar |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=918105 https://bugs.gentoo.org/show_bug.cgi?id=926206 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 920462 | ||
Bug Blocks: | |||
Attachments: |
media-libs/x264-0.0.20220222 build.log (gzip compressed)
emerge --info media-libs/x264-0.0.20231114 build.log (xz compressed) Build failure without USE=pic |
Description
Alfred Wingate
2023-11-19 07:17:40 UTC
Created attachment 875167 [details]
emerge --info
To avoid confusion, GNU ld is used in the build.log is due a unrelated and separate issue which should be addressed by https://github.com/gentoo/gentoo/pull/33893 . Feeding -fuse-ld=lld explicitly or with updated clang-common uses lld as expected and will fail just the same. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c10c5092169e066869733e79104be2f3b07334e7 commit c10c5092169e066869733e79104be2f3b07334e7 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-11-25 06:42:21 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-11-25 06:46:38 +0000 media-libs/x264: add 0.0.20231114 Closes: https://bugs.gentoo.org/917583 Closes: https://bugs.gentoo.org/918105 Signed-off-by: Sam James <sam@gentoo.org> media-libs/x264/Manifest | 1 + media-libs/x264/x264-0.0.20231114.ebuild | 74 ++++++++++++++++++++++++++++++++ media-libs/x264/x264-9999.ebuild | 22 +++++----- 3 files changed, 87 insertions(+), 10 deletions(-) Created attachment 875618 [details]
media-libs/x264-0.0.20231114 build.log (xz compressed)
Still occurs
I think I asked you this before, but does USE=pic help? It does fix it for me. I am *not* on the hardened profile. After testing I see that USE="pic" addresses it. Best to enable it unconditionally? A similar thing occurs for my system with media-libs/x264-0.0.20231114 using GNU ld. Setting USE=pic for media-libs/x264 via /etc/portage/package.use/x264 fixed the issue. Created attachment 880107 [details]
Build failure without USE=pic
(In reply to Alfred Wingate from comment #7) > After testing I see that USE="pic" addresses it. Best to enable it > unconditionally? Let's do it. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c5afef162837b40b0c2099eb5d3f8cb68d3d8ed commit 1c5afef162837b40b0c2099eb5d3f8cb68d3d8ed Author: Sam James <sam@gentoo.org> AuthorDate: 2023-12-21 08:06:11 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-12-21 09:56:23 +0000 media-libs/x264: always build as PIC Linkers are getting stricter. The SSE part wasn't really used anyway, just as a hack wrt the incompatibility with pic/asm/sse for x86. Closes: https://bugs.gentoo.org/917583 Closes: https://bugs.gentoo.org/918105 Signed-off-by: Sam James <sam@gentoo.org> media-libs/x264/x264-0.0.20231114-r1.ebuild | 74 +++++++++++++++++++++++++++++ media-libs/x264/x264-9999.ebuild | 4 +- 2 files changed, 76 insertions(+), 2 deletions(-) |