[issue25150] 3.5: Include/pyatomic.h is incompatible with OpenMP (compilation of the third-party yt module fails on Python 3.5)

STINNER Victor report at bugs.python.org
Fri Sep 18 08:51:53 CEST 2015


STINNER Victor added the comment:

/home/alex/Python-3.5.0/Modules/_ctypes/_ctypes.c:2062:15: error: ‘_PyThreadState_Current’ undeclared (first use in this function)
         if (Py_EnterRecursiveCall("while processing _as_parameter_")) {
               ^

Ah yes, if you check the fix for C++ (changeset cb05b6d7aacd), I also had to modify pystate.h.

Please try pyatomic-2.patch which hides more CPython internals in public headers.

----------
Added file: http://bugs.python.org/file40497/pyatomic-2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25150>
_______________________________________


More information about the Python-bugs-list mailing list