Title: configure with --with-icc --with-cxx-main=icpc
Type: compile error Stage:
Components: Installation Versions: Python 3.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: aminiussi
Priority: normal Keywords:

Created on 2019-03-10 20:22 by aminiussi, last changed 2019-03-10 20:22 by aminiussi.

Messages (1)
msg337637 - (view) Author: Alain Miniussi (aminiussi) Date: 2019-03-10 20:22

I'm trying to install 3.7.2 on CentOS 7.5 and intel 19:
[alainm@pollux Python-3.7.2]$ ./configure --prefix=/trinity/shared/OCA/softs/pyton-3.7-intel19 --with-icc --with-cxx-main=icpc --enable-optimizations 

Configure look ok but then compilation fails:
icpc -c -Wsign-compare -Wunreachable-code -DNDEBUG -g  -O3 -Wall    -std=c99 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-cast-function-type -Werror=implicit-function-declaration -fp-model strict -prof-gen  -I. -I./Include    -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c
icpc: command line warning #10148: option '-Wno-cast-function-type' not supported
icpc: command line warning #10381: option '-std=c99' is not valid for C++ compilations
In file included from ./Include/Python.h(65),
                 from ./Programs/python.c(3):
./Include/pyatomic.h(31): error: identifier "memory_order_relaxed" is undefined
      _Py_memory_order_relaxed = memory_order_relaxed,
For some reason, the compilation (and no just the link and main's compilation) is made with icpc, not icc.
Also, if icc is to be used, 'icc -std=c11' is required to use memory_order_relaxed. 

If icpc was to be used,  memory_order_relaxed is in namespace std

Date User Action Args
2019-03-10 20:22:24aminiussicreate