/usr/lib/llvm/14/include/llvm/IR/ModuleSummaryIndex.h:1175:73: warning: member llvm::ModuleSummaryIndex::Alloc is used uninitialized [-Wuninitialized] 1175 | : HaveGVs(HaveGVs), EnableSplitLTOUnit(EnableSplitLTOUnit), Saver(Alloc), | ^~~~~ /var/tmp/portage/dev-libs/rocm-comgr-5.1.3/work/ROCm-CompilerSupport-rocm-5.1.3/lib/comgr/src/comgr-compiler.cpp: In function amd_comgr_status_t COMGR::linkWithLLD(llvm::ArrayRef<const char*>, llvm::raw_ostream&, llvm::raw_ostream&): /var/tmp/portage/dev-libs/rocm-comgr-5.1.3/work/ROCm-CompilerSupport-rocm-5.1.3/lib/comgr/src/comgr-compiler.cpp:609:41: error: cannot convert llvm::raw_ostream to bool 609 | bool LLDRet = lld::elf::link(ArgRefs, LogS, LogE, false, false); | ^~~~ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_no_multilib_hardened-j4-20220725-030525 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-12.1.1 * clang/llvm (if any): clang version 14.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/14/bin /usr/lib/llvm/14 14.0.6 Python 3.10.6 Available Ruby profiles: (none found) Available Rust versions: [1] rust-bin-1.62.1 [2] rust-1.62.1 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11] 2) Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17] *) Eclipse Temurin JRE 17.0.3_p7 [openjdk-jre-bin-17] 4) Eclipse Temurin JRE 8.332_p09 [openjdk-jre-bin-8] Available Java Virtual Machines: [1] openjdk-bin-11 [2] openjdk-bin-17 [3] openjdk-jre-bin-8 [4] openjdk-jre-bin-17 system-vm The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli: HEAD of ::gentoo commit edcd53ef9e26e4d20d7e36c40af6e489822d5eb7 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sat Aug 6 16:02:02 2022 +0000 2022-08-06 16:02:02 UTC emerge -qpvO dev-libs/rocm-comgr [ebuild U ] dev-libs/rocm-comgr-5.1.3 [5.0.2]
Created attachment 798343 [details] emerge-info.txt
Created attachment 798346 [details] dev-libs:rocm-comgr-5.1.3:20220806-162917.log
Created attachment 798349 [details] emerge-history.txt.bz2
Created attachment 798352 [details] environment
Created attachment 798355 [details] etc.portage.tar.bz2
Created attachment 798358 [details] logs.tar.bz2
I had this error. LLVM, clang, etc. versions 13 AND 14 were installed. lld 13 was installed but not 14. After removing lld-13 and installing lld-14, rocm-comgr-5.1.3 compiles.