Summary: | sys-devel/binutils-2.35.1-r1[-cet]: configure: error: Intel CET must be enabled on Intel CET enabled host | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Worx <worx> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | herrtimson, ionen, worx |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=777117 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge info
emerge pqv Build Log config.log |
Description
Worx
2021-02-20 20:11:29 UTC
Created attachment 687783 [details]
emerge info
Created attachment 687786 [details]
emerge pqv
Created attachment 687789 [details]
Build Log
CET is now optional[1] (off by default), but if you happen to need it on your system you can re-enable with USE=cet (try that). It sounds like there's a need to for a better way to handle this, but the ebuild comment states: # Allow user to opt into CET for host libraries. # Ideally we would like automagic-or-disabled here. # But the check does not quite work on i686: bug #760926. $(use_enable cet) [1] https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd833222cbaef1cd344f3b06c528b858c06dc04a The failure is unexpected. Probably a misinterpretet configure failure on binutils side. Can you also attach /var/tmp/portage/sys-devel/binutils-2.35.1-r1/work/build/configure-libiberty/config.log as well? (In reply to Ionen Wolkens from comment #4) > CET is now optional[1] (off by default), but if you happen to need it on > your system you can re-enable with USE=cet (try that). > > It sounds like there's a need to for a better way to handle this, but the > ebuild comment states: > # Allow user to opt into CET for host libraries. > # Ideally we would like automagic-or-disabled here. > # But the check does not quite work on i686: bug #760926. > $(use_enable cet) > > [1] > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > ?id=cd833222cbaef1cd344f3b06c528b858c06dc04a I tried both : USE = cet and USE = -cet Same issue. Created attachment 687990 [details]
config.log
(In reply to Worx from comment #6) > I tried both : Oh hadn't noticed flag is masked, so that won't do anything as-is, my bad. Probably best wait to see what slyfox has to say about this now that have the config.log Does look kind of identical to what was supposed to be fixed, --disable-cet prevents the asm test but doesn't affect the -fcf-protection=none test and then it complains cet is force-disabled. """ configure:5246: checking for CET support configure:5331: i586-pc-linux-gnu-gcc -o conftest -march=c3 -O2 -pipe -fcf-protection=none -Wl,-O1 -Wl,--as-needed -Wl,-z,ibt,-z,shstk conftest.c >&5 configure:5331: $? = 0 configure:5378: i586-pc-linux-gnu-gcc -o conftest -march=c3 -O2 -pipe -fcf-protection=none -Wl,-O1 -Wl,--as-needed -Wl,-z,ibt,-z,shstk conftest.c >&5 configure:5378: $? = 0 configure:5378: ./conftest /var/tmp/portage/sys-devel/binutils-2.35.1-r1/work/binutils-2.35.1/libiberty/configure: line 1624: 826 Illegal instruction ./conftest$ac_exeext """ Yeah, that's an annoying case that will be fixed in https://sourceware.org/PR27397 Can you test the patch https://sourceware.org/bugzilla/attachment.cgi?id=13222 on your system? It should be a matter of placing it to /etc/portage/patches/sys-devel/binutils (I hope there will be no conflicts). No Conflict, it works with the patch. Thanks The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80732e30b491ef045fab6c0be2f8d4b7ac4ad3a4 commit 80732e30b491ef045fab6c0be2f8d4b7ac4ad3a4 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2021-02-26 08:02:23 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2021-02-26 08:04:39 +0000 sys-devel/gdb: fix 'cet' detection on i586 Reported-by: Worx Bug: https://bugs.gentoo.org/771765 Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/gdb/files/gdb-10.1-cet.patch | 103 +++++++++++++++++++++++++++++++++ sys-devel/gdb/gdb-10.1.ebuild | 1 + 2 files changed, 104 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67e60a7ca56eb474a4a911f0d77ccce097745d1c commit 67e60a7ca56eb474a4a911f0d77ccce097745d1c Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2021-02-26 07:59:42 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2021-02-26 08:04:38 +0000 sys-libs/binutils-libs: fix 'cet' detection on i586 Reported-by: Worx Bug: https://bugs.gentoo.org/771765 Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> .../binutils-libs/binutils-libs-2.35.1-r1.ebuild | 2 + sys-libs/binutils-libs/binutils-libs-2.35.2.ebuild | 2 + sys-libs/binutils-libs/binutils-libs-2.36.1.ebuild | 2 + .../files/binutils-libs-2.35.1-cet.patch | 103 +++++++++++++++++++++ 4 files changed, 109 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4e8d909d36eae58cc8aa9e69259179d666b1458 commit c4e8d909d36eae58cc8aa9e69259179d666b1458 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2021-02-26 07:56:43 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2021-02-26 08:04:37 +0000 sys-devel/binutils: fix 'cet' detection on i586 Reported-by: Worx Bug: https://bugs.gentoo.org/771765 Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/binutils/binutils-2.35.1-r1.ebuild | 2 + sys-devel/binutils/binutils-2.35.2.ebuild | 2 + sys-devel/binutils/binutils-2.36.1.ebuild | 2 + sys-devel/binutils/files/binutils-2.35.1-cet.patch | 103 +++++++++++++++++++++ 4 files changed, 109 insertions(+) Should be fixed for binutils-2.35 and above. |