-
-
Notifications
You must be signed in to change notification settings - Fork 758
-sanitize:address gives Undefined symbol error #4630
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
Comments
Edited because the versions don't appear to matter. I made the wrong conclusion, sorry about that! I get the same error when the compiler uses the LLVM build shipped with Odin on Apple Silicon (M4). If you have LLVM installed via Homebrew though you can do e.g. export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
odin build . -sanitize:address in your build script and it works (I'm using LLVM 19). I don't know exactly where the difference is. |
Almost, right solution but wrong cause. It does not work with clang that comes with macOS by default, so you have to make brew's llvm be used by Odin, that can either be done with the |
Oh, I guess that is what confused me, thank you 🙇♂️ The ASAN is enabled through the linker call which is a system call anyway and has nothing to do with the shipped LLVM lib for code generation. |
I'm confused, but anyway, this works so maybe there is no reason to be confused: I added: |
Context
The
-sanitize:address
option gives:Expected Behavior
Either that it works, or a message that it is not supported on the specific platform
Current Behavior
See error above
Steps to Reproduce
Use
-sanitize:address
on OSX with apple silicon.The text was updated successfully, but these errors were encountered: