[issue36257] configure with --with-icc --with-cxx-main=icpc

2019-03-10 Thread Alain Miniussi


New submission from Alain Miniussi :

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 
<https://bugs.python.org/issue36257>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21658] __m128, can't build 3.4.1 with intel 14.0.0

2014-06-05 Thread Alain Miniussi

Alain Miniussi added the comment:

Some details...

Environement:

{{{
[alainm@gurney Python-3.4.1]$ ^Cconfigure 
--prefix=/softs/exp/python-3.4.1-intel14-fake
[alainm@gurney Python-3.4.1]$ icc --version
icc (ICC) 14.0.0 20130728
Copyright (C) 1985-2013 Intel Corporation.  All rights reserved.
[alainm@gurney Python-3.4.1]$ uname -a
Linux gurney 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 
x86_64 x86_64 x86_64 GNU/Linux
[alainm@gurney Python-3.4.1]$ more /etc/centos-release 
CentOS release 6.5 (Final)
[alainm@gurney Python-3.4.1]$ 
}}}

Compilation error:

{{{
icc -pthread -fPIC -Wno-unused-result -Werror=declaration-after-statement 
-DNDEBUG -g -O3 -Wall -Wstrict-prototypes 
-Ibuild/temp.linux-x86_64-3.4/libffi/include 
-Ibuild/temp.linux-x86_64-3.4/libffi 
-I/gpfs/home/alainm/install/Python-3.4.1/Modules/_ctypes/libffi/src -I./Include 
-I. -IInclude -I/usr/local/include 
-I/gpfs/home/alainm/install/Python-3.4.1/Include 
-I/gpfs/home/alainm/install/Python-3.4.1 -c 
/gpfs/home/alainm/install/Python-3.4.1/Modules/_ctypes/libffi/src/x86/ffi64.c 
-o 
build/temp.linux-x86_64-3.4/gpfs/home/alainm/install/Python-3.4.1/Modules/_ctypes/libffi/src/x86/ffi64.o
 -Wall -fexceptions
icc: command line warning #10006: ignoring unknown option '-Wno-unused-result'
/gpfs/home/alainm/install/Python-3.4.1/Modules/_ctypes/libffi/src/x86/ffi64.c(56):
 error: identifier __m128 is undefined
UINT128 i128;
^

compilation aborted for 
/gpfs/home/alainm/install/Python-3.4.1/Modules/_ctypes/libffi/src/x86/ffi64.c 
(code 2)

Failed to build these modules:
_ctypes

}}}

Cheers

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21658
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21658] __m128, can't build 3.4.1 with intel 14.0.0

2014-06-04 Thread Alain Miniussi

New submission from Alain Miniussi:

In ffi64.c, intel 14.0.0 has an issue with:
{{{
#if defined(__INTEL_COMPILER)
#define UINT128 __m128
#else
...
}}}

At leat on Linux CentOS 6.5, an include directive is required for __m128:
{{{
#if defined(__INTEL_COMPILER)
#include xmmintrin.h
#define UINT128 __m128
#else
...
}}}
otherwise, compilation of _ctypes fails.

Regards.

--
components: ctypes
messages: 219753
nosy: aom
priority: normal
severity: normal
status: open
title: __m128, can't build 3.4.1 with intel 14.0.0
type: compile error
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21658
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com