[New-bugs-announce] [issue35473] Intel compiler (icc) does not fully support C11 Features, including atomics

jamie schnaitter report at bugs.python.org
Wed Dec 12 12:50:27 EST 2018


New submission from jamie schnaitter <jamie.schnaitter at gmail.com>:

I am currently trying to build 3.6.7 and 3.7.1 using Intel 2019 and it is failing because Intel's implementation of C11, in particular stdatomic, is incomplete.  I receive many errors similar to the following, when it cannot find 'atomic_uintptr_t', which is not including in Intel's implementation:

```
In file included from ./Include/Python.h(56),
                 from ./Modules/_io/bufferedio.c(11):
./Include/pyatomic.h(33): error: identifier "atomic_uintptr_t" is undefined
      atomic_uintptr_t _value;
```

The current check in configure.ac is insufficient, as it only checks to see that the header and library exist and that it contains 'atomic_int'.  The configure.ac should be changed to either check for all the atomic types it uses (or at least atomic_uintprt_t) or, when `--with-icc` is enabled, it should set 'HAVE_STD_ATOMIC' to 0/false.

----------
components: Build, Installation, Library (Lib), ctypes
messages: 331713
nosy: jamie schnaitter
priority: normal
severity: normal
status: open
title: Intel compiler (icc) does not fully support C11 Features, including atomics
type: compile error
versions: Python 3.6, Python 3.7

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


More information about the New-bugs-announce mailing list