rocm's ClangConfig.cmake sets Clang_FOUND to FALSE
Description:
I'm trying to build the 6.0.0-1
package, but it fails to detect clang. I have rocm-llvm
from testing installed. I also do have regular clang
and clang15
installed.
CMake Error at hipamd/src/hiprtc/CMakeLists.txt:126 (find_package):
Found package configuration file:
/opt/rocm/llvm/lib/cmake/clang/ClangConfig.cmake
but it set Clang_FOUND to FALSE so package "Clang" is considered to be NOT
FOUND. Reason given by package:
The following imported targets are referenced, but are missing:
LLVMTargetParser LLVMFrontendOpenMP LLVMMC LLVMMCParser LLVMBinaryFormat
LLVMCore LLVMFrontendHLSL LLVMAnalysis LLVMBitReader LLVMBitWriter
LLVMCoroutines LLVMCoverage LLVMExtensions LLVMipo LLVMIRPrinter
LLVMIRReader LLVMAggressiveInstCombine LLVMInstCombine LLVMInstrumentation
LLVMLTO LLVMLinker LLVMObjCARCOpts LLVMObject LLVMPasses LLVMProfileData
LLVMRemarks LLVMScalarOpts LLVMTarget LLVMTransformUtils LLVMOption
LLVMWindowsDriver LLVMBitstreamReader LLVMAMDGPUCodeGen LLVMAMDGPUAsmParser
LLVMAMDGPUDesc LLVMAMDGPUDisassembler LLVMAMDGPUInfo LLVMAMDGPUUtils
LLVMNVPTXCodeGen LLVMNVPTXDesc LLVMNVPTXInfo LLVMX86CodeGen
LLVMX86AsmParser LLVMX86Desc LLVMX86Disassembler LLVMX86Info LLVMOrcJIT
LLVMCodeGen LLVMExecutionEngine LLVMMCJIT LLVMRuntimeDyld LLVMSelectionDAG
Additional info:
- package version(s): 6.0.0-1
- config and/or log files:
- link to upstream bug report, if any: