-
Notifications
You must be signed in to change notification settings - Fork 808
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Hi,
When inspecting clang++
via standard CMake compiler checks gave this error:
CMake Error at /soft/spack/pe/0.10.0/base/install/linux-sles15-x86_64/gcc-13.3.1/cmake-3.30.5-x6hbone32yqfjegmlb2zrf4xa6xbfx3y/share/cmake-3.30/Modules/CMakeTestCXXCompiler.cmake:73 (message):
The C++ compiler
"/soft/compilers/oneapi/upstream/install-13.0.1_09122025/bin/clang++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/home/abagusetty/today/oneDPL/build-cuda13.0.1/CMakeFiles/CMakeScratch/TryCompile-wCkt4a'
Run Build Command(s): /soft/spack/pe/0.10.0/base/install/linux-sles15-x86_64/gcc-13.3.1/cmake-3.30.5-x6hbone32yqfjegmlb2zrf4xa6xbfx3y/bin/cmake -E env VERBOSE=1 /soft/spack/pe/0.10.0/base/install/linux-sles15-x86_64/gcc-13.3.1/gmake-4.4.1-7wjvsx3ywnbkdzeolrhm7xfwrascpgiu/bin/gmake -f Makefile cmTC_f92a4/fast
/soft/spack/pe/0.10.0/base/install/linux-sles15-x86_64/gcc-13.3.1/gmake-4.4.1-7wjvsx3ywnbkdzeolrhm7xfwrascpgiu/bin/gmake -f CMakeFiles/cmTC_f92a4.dir/build.make CMakeFiles/cmTC_f92a4.dir/build
gmake[1]: Entering directory '/home/abagusetty/today/oneDPL/build-cuda13.0.1/CMakeFiles/CMakeScratch/TryCompile-wCkt4a'
Building CXX object CMakeFiles/cmTC_f92a4.dir/testCXXCompiler.cxx.o
/soft/compilers/oneapi/upstream/install-13.0.1_09122025/bin/clang++ -fsycl -fsycl-targets=nvptx64-nvidia-cuda -Xsycl-target-backend --cuda-gpu-arch=sm_80 -fmath-errno -ffast-math -o CMakeFiles/cmTC_f92a4.dir/testCXXCompiler.cxx.o -c /home/abagusetty/today/oneDPL/build-cuda13.0.1/CMakeFiles/CMakeScratch/TryCompile-wCkt4a/testCXXCompiler.cxx
/soft/compilers/oneapi/upstream/install-13.0.1_09122025/bin/clang++: error while loading shared libraries: libLLVMNativeCPUVecz.so.21.0git: cannot open shared object file: No such file or directory
gmake[1]: *** [CMakeFiles/cmTC_f92a4.dir/build.make:78: CMakeFiles/cmTC_f92a4.dir/testCXXCompiler.cxx.o] Error 127
gmake[1]: Leaving directory '/home/abagusetty/today/oneDPL/build-cuda13.0.1/CMakeFiles/CMakeScratch/TryCompile-wCkt4a'
gmake: *** [Makefile:127: cmTC_f92a4/fast] Error 2
These are the list of .so
files related to native-cpu
backend installed in build directory but not to the install directory. Tried with both Ninja and gmake.
Only in /home/abagusetty/today/llvm/build: libLLVMNativeCPUPipeline.so
Only in /home/abagusetty/today/llvm/build: libLLVMNativeCPUPipeline.so.21.0git
Only in /home/abagusetty/today/llvm/build: libLLVMNativeCPUVecz.so
Only in /home/abagusetty/today/llvm/build: libLLVMNativeCPUVecz.so.21.0git
Reproduced via:
git clone -b sycl --single-branch --depth=1 https://github.com/intel/llvm.git
export DPCPP_HOME=$PWD
CUDA_LIB_PATH=${CUDA_HOME} CC=`which gcc` CXX=`which g++` python3 $DPCPP_HOME/llvm/buildbot/configure.py --shared-libs --cmake-gen "Unix Makefiles" -DCUDAToolkit_ROOT=${CUDA_HOME} -DCMAKE_INSTALL_PREFIX=/soft/compilers/oneapi/upstream/install-${cuda_version}_${NOW} -DCMAKE_C_COMPILER=`which gcc` -DCMAKE_CXX_COMPILER=`which g++` --native_cpu --cuda -t Release --llvm-external-projects openmp
CC=`which gcc` CXX=`which g++` python3 $DPCPP_HOME/llvm/buildbot/compile.py -o $DPCPP_HOME/llvm/build -j16
cmake --build $DPCPP_HOME/llvm/build -- omp
cmake --build $DPCPP_HOME/llvm/build -- install -j16
Error:
/soft/compilers/oneapi/upstream/install-13.0.1_09122025/bin/clang++: error while loading shared libraries: libLLVMNativeCPUVecz.so.21.0git: cannot open shared object file: No such file or directory
To reproduce
- Include a code snippet that is as short as possible
- Specify the command which should be used to compile the program
- Specify the command which should be used to launch the program
- Indicate what is wrong and what was expected
Environment
- OS: [e.g Windows/Linux]
- Target device and vendor: [e.g. Intel GPU]
- DPC++ version: [e.g. commit hash or output of
clang++ --version
] - Dependencies version: [e.g. the output of
sycl-ls --verbose
]
Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working