[New-bugs-announce] [issue34121] configure fails to detect C11 atomic support on clang
Benjamin Peterson
report at bugs.python.org
Sun Jul 15 19:47:57 EDT 2018
New submission from Benjamin Peterson <benjamin at python.org>:
clang supports C11 atomic APIs just fine but Python's configure fails to detect it:
configure:16529: checking for stdatomic.h
configure:16545: clang -pthread -o conftest conftest.c -lpthread -ldl -lutil >&5
conftest.c:389:5: error: _Atomic cannot be applied to incomplete type 'void'
_Atomic void *py_atomic_address = (void*) &value;
^
1 error generated.
Indeed, the atomic uninhabited type is not very useful. If we wanted an atomic pointer, we should write _Atomic(void *).
----------
components: Interpreter Core
messages: 321697
nosy: benjamin.peterson
priority: normal
severity: normal
status: open
title: configure fails to detect C11 atomic support on clang
versions: Python 3.6, Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34121>
_______________________________________
More information about the New-bugs-announce
mailing list