Open brettcannon opened 2 hours ago
@erlend-aasland how would you prefer to structure this in configure.ac
?
@erlend-aasland how would you prefer to structure this in
configure.ac
?
I think @picnixz already started hashing out better SIMD checks in #125022.
Bug report
Bug description:
I'm getting a lot of:
That seems to be defined at: https://github.com/python/cpython/blob/5e9168492f12c579b2481f3f3e0ae11f9d986857/Modules/_hacl/libintvector.h#L30
But that whole header file is guarded by: https://github.com/python/cpython/blob/5e9168492f12c579b2481f3f3e0ae11f9d986857/Modules/_hacl/libintvector.h#L22
Unfortunately, if you add
defined(__wasi__)
to that guard you then get:To me that suggests the check at: https://github.com/python/cpython/blob/5e9168492f12c579b2481f3f3e0ae11f9d986857/configure.ac#L7854-L7906
is too broad since the header files don't work on non-x86 architectures.
This probably requires either a CPU/platform check before checking the flag support or an explicit opt-out for at least WASI.
(And I have no idea why CI isn't running into this problem while I am locally; bad configure caching via https://github.com/python/cpython/blob/5e9168492f12c579b2481f3f3e0ae11f9d986857/.github/workflows/reusable-wasi.yml#L63-L68 ?)
CPython versions tested on:
CPython main branch
Operating systems tested on:
Other