New submission from Alain Miniussi <alain.miniu...@oca.eu>:

Hi,

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

Regards
Alain

----------
components: Installation
messages: 337637
nosy: aminiussi
priority: normal
severity: normal
status: open
title: configure with --with-icc --with-cxx-main=icpc
type: compile error
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36257>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to