[MacPorts] #63072: py39-numpy @1.20.3_0+gcc11+openblas fails to build on aarch64
MacPorts
noreply at macports.org
Sun Dec 26 09:27:12 UTC 2021
#63072: py39-numpy @1.20.3_0+gcc11+openblas fails to build on aarch64
-----------------------------+-----------------------
Reporter: thermalecology | Owner: michaelld
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: arm64
Port: py-numpy |
-----------------------------+-----------------------
Comment (by kencu):
gcc is supposed to predefine FLT_EVAL_METHOD to some value. eg from brew's
gcc11 on Intel, we see:
{{{
% gcc-11 -dM -E - < /dev/null | grep FLT_EVAL
#define __FLT_EVAL_METHOD__ 0
}}}
Apple's math.h accepts a few values:
{{{
*/
#if __FLT_EVAL_METHOD__ == 0
typedef float float_t;
typedef double double_t;
#elif __FLT_EVAL_METHOD__ == 1
typedef double float_t;
typedef double double_t;
#elif __FLT_EVAL_METHOD__ == 2 || __FLT_EVAL_METHOD__ == -1
typedef long double float_t;
typedef long double double_t;
#else /* __FLT_EVAL_METHOD__ */
#error "Unsupported value of __FLT_EVAL_METHOD__."
#endif /* __FLT_EVAL_METHOD__ */
}}}
so -- what does your gcc-mp-11 compiler show?
{{{
gcc-mp-11 -dM -E - < /dev/null | grep FLT_EVAL_METHOD
}}}
--
Ticket URL: <https://trac.macports.org/ticket/63072#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list