[issue37415] Error build Python with Intel compiler: <stdatomic.h> doesn't provide atomic_uintptr_t

STINNER Victor report at bugs.python.org
Thu Jun 27 19:23:02 EDT 2019


STINNER Victor <vstinner at redhat.com> added the comment:

I suggested you to test the following change on the master branch of Python:

diff --git a/Include/internal/pycore_atomic.h b/Include/internal/pycore_atomic.h
index 336bc3fec2..c624a0cf1c 100644
--- a/Include/internal/pycore_atomic.h
+++ b/Include/internal/pycore_atomic.h
@@ -44,7 +44,7 @@ typedef enum _Py_memory_order {
 } _Py_memory_order;
 
 typedef struct _Py_atomic_address {
-    atomic_uintptr_t _value;
+    _Atomic uintptr_t _value;
 } _Py_atomic_address;
 
 typedef struct _Py_atomic_int {

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37415>
_______________________________________


More information about the Python-bugs-list mailing list