Charles R Harris
2015-08-10 22:34:59 UTC
Mingw32 will not compile current numpy due to initialization of a static
structure slot with a Python C-API function. The function is not considered
a constant expression by the old gcc in mingw32. Compilation does work with
more recent compilers; evidently the meaning of "constant expression" is up
to the vendor.
So, this is fixable if we initialize the slot with 0, but that loses some
precision/functionality. The question is, do we want to support mingw32,
and numpy-vendor as well, for numpy 1.10.0? I think the answer is probably
"yes", but we may want to reconsider for numpy 1.11, when we may want to
use Carl's mingw64 toolchain instead.
Chuck
structure slot with a Python C-API function. The function is not considered
a constant expression by the old gcc in mingw32. Compilation does work with
more recent compilers; evidently the meaning of "constant expression" is up
to the vendor.
So, this is fixable if we initialize the slot with 0, but that loses some
precision/functionality. The question is, do we want to support mingw32,
and numpy-vendor as well, for numpy 1.10.0? I think the answer is probably
"yes", but we may want to reconsider for numpy 1.11, when we may want to
use Carl's mingw64 toolchain instead.
Chuck