Summary: | sys-devel/gcc-11.3.1_p20221223[cet]: checking for CET support... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Miroslav Šulc <fordfrog> |
Component: | Current packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arsen, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 822036 | ||
Attachments: | build.log |
Description
Miroslav Šulc
![]() Could you grab /var/tmp/portage/sys-devel/gcc-11.3.1_p20221223/work/gcc-build-logs.tar.xz? In https://bugs.gentoo.org/822036#c14, I got fed up and changed to the Ubuntu-style specs patching for the time being, because it was too fragile otherwise. We should probably just drop the CET patch for 11.x. We can keep the USE in make.defaults for CET on hardened profiles though, as support for it is still useful, but it'll only be on by default with 12. I do want to revisit the specs patch later on as it's not very maintainable though. These tests are ran only when --enable-cet=auto, which is the default AFAIU. I'm not sure if there's negative implications to specifying --enable-cet=yes (which just acts as if the automatic tests with =auto passed), but if not, the fix might be to just pass that. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=15daf0510a5fab17cd556261d688a6618391a0c1 commit 15daf0510a5fab17cd556261d688a6618391a0c1 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-22 08:35:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-23 00:35:20 +0000 11.4.0: drop 26_all_enable-cet.patch (bootstrapping issues with PGO/LTO?) See https://bugs.gentoo.org/891655#c2 in particular: """ In https://bugs.gentoo.org/822036#c14, I got fed up and changed to the Ubuntu-style specs patching for the time being, because it was too fragile otherwise. We should probably just drop the CET patch for 11.x. We can keep the USE in make.defaults for CET on hardened profiles though, as support for it is still useful, but it'll only be on by default with 12. I do want to revisit the specs patch later on as it's not very maintainable though. """ 11.x is really not the place we want to experiment further at this point, so go for the safe option and either develop the approach further for 12 or maybe even 13. Arsen notes that we might be able to try --enable-cet=yes (rather than default auto) but let's leave that for now given ^ wrt 11. Bug: https://bugs.gentoo.org/822036 Closes: https://bugs.gentoo.org/891655 Signed-off-by: Sam James <sam@gentoo.org> 11.4.0/gentoo/26_all_enable-cet.patch | 48 ----------------------------------- 11.4.0/gentoo/README.history | 3 +++ 2 files changed, 3 insertions(+), 48 deletions(-) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=016184c289f2cc6c6ade496a700a12f135fbae07 commit 016184c289f2cc6c6ade496a700a12f135fbae07 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-23 00:25:35 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-23 00:42:40 +0000 sys-devel/gcc: backport CET fix for 11; further make jobserver related fixes for all - jobserver: Led to crashes during build in some cases. Note that this is a bug in the driver so could easily happen when using GCC to build other things too. - CET: See https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=15daf0510a5fab17cd556261d688a6618391a0c1 for details, but went for a more conservative approach for GCC 11. Bug: https://bugs.gentoo.org/822036 Closes: https://bugs.gentoo.org/885501 Closes: https://bugs.gentoo.org/891655 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/Manifest | 4 +- ...30119.ebuild => gcc-10.4.1_p20230119-r1.ebuild} | 8 ++-- ...30120.ebuild => gcc-11.3.1_p20230120-r1.ebuild} | 8 ++-- sys-devel/gcc/gcc-12.2.1_p20230121-r1.ebuild | 52 ++++++++++++++++++++++ 4 files changed, 63 insertions(+), 9 deletions(-) |