To see what gcc picks up for your -march=native, run resolve-march-native --keep-mno-flags
.
Available as app-misc/resolve-march-native.
this post was submitted on 23 Jan 2025
9 points (100.0% liked)
Gentoo Linux
530 readers
1 users here now
The Gentoo Linux community for discussions, tips and tricks, and general kernel compiling
founded 2 years ago
MODERATORS
This isn't the only such case. Raspberry Pi for example for years had incorrect flags if you asked for native. It's not a feature that works super consistently compared to manual specification of the CPU model and features.
As to concretely why the code doesn't work, I am not certain.
Thank you.