You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resolve-march-native fails on macOS 14.2 with this error: ERROR: Command '['gcc', '-Q', '--help=target', '-mcpu=native']' returned non-zero exit status 1.
Environment:
% uname -a
Darwin jlee-mbair.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:59:33 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8112 arm64
% gcc --version
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
@jeongyunl to my best knowledge resolve-march-native needs true GCC which means GCC from homebrew on macOS. The CI covers that case, as of today Clang is not supported and your "gcc" is Clang in disguise. Is https://formulae.brew.sh/formula/gcc an option to you?
@hartwork Thanks for quick reply.
I was just trying to figure out how to determine the l1 cache line size of a target platform.
I think I'll just stick to sysctl or getconf.
hartwork
changed the title
resolve-march-native fails on macOS 14.2: ERROR: Command '['gcc', '-Q', '--help=target', '-mcpu=native']' returned non-zero exit status 1.
[macOS] Needs true GCC from homebrew, not Clang "gcc"
Jan 24, 2024
resolve-march-native fails on macOS 14.2 with this error:
ERROR: Command '['gcc', '-Q', '--help=target', '-mcpu=native']' returned non-zero exit status 1.
Environment:
Debug output
The text was updated successfully, but these errors were encountered: