Skip to content

ninja: error: 'OpenCL::OpenCL', needed by 'lib/libur_adapter_opencl.so.0.12.0', missing and no known rule to make it #19737

@wenju-he

Description

@wenju-he

Describe the bug

Clean build of latest sycl branch is successful. However, when cmake is re-run due to change in CMakeLists.txt, there is error as shown in the issue title.
This is a regression of 10af536
Tag @sarnex

To reproduce

Configure command:

python buildbot/configure.py -DLLVM_USE_LINKER=lld -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ --cuda --hip -DCUDAToolkit_ROOT=$CUDA_PATH -DUR_HIP_ROCM_DIR=$ROCM_PATH -DLLVM_TARGETS_TO_BUILD="host;SPIRV;NVPTX;AMDGPU" -DLIBCLC_TARGETS_TO_BUILD="nvptx64--nvidiacl;amdgcn--amdhsa"

Build command:

cd build
ninja
touch ../llvm/CMakeLists.txt
ninja

Environment

<LOADER>[INFO]: failed to load adapter 'libur_adapter_cuda.so.0' with error: libcuda.so.1: cannot open shared object file: No such file or directory
<LOADER>[INFO]: failed to load adapter '/localdisk2/wenjuhe/Intel-llvm/build/lib/libur_adapter_cuda.so.0' with error: libcuda.so.1: cannot open shared object file: No such file or directory
<LOADER>[INFO]: loaded adapter 0x0x626da41d1140 (libur_adapter_hip.so.0) from /localdisk2/wenjuhe/Intel-llvm/build/lib/libur_adapter_hip.so.0
<LOADER>[INFO]: loaded adapter 0x0x626da42bde10 (libur_adapter_level_zero.so.0) from /localdisk2/wenjuhe/Intel-llvm/build/lib/libur_adapter_level_zero.so.0
<LOADER>[INFO]: loaded adapter 0x0x626da42bd7c0 (libur_adapter_level_zero_v2.so.0) from /localdisk2/wenjuhe/Intel-llvm/build/lib/libur_adapter_level_zero_v2.so.0
<LOADER>[INFO]: failed to load adapter 'libur_adapter_native_cpu.so.0' with error: libur_adapter_native_cpu.so.0: cannot open shared object file: No such file or directory
<LOADER>[INFO]: failed to load adapter '/localdisk2/wenjuhe/Intel-llvm/build/lib/libur_adapter_native_cpu.so.0' with error: /localdisk2/wenjuhe/Intel-llvm/build/lib/libur_adapter_native_cpu.so.0: cannot open shared object file: No such file or directory
<LOADER>[INFO]: failed to load adapter 'libur_adapter_offload.so.0' with error: libur_adapter_offload.so.0: cannot open shared object file: No such file or directory
<LOADER>[INFO]: failed to load adapter '/localdisk2/wenjuhe/Intel-llvm/build/lib/libur_adapter_offload.so.0' with error: /localdisk2/wenjuhe/Intel-llvm/build/lib/libur_adapter_offload.so.0: cannot open shared object file: No such file or directory
<LOADER>[INFO]: loaded adapter 0x0x626da42c0530 (libur_adapter_opencl.so.0) from /localdisk2/wenjuhe/Intel-llvm/build/lib/libur_adapter_opencl.so.0

Platforms: 0
default_selector()      : No device of requested type available.
accelerator_selector()  : No device of requested type available.
cpu_selector()          : No device of requested type available.
gpu_selector()          : No device of requested type available.
custom_selector(gpu)    : No device of requested type available.
custom_selector(cpu)    : No device of requested type available.
custom_selector(acc)    : No device of requested type available.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions