Skip to content
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

Include clang sanitizers #2294

Closed
tekhnus opened this issue Jun 26, 2023 · 4 comments · Fixed by #2295
Closed

Include clang sanitizers #2294

tekhnus opened this issue Jun 26, 2023 · 4 comments · Fixed by #2295

Comments

@tekhnus
Copy link

tekhnus commented Jun 26, 2023

Hello!

Apparently, the clang from tea doesn't have sanitizer runtime libraries:

% clang -fsanitize=address,undefined hello.c
ld: file not found: /Users/zahaaar/.tea/llvm.org/v16.0.5/lib/clang/16/lib/darwin/libclang_rt.asan_osx_dynamic.dylib
clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
@jhheider
Copy link
Contributor

My research suggests that's simply including -DLLVM_ENABLE_RUNTIMES='compiler-rt' in the build; testing now.

@jhheider
Copy link
Contributor

Should be live in 16.0.6; rebuilding ^12, ^13, ^14, and ^15 now.

@jhheider
Copy link
Contributor

It looks like maybe ^12 and ^13 don't like being compiled with apple's clang 14 on darwin+aarch64; I'm probably ok with that, for now.

@tekhnus
Copy link
Author

tekhnus commented Jun 27, 2023

Works for me now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants