Skip to content

Run CMake twice when it fails.

Lubosz Sarnecki requested to merge lubosz/hip-runtime-amd:configure-twice into main

When running CMake on a clean build it fails to detect clang. The following error is given:

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

This fixes #1 (closed)

Edited by Lubosz Sarnecki

Merge request reports

Loading