gcc Apple Silicon missing AddressSanitizer/UBSanitizer libraries? #3384
Replies: 8 comments 6 replies
-
GCC on ARM is a pre-release version, it isn't officially supported yet. But if you're lucky @fxcoudert might be able to help you with this. |
Beta Was this translation helpful? Give feedback.
-
I think the sanitizer runtime libraries are simply not supported on aarch64-apple-darwin at this point. |
Beta Was this translation helpful? Give feedback.
-
hello @dgazzoni I'm running into the same problem, did you find a way how to use AddressSanitizer with gcc m1? |
Beta Was this translation helpful? Give feedback.
-
@fxcoudert I am able to use |
Beta Was this translation helpful? Give feedback.
-
I'm affected by this as well, using @fxcoudert do you have any information on how I might follow the development progress on GCC's support for aarch64-apple-darwin? |
Beta Was this translation helpful? Give feedback.
-
@fxcoudert Actually, there is another issue too, which came to me after installing gcc 13.1.0. Some code which earlier used to compile is not compiling anymore. I am not sure if I should downgrade it or remain for the bugs to be fixed. More info here: https://codeforces.com/blog/entry/116459, https://stackoverflow.com/questions/76287256/declaring-array-of-large-size-of-vectorint-using-gcc-causes-error-changing-to |
Beta Was this translation helpful? Give feedback.
This comment has been minimized.
This comment has been minimized.
-
I have the same issues with both the gcc-12 and gcc-13 toolchains, for both arm64 and intel architectures. I haven't tried older toolchains. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a problem trying to use AddressSanitizer and/or UBSanitizer with Homebrew's gcc on Apple Silicon. It does not happen on Intel.
brew install gcc
orbrew install gcc@12
test.c
:Indeed, looking at the files on
/opt/homebrew/Cellar/gcc/11.3.0/lib/gcc/11
on my Apple Silicon Mac, there's nolibasan.dylib
orlibubsan.dylib
. On the Intel Mac, they are present in/usr/local/Cellar/gcc/11.3.0/lib/gcc/11
.I tried to look at the formulas for gcc, to see whether there was some kind of special-casing for either Apple Silicon or Intel, but I was unable to find any.
Can anyone else reproduce? Should I file a bug?
Beta Was this translation helpful? Give feedback.
All reactions