Summary: | sys-devel/clang-16.0.6 - fails to build with '-Os' with sys-devel/gcc:13 on ppc64 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | ernsteiswuerfel <erhard_f> |
Component: | Current packages | Assignee: | LLVM support project <llvm> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | erhard_f, toolchain |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | PPC64 | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=880677 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 865117, 915000 | ||
Attachments: |
build.log (ppc64, 16.0.6)
emerge --info build.log (ppc64, 17.0.6) |
Description
ernsteiswuerfel
2023-09-28 12:50:27 UTC
Created attachment 871664 [details]
emerge --info
If you have access to ppc64le: does it happen there? (In reply to Sam James from comment #2) > If you have access to ppc64le: does it happen there? Nope, sorry. Still no ppc64le partition on my Talos yet. :( Created attachment 885000 [details]
build.log (ppc64, 17.0.6)
Same with 17.0.6 on ppc64.
On amd64 clang-17.0.6 builds fine with -Os.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2af06d2df0b0d41594490a46fb239b1ed587a76d commit 2af06d2df0b0d41594490a46fb239b1ed587a76d Author: Sam James <sam@gentoo.org> AuthorDate: 2024-03-27 06:21:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-27 06:24:42 +0000 sys-devel/llvm: add workaround for ppc with < GCC 14 Pass -fno-ipa-sra -fno-ipa-modref -fno-ipa-icf on ppc with < GCC 14. We know the problem is related to IPA and these 3 together help. Someone is welcome to spend the time trying to narrow it down more, but applying this as a bandaid which is better than nothing. GCC 14 seems fine without this, but the "fix" bisects to something odd just like the original "break" commit, so... Bug: https://gcc.gnu.org/PR108250 Bug: https://bugs.gentoo.org/914888 Closes: https://bugs.gentoo.org/880677 Closes: https://bugs.gentoo.org/875776 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/llvm/llvm-15.0.7-r3.ebuild | 7 ++++++- sys-devel/llvm/llvm-16.0.6.ebuild | 5 +++++ sys-devel/llvm/llvm-17.0.6.ebuild | 5 +++++ sys-devel/llvm/llvm-18.1.2.ebuild | 5 +++++ sys-devel/llvm/llvm-19.0.0.9999.ebuild | 5 +++++ sys-devel/llvm/llvm-19.0.0_pre20240316.ebuild | 5 +++++ sys-devel/llvm/llvm-19.0.0_pre20240322.ebuild | 5 +++++ 7 files changed, 36 insertions(+), 1 deletion(-) The above commit won't fix it on PPC64, but it might be inspiration for a fix/workaround if this is still a problem... |