-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[wiki] Outdated instructions on how to build libcxx instructed with MSAN #1685
Comments
Just in case, this gist has worked for me a year ago. |
Thank you @yugr for the suggestion. Unfortunately this does not work for me. The libcxx build fails with a MemorySanitizer positive
|
So what happens here is that build instructions which I provided perform a bootstrap compile - i.e. they first build clang and then use it to build the libraries. Compiler (and its build tools, It seems this is a known problem: https://stackoverflow.com/a/73827100/2170527 . Following SO instructions I was able to successfully build libcxx/libcxxabi (needed to install clang-15 first):
|
There is buildbot https://lab.llvm.org/buildbot/#/builders/sanitizer-x86_64-linux-bootstrap-msan stage2 is libcxx and full clang instrumented and tested with msan This is how you ca reproduce the bot on your workstation/containter: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild Or you can try to extract cmake/ninja commands from the bot output https://lab.llvm.org/buildbot/#/builders/74/builds/22184/steps/2/logs/stdio |
Looks like it matches the SO answer I linked:
|
Thank you for pointing out the SO post. Indeed I was only missing the |
|
The wiki instructions on how to build libcxx instructed with MSAN are outdated.
The current article still suggests using
LLVM_ENABLE_PROJECTS
which is no longer available.Using instead
LLVM_ENABLE_RUNTIMES
has not been successful for me.Could you please update the article page for the latest releases?
The text was updated successfully, but these errors were encountered: