Summary: | media-libs/x265-3.5-r2[-pic,abi_x86_32] fails to compile with sys-devel/binutils-2.41-r1: read-only segment has dynamic relocations | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Miroslav Šulc <fordfrog> |
Component: | Current packages | Assignee: | Gentoo Media-video project <media-video> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexander |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 920463 | ||
Bug Blocks: | 911581 |
Description
Miroslav Šulc
![]() Does USE=pic help? (In reply to Sam James from comment #1) > Does USE=pic help? it does help. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7df93674f9e3aef31b49307e3edd955c52a8ee74 commit 7df93674f9e3aef31b49307e3edd955c52a8ee74 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-10-09 02:42:18 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-12-13 21:44:19 +0000 profiles/features/hardened/amd64: enable USE=pic There's no real reason not to do this. The status quo is wrong for when we're doing multilib 32-bit builds on x86, and we already have to undo this on musl because its handling for TEXTRELs is limited (see bug #707660). (I noted my intention to do this in 80a72bac2350811712c018b68f61a031736c579f as well.) This seems to have been added originally in e718e1dc1781b3bb5cd80233c217aea3b0e46755 and bb28d08f1cf8cf16f6e57929a8de6b7c85bbe714 (git graft commit). Bug: https://bugs.gentoo.org/707660 Bug: https://bugs.gentoo.org/913412 Signed-off-by: Sam James <sam@gentoo.org> profiles/features/hardened/amd64/make.defaults | 2 +- profiles/features/hardened/amd64/no-multilib/make.defaults | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95c1bdc571f49363a2e8c3acc9c65cb3d51131e3 commit 95c1bdc571f49363a2e8c3acc9c65cb3d51131e3 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-12-21 08:16:46 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-12-21 09:56:23 +0000 media-libs/x265: always build as PIC Linkers are getting stricter. Closes: https://bugs.gentoo.org/913412 Signed-off-by: Sam James <sam@gentoo.org> media-libs/x265/x265-3.5-r3.ebuild | 217 +++++++++++++++++++++++++++++++++++++ media-libs/x265/x265-9999.ebuild | 15 +-- 2 files changed, 223 insertions(+), 9 deletions(-) There's a chance that the next release might be better here for ARM at least (https://bitbucket.org/multicoreware/x265_git/commits/02a961bcd26cb299108a2065692500ab895059e9). |