New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linker issue with libclang_rt.builtins.a #6513
Comments
Something is wrong with your environment. |
We need libclang_rt.builtins.a file from the compiler to build a library. |
Are we talking about DPC++ compiler? AFAIK, DPC++ compiler doesn't use this library. I think it uses |
we're using Intel LLVM compiler built for HIP backend with the following configuration: export CC=gcc export DPCPPCOMPROOT=/opt/compiler/llvm And we're expecting the compiler to build libclang_rt.builtins.a file which we need to link with a library |
We don't test this configuration, so I'm not sure if we can provide much help.
Building libclang_rt.builtins.a is not related to DPC++ project, so you might want to contact compiler-rt developers via Discourse - https://discourse.llvm.org/c/runtimes/64. One more note: don't use |
The default target of
This should hopefully build |
If this is associated with oneMKL related for HIP backend, please refer to the following threads (for workaround) in addition to the above: |
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
Please provide a solution.
The text was updated successfully, but these errors were encountered: