Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944152 - =llvm-core/llvm-19.1.4: failed to compile
Summary: =llvm-core/llvm-19.1.4: failed to compile
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-20 15:29 UTC by Leo Douglas
Modified: 2025-03-17 21:27 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info (emerge-info,6.71 KB, text/plain)
2024-11-20 15:30 UTC, Leo Douglas
Details
build.log.1 (build.log.aa,1000.00 KB, application/octet-stream)
2024-11-21 06:27 UTC, Leo Douglas
Details
build.log.2 (build.log.ab,578.02 KB, text/plain)
2024-11-21 06:27 UTC, Leo Douglas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leo Douglas 2024-11-20 15:29:58 UTC
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'
Comment 1 Leo Douglas 2024-11-20 15:30:20 UTC
Created attachment 910512 [details]
emerge-info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-20 15:42:22 UTC
Please always include the full build.log.
Comment 3 Leo Douglas 2024-11-20 15:43:53 UTC
(In reply to Sam James from comment #2)
> Please always include the full build.log.

https://paste.gentoo.zip/hkGDOVLn
Comment 4 Mike Gilbert gentoo-dev 2024-11-20 16:42:22 UTC
(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.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-11-20 17:00:06 UTC
Try without -fno-semantic-interposition.
Comment 6 Leo Douglas 2024-11-21 06:23:18 UTC
(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.
Comment 7 Leo Douglas 2024-11-21 06:27:46 UTC
Created attachment 910911 [details]
build.log.1
Comment 8 Leo Douglas 2024-11-21 06:27:59 UTC
Created attachment 910912 [details]
build.log.2
Comment 9 Damian Dudycz 2025-03-17 21:27:25 UTC
Could this be related to running out of ram? I had this once, just reduced the threads, and then it worked.