Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 952084

Summary: llvm-runtimes/offload-20.1.1 - [llvm] x86_64-pc-linux-gnu-ld: error: undefined symbol: llvm::TableGenMain(char const , std::function<bool (llvm::raw_ostream&, llvm::Recor
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: LLVM support project <llvm>
Status: CONFIRMED ---    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=952009
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 408963    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
llvm-runtimes:offload-20.1.1:20250325-225647.log
logs.tar.xz
qlist-info.txt
temp.tar.xz

Description Toralf Förster gentoo-dev 2025-03-26 08:23:23 UTC
too long lines were shrinked:

[25/31] /usr/bin/cmake -E cmake_symlink_library libomptarget.so.20.1+libcxx libomptarget.so.20.1+libcxx libomptarget.so && :
[26/31] /usr/lib/llvm/20/bin/x86_64-pc-linux-gnu-clang++ -DLLVM_BUILD_STATIC -DOMPT_SUPPORT=1 -I/usr/lib/llvm/20/include  -O2 -pipe -march=native -fno-diagnostics-color -std=c++17 -fno-color-diagnostics -MD -MT tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/offload-tblgen.cpp.o -MF tools/offload
[27/31] /usr/lib/llvm/20/bin/x86_64-pc-linux-gnu-clang++ -DLLVM_BUILD_STATIC -DOMPT_SUPPORT=1 -I/usr/lib/llvm/20/include  -O2 -pipe -march=native -fno-diagnostics-color -std=c++17 -fno-color-diagnostics -MD -MT tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/PrintGen.cpp.o -MF tools/offload-tblge
[28/31] : && /usr/lib/llvm/20/bin/x86_64-pc-linux-gnu-clang++ -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0    -Wl,--gc-sections tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/APIGen.cpp.
FAILED: offload-tblgen 
: && /usr/lib/llvm/20/bin/x86_64-pc-linux-gnu-clang++ -O2 -pipe -march=native -fno-diagnostics-color -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0    -Wl,--gc-sections tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/APIGen.cpp.o tools/
x86_64-pc-linux-gnu-ld: error: undefined symbol: llvm::TableGenMain(char const*, std::function<bool (llvm::raw_ostream&, llvm::RecordKeeper const&)>)
>>> referenced by offload-tblgen.cpp
>>>               tools/offload-tblgen/CMakeFiles/offload-tblgen.dir/offload-tblgen.cpp.o:(llvm::offload::tblgen::OffloadTblgenMain(int, char**))

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_llvm-20250325-171502

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang version 20.1.1+libcxx
llvm-config: 20.1.1+libcxx
Python 3.12.9

  HEAD of ::gentoo
commit 638d555d79315016a675cfb0227b6eac3043a5c6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Mar 25 16:50:21 2025 +0000

    2025-03-25 16:50:21 UTC

emerge -qpvO =llvm-runtimes/offload-20.1.1
[ebuild  N    ] llvm-runtimes/offload-20.1.1  USE="debug ompt -test -verify-sig" LLVM_TARGETS="-AMDGPU -NVPTX"
Comment 1 Toralf Förster gentoo-dev 2025-03-26 08:23:24 UTC
Created attachment 922821 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2025-03-26 08:23:25 UTC
Created attachment 922822 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2025-03-26 08:23:26 UTC
Created attachment 922823 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2025-03-26 08:23:27 UTC
Created attachment 922824 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2025-03-26 08:23:28 UTC
Created attachment 922825 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2025-03-26 08:23:29 UTC
Created attachment 922826 [details]
llvm-runtimes:offload-20.1.1:20250325-225647.log
Comment 7 Toralf Förster gentoo-dev 2025-03-26 08:23:30 UTC
Created attachment 922827 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2025-03-26 08:23:31 UTC
Created attachment 922828 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2025-03-26 08:23:33 UTC
Created attachment 922829 [details]
temp.tar.xz