Running into this error while using the latest version of compiler with hip backend:
/opt/compiler/llvm/clang/test/Driver/Inputs/debian_per_target_tree/usr/lib/llvm-14/lib/clang/14.0.0/lib/x86_64-linux-gnu/libclang_rt.builtins.a: file not recognized: File truncated
We need libclang_rt.builtins.a file from the compiler to build a library.
While that file was present in the compiler but it is empty and didn’t get created.
we’re using Intel LLVM compiler built for HIP backend with the following configuration:
export CC=gcc
export CXX=g++
export DPCPPCOMPROOT=/opt/compiler/llvm
python3 $DPCPPCOMPROOT/buildbot/configure.py -s $DPCPPCOMPROOT -o $DPCPPCOMPROOT/build --cmake-opt=“-DLLVM_ENABLE_RUNTIMES=compiler-rt” -t release --shared-libs --hip
python3 $DPCPPCOMPROOT/buildbot/compile.py -s $DPCPPCOMPROOT/llvm -o $DPCPPCOMPROOT/build
And we’re expecting the compiler to build libclang_rt.builtins.a file which we need to link with a library