python 3.5 openmp issue

Orion Poplawski orion at cora.nwra.com
Tue Nov 10 21:43:21 UTC 2015


h5py build is failing with python 3.5:

creating
build/temp.linux-x86_64-3.5/builddir/build/BUILD/python3-h5py-2.5.0-5.fc24/h5py
gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic
-D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fopenmp
-fPIC -DH5_USE_16_API -I/builddir/build/BUILD/python3-h5py-2.5.0-5.fc24/lzf
-I/opt/local/include -I/usr/local/include
-I/usr/lib64/python3.5/site-packages/numpy/core/include
-I/usr/include/python3.5m -c
/builddir/build/BUILD/python3-h5py-2.5.0-5.fc24/h5py/defs.c -o
build/temp.linux-x86_64-3.5/builddir/build/BUILD/python3-h5py-2.5.0-5.fc24/h5py/defs.o
In file included from /usr/include/python3.5m/pyatomic.h:12:0,
                 from /usr/include/python3.5m/Python.h:53,
                 from
/builddir/build/BUILD/python3-h5py-2.5.0-5.fc24/h5py/defs.c:36:
/usr/lib/gcc/x86_64-redhat-linux/5.2.1/include/stdatomic.h:40:1: sorry,
unimplemented: '_Atomic' with OpenMP
 typedef _Atomic _Bool atomic_bool;
 ^
/usr/lib/gcc/x86_64-redhat-linux/5.2.1/include/stdatomic.h:41:1: sorry,
unimplemented: '_Atomic' with OpenMP
 typedef _Atomic char atomic_char;
 ^

This appears to be https://bugs.python.org/issue25150 for which there appears
to be a patch.  Could this be applied please?

Thanks.

-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion at nwra.com
Boulder, CO 80301                   http://www.nwra.com


More information about the devel mailing list