Description
Describe the bug
when I use the self-build-compiler to compile the sycl code , it brought the error :
clang++: error: cannot find 'remangled-l64-signed_char.libspirv-amdgcn-amd-amdhsa.bc'; provide path to libspirv library via '-fsycl-libspirv-path', or pass '-fno-sycl-libspirv' to build without linking with libspirv
The detail for the self-build-compiler
My toolkit is not in the default installation directory.
The record of commands are as follows:
cd path_to_buildbot CC=gcc CXX=g++ python configure.py --cuda -DCUDA_Toolkit_ROOT= /home/spack/spack/opt/spack/linux-debian12-sapphirerapids/gcc-12.2.0/cuda-12.1.1-bym4wirbkm4ipizrw5xt6wtghdbm2 jvi/bin CC=gcc CXX=g++ python compile.py
**The detail for the compile **
/home/zhwh/sycl_workspace/llvm-sycl/build/bin/clang++ \ -std=c++17 -O3 -fsycl \ -fsycl-targets=amdgcn-amd-amdhsa \ --rocm-path=/opt/rocm \ -Xsycl-target-backend --offload-arch=gfx1030 \ code.cpp -o kernel \ -L/home/zhwh/sycl_workspace/llvm-sycl/build/lib -lur_loader
When I run the commands , the error pop up.
clang++: error: cannot find 'remangled-l64-signed_char.libspirv-amdgcn-amd-amdhsa.bc'; provide path to libspirv library via '-fsycl-libspirv-path', or pass '-fno-sycl-libspirv' to build without linking with libspirv
To reproduce
- Include code snippet 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. AMD GPU]
- DPC++ version: [e.g. commit hash or output of
clang++ --version
] - Dependencies version: [e.g. the output of
rocm-smi
andsycl-ls --verbose
]
Additional context
No response