libclang_rt.ubsan_standalone-x86_64.a: No such file or directory

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

libclang_rt.ubsan_standalone-x86_64.a: No such file or directory

Fangrui Song via cfe-dev
Hello, 

I built using https://llvm.org/docs/CMake.html in a separate directory as well as the build2 directory.
image.png


_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: libclang_rt.ubsan_standalone-x86_64.a: No such file or directory

Fangrui Song via cfe-dev
Sounds like you need to build the ubsan runtime. When you run cmake, make sure compiler-rt is part of LLVM_ENABLE_PROJECTS, as in:
cmake -DLLVM_ENABLE_PROJECTS=llvm;clang;compiler-rt;lld;...

I believe it is not enabled by default.

On Fri, Apr 3, 2020 at 3:19 AM suyash singh via cfe-dev <[hidden email]> wrote:
Hello, 

I built using https://llvm.org/docs/CMake.html in a separate directory as well as the build2 directory.
image.png

_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev