rpi4, updating world with emerge -avuUDn @world and LLVM 18 is pulled in. Reproducible: Always
Created attachment 903111 [details] emerge --info '=sys-devel/llvm-18.1.8-r1::gentoo'
Created attachment 903113 [details] build.log.tgz
This looks like a duplicate of bug 939738
Clear that it affects both AMD and ARM, on both gcc and llvm musl profiles.
How about without -ftree-vectorize and -flto? tblgen has a history of being miscompiled...
@Sam: this is without -ftree-vectorize and -flto: [1749/3494] cd /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64 && /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/bin/llvm-tblgen -gen-dag-isel -I /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/include -I/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenDAGISel.inc -d lib/Target/AMDGPU/AMDGPUGenDAGISel.inc.d FAILED: lib/Target/AMDGPU/AMDGPUGenDAGISel.inc /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/lib/Target/AMDGPU/AMDGPUGenDAGISel.inc cd /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64 && /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/bin/llvm-tblgen -gen-dag-isel -I /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/include -I/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenDAGISel.inc -d lib/Target/AMDGPU/AMDGPUGenDAGISel.inc.d [1750/3494] cd /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64 && /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/bin/llvm-tblgen -gen-disassembler -I /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/include -I/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenDisassemblerTables.inc -d lib/Target/AMDGPU/AMDGPUGenDisassemblerTables.inc.d FAILED: lib/Target/AMDGPU/AMDGPUGenDisassemblerTables.inc /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/lib/Target/AMDGPU/AMDGPUGenDisassemblerTables.inc cd /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64 && /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/bin/llvm-tblgen -gen-disassembler -I /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/include -I/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenDisassemblerTables.inc -d lib/Target/AMDGPU/AMDGPUGenDisassemblerTables.inc.d [1751/3494] cd /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64 && /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/bin/llvm-tblgen -gen-global-isel -I /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/include -I/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target/AMDGPU/AMDGPUGISel.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenGlobalISel.inc -d lib/Target/AMDGPU/AMDGPUGenGlobalISel.inc.d [1752/3494] cd /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64 && /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/bin/llvm-tblgen -gen-instr-info -I /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm_build-.arm64/include -I/var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-18.1.8-r1/work/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenInstrInfo.inc -d lib/Target/AMDGPU/AMDGPUGenInstrInfo.inc.d ninja: build stopped: subcommand failed.