PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. Stack dump: 0. Program arguments: /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen -gen-asm-matcher -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/include -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenAsmMatcher.inc -d lib/Target/AMDGPU/AMDGPUGenAsmMatcher.inc.d #0 0x000055fac7e165f3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen+0x33f5f3) #1 0x000055fac7e13d74 llvm::sys::RunSignalHandlers() (/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen+0x33cd74) #2 0x000055fac7e141a6 SignalHandler(int) Signals.cpp:0:0 #3 0x00007f7ac8f7a2f0 (/usr/lib64/libc.so.6+0x3c2f0) #4 0x000055fac7e3676f llvm::Record::getValueAsBit(llvm::StringRef) const (/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen+0x35f76f) #5 0x000055fac7babf88 llvm::CodeGenInstruction::CodeGenInstruction(llvm::Record*) (/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen+0xd4f88) #6 0x000055fac7bfdec0 llvm::CodeGenTarget::ReadInstructions() const (/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen+0x126ec0) #7 0x000055fac7bfeb5f llvm::CodeGenTarget::ComputeInstrsByEnum() const (/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen+0x127b5f) #8 0x000055fac7c37a28 (anonymous namespace)::AsmMatcherInfo::buildInfo() AsmMatcherEmitter.cpp:0:0 #9 0x000055fac7c3d91d (anonymous namespace)::AsmMatcherEmitter::run(llvm::raw_ostream&) AsmMatcherEmitter.cpp:0:0 #10 0x000055fac7c42ab4 llvm::TableGen::Emitter::OptClass<(anonymous namespace)::AsmMatcherEmitter>::run(llvm::RecordKeeper&, llvm::raw_ostream&) AsmMatcherEmitter.cpp:0:0 #11 0x000055fac7e25377 llvm::TableGenMain(char const*, std::function<bool (llvm::raw_ostream&, llvm::RecordKeeper&)>) (/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen+0x34e377) #12 0x000055fac7b1c084 main (/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen+0x45084) #13 0x00007f7ac8f64200 (/usr/lib64/libc.so.6+0x26200) #14 0x00007f7ac8f642b9 __libc_start_main (/usr/lib64/libc.so.6+0x262b9) #15 0x000055fac7b1e1f5 _start (/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen+0x471f5) [1177/3564] cd /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64 && /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen -gen-instr-info -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/include -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenInstrInfo.inc -d lib/Target/AMDGPU/AMDGPUGenInstrInfo.inc.d [1178/3564] cd /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64 && /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen -gen-asm-writer -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/include -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenAsmWriter.inc -d lib/Target/AMDGPU/AMDGPUGenAsmWriter.inc.d [1179/3564] cd /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64 && /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen -gen-pseudo-lowering -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/include -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenMCPseudoLowering.inc -d lib/Target/AMDGPU/AMDGPUGenMCPseudoLowering.inc.d [1180/3564] cd /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64 && /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen -gen-global-isel -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/include -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU/AMDGPUGISel.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenGlobalISel.inc -d lib/Target/AMDGPU/AMDGPUGenGlobalISel.inc.d [1181/3564] cd /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64 && /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen -gen-global-isel-combiner -combiners="AMDGPUPostLegalizerCombiner" -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/include -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU/AMDGPUGISel.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc -d lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc.d [1182/3564] cd /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64 && /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen -gen-global-isel-combiner -combiners="AMDGPUPreLegalizerCombiner" -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/include -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU/AMDGPUGISel.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc -d lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc.d [1183/3564] cd /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64 && /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/bin/llvm-tblgen -gen-dag-isel -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64/include -I/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/include -I /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target /var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm/lib/Target/AMDGPU/AMDGPU.td --write-if-changed -o lib/Target/AMDGPU/AMDGPUGenDAGISel.inc -d lib/Target/AMDGPU/AMDGPUGenDAGISel.inc.d ninja: build stopped: subcommand failed. * ERROR: sys-devel/llvm-19.1.4::gentoo failed (compile phase): * ninja -v -j8 -l9 distribution failed * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 3944: Called multilib-minimal_src_compile * environment, line 2744: Called multilib_foreach_abi 'multilib-minimal_abi_src_compile' * environment, line 3011: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile' * environment, line 2704: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile' * environment, line 2702: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile' * environment, line 561: Called multilib-minimal_abi_src_compile * environment, line 2738: Called multilib_src_compile * environment, line 3231: Called tc-env_build 'cmake_build' 'distribution' * environment, line 4182: Called cmake_build 'distribution' * environment, line 1410: Called eninja 'distribution' * environment, line 1892: Called die * The specific snippet of code: * "$@" || die -n "${*} failed" * * If you need support, post the output of `emerge --info '=sys-devel/llvm-19.1.4::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-devel/llvm-19.1.4::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-devel/llvm-19.1.4/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-devel/llvm-19.1.4/temp/environment'. * Working directory: '/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm_build-abi_x86_64.amd64' * S: '/var/tmp/portage/sys-devel/llvm-19.1.4/work/llvm'
Created attachment 910512 [details] emerge-info
Please always include the full build.log.
(In reply to Sam James from comment #2) > Please always include the full build.log. https://paste.gentoo.zip/hkGDOVLn
(In reply to Leo Douglas from comment #3) > https://paste.gentoo.zip/hkGDOVLn Pastbins are not reliable. Attach the build log to the bug report. Compress it if necessary.
Try without -fno-semantic-interposition.
(In reply to Michał Górny from comment #5) > Try without -fno-semantic-interposition. thanks, but it is not always reproducible. I just tried again and passed.
Created attachment 910911 [details] build.log.1
Created attachment 910912 [details] build.log.2
Could this be related to running out of ram? I had this once, just reduced the threads, and then it worked.