[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
Thu Sep 17 16:08:50 CEST 2015


STINNER Victor added the comment:

"When I just comment out the << #include "pyatomic.h"  >> line, python 3.5.0 will no longer compile"

Sure. My idea is to "disable" the header with we are not building Python itself. There is a nice define for that: Py_BUILD_CORE. See attached patch.

Since all symbols in pyatomic.h are prefixed by _Py, this header is fully part of the Python private API and so it's fine to modify it in a bugfix release (3.5.0 => 3.5.1).

----------
keywords: +patch
Added file: http://bugs.python.org/file40493/pyatomic.patch

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


More information about the Python-bugs-list mailing list