Recently I need to install a older numpy on my laptop with M1 chipset. Unexpectively, there's no prebuild binary for may machine. So I need to build from source code.
Usually, numpy isn't really hard to build in my experience. They are nicely configured. But this time, I found a bunch of errors, says:
clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
After some times of search, finally I find this could be addressed by numpy#18900. And there's only one commit 516bb1a, which simply removed the argument -faltivec
. After cherry pick that commit back to 1.19 series, everything works.
Found that fix is first applied in 1.21.0
so I think this issue might also happen in 1.20.