Description
ernsteiswuerfel
2022-10-06 20:50:16 UTC
Created attachment 822682 [details]
emerge --info
Please confirm that sys-devel/llvm-14.0.6* can still be built successfully on PPC32 Musl system, which would mean that this failure in sys-devel/llvm-15.0.2 is regression. Looks like it's a toolchain issue... gcc-10.4.0, binutils-2.39-r2, musl-1.2.3-r4: llvm-14.0.6-r2 ... ok llvm-15.0.2 + patches ... ok gcc-12.2.0, binutils-2.39-r2, musl-1.2.3-r4: llvm-14.0.6-r2 ... FAILS llvm-15.0.2 + patches ... FAILS Created attachment 822838 [details]
build.log.xz (ppc, 15.0.2 + llvm patches, GCC 12.2.0)
Created attachment 822841 [details]
build.log.xz (ppc, 15.0.2 + llvm patches, GCC 10.4.0)
Created attachment 822844 [details]
build.log.xz (ppc, 14.0.6-r2, GCC 12.2.0)
Created attachment 822847 [details]
build.log.xz (ppc, 14.0.6-r2, GCC 10.4.0)
Created attachment 822913 [details]
build.log.xz (ppc, 15.0.2 + llvm patches, GCC 11.3.1_p20221007)
15.0.2 + llvm patches builds fine with GCC 11.3.1_p20221007 too.
With GCC 12.2.1_p20221001 the build does not finish. It stalls at:
[1610/3227] /usr/bin/powerpc-gentoo-linux-musl-g++ -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm_build-.ppc/lib/Target/VE -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target/VE -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm_build-.ppc/include -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/include -DNDEBUG -O2 -mcpu=7450 -mtune=7450 -pipe -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fvisibility=hidden -std=c++14 -MD -MT lib/Target/VE/CMakeFiles/LLVMVECodeGen.dir/LVLGen.cpp.o -MF lib/Target/VE/CMakeFiles/LLVMVECodeGen.dir/LVLGen.cpp.o.d -o lib/Target/VE/CMakeFiles/LLVMVECodeGen.dir/LVLGen.cpp.o -c /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target/VE/LVLGen.cpp
Looking at the stalling process reveals:
portage 26234 21461 99 13:54 pts/0 00:35:25 /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm_build-.ppc/bin/llvm-tblgen -gen-fast-isel -I /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target/AArch64 -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm_build-.ppc/include -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target/AArch64/AArch64.td --write-if-changed -o lib/Target/AArch64/AArch64GenFastISel.inc -d lib/Target/AArch64/AArch64GenFastISel.inc.d
I checked builds with ppc-glibc too and I get a similar pattern here. Builds fine with GCC 11.3 and does not build with GCC 12.2 though on glibc I don't get a build failure with gcc-12.2.0 but a stall like with gcc-12.2.1_p20221001 on ppc-musl. But all in all it's clear that this issue isn't musl specific. Stall with GCC 12.2.0, glibc at: [2236/3227] /usr/bin/powerpc-unknown-linux-gnu-g++ -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm_build-.ppc/lib/Target/Lanai -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target/Lanai -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm_build-.ppc/include -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/include -DNDEBUG -O2 -mcpu=7450 -mtune=7450 -pipe -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fvisibility=hidden -std=c++14 -MD -MT lib/Target/Lanai/CMakeFiles/LLVMLanaiCodeGen.dir/LanaiTargetMachine.cpp.o -MF lib/Target/Lanai/CMakeFiles/LLVMLanaiCodeGen.dir/LanaiTargetMachine.cpp.o.d -o lib/Target/Lanai/CMakeFiles/LLVMLanaiCodeGen.dir/LanaiTargetMachine.cpp.o -c /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target/Lanai/LanaiTargetMachine.cpp [2237/3227] cd /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm_build-.ppc && /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm_build-.ppc/bin/llvm-tblgen -gen-instr-info -I /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target/AArch64 -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm_build-.ppc/include -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target/AArch64/AArch64.td --write-if-changed -o lib/Target/AArch64/AArch64GenInstrInfo.inc -d lib/Target/AArch64/AArch64GenInstrInfo.inc.d portage 27949 21517 99 19:14 pts/3 00:20:28 /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm_build-.ppc/bin/llvm-tblgen -gen-fast-isel -I /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target/X86 -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm_build-.ppc/include -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target/X86/X86.td --write-if-changed -o lib/Target/X86/X86GenFastISel.inc -d lib/Target/X86/X86GenFastISel.inc.d Stall with GCC 12.2.1_p20221001, glibc at: [2161/3227] /usr/bin/powerpc-unknown-linux-gnu-g++ -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm_build-.ppc/lib/Target/Mips -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target/Mips -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm_build-.ppc/include -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/include -DNDEBUG -O2 -mcpu=7450 -mtune=7450 -pipe -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wmisleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fvisibility=hidden -std=c++14 -MD -MT lib/Target/Mips/CMakeFiles/LLVMMipsCodeGen.dir/MipsAsmPrinter.cpp.o -MF lib/Target/Mips/CMakeFiles/LLVMMipsCodeGen.dir/MipsAsmPrinter.cpp.o.d -o lib/Target/Mips/CMakeFiles/LLVMMipsCodeGen.dir/MipsAsmPrinter.cpp.o -c /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target/Mips/MipsAsmPrinter.cpp portage 28095 22436 99 16:45 pts/3 01:25:55 /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm_build-.ppc/bin/llvm-tblgen -gen-instr-info -I /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target/RISCV -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm_build-.ppc/include -I/var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-15.0.2/work/llvm/lib/Target/RISCV/RISCV.td --write-if-changed -o lib/Target/RISCV/RISCVGenInstrInfo.inc -d lib/Target/RISCV/RISCVGenInstrInfo.inc.d Created attachment 822955 [details]
build.log.xz (ppc, 15.0.2 + llvm patches, GCC 11.3.1_p20220909)
*** Bug 880203 has been marked as a duplicate of this bug. *** Created attachment 828421 [details] build.log.xz (ppc, 15.0.4 + llvm patches, GCC 12.2.1_p20221008) I'll attach the build log from bug #880203 here too because now the build fails with a proper error message instead of only stalling. Created attachment 828423 [details]
emerge --info
The bug has been closed via 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 bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da33b20297b8b7ad97bc9475ad35a14358615eb8 commit da33b20297b8b7ad97bc9475ad35a14358615eb8 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-04-26 19:39:48 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-04-26 19:40:09 +0000 sys-devel/gcc: stabilize 12.3.1_p20240209, 13.2.1_p20240210 for ppc Bug: https://bugs.gentoo.org/875776 Bug: https://bugs.gentoo.org/880677 Signed-off-by: Sam James <sam@gentoo.org> sys-devel/gcc/gcc-12.3.1_p20240209.ebuild | 2 +- sys-devel/gcc/gcc-13.2.1_p20240210.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) |