[NumPy-Tickets] [NumPy] #1918: Failed to compile numpy: PyArrayObject has no member 'ob_type'
NumPy Trac
numpy-tickets@scipy....
Sat Jul 30 06:19:50 CDT 2011
#1918: Failed to compile numpy: PyArrayObject has no member 'ob_type'
--------------------+-------------------------------------------------------
Reporter: _v_l | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: Unscheduled
Component: Other | Version: devel
Keywords: |
--------------------+-------------------------------------------------------
Hi.[[BR]]
I'm on Archlinux x86_64, gcc 4.6.1, python 2.7.2 and 3.2.1.[[BR]]
I try to compile numpy using python of 2 and 3 versions but it fails on
python3 with the following (a bit reformatted):[[BR]]
{{{
creating build/temp.linux-x86_64-3.2/numpy/lib
creating build/temp.linux-x86_64-3.2/numpy/lib/src
compile options: '-Inumpy/core/include
-Ibuild/src.linux-x86_64-3.2/numpy/core/include/numpy \
-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core
-Inumpy/core/src/npymath \
-Inumpy/core/src/multiarray -Inumpy/core/src/umath
-Inumpy/core/src/npysort -Inumpy/core/include \
-I/usr/include/python3.2mu
-Ibuild/src.linux-x86_64-3.2/numpy/core/src/multiarray \
-Ibuild/src.linux-x86_64-3.2/numpy/core/src/umath -c'
gcc: numpy/lib/src/_compiled_base.c
numpy/lib/src/_compiled_base.c: In function 'pack_or_unpack_bits':
numpy/lib/src/_compiled_base.c:1317:51: error: 'PyArrayObject' has no
member named 'ob_type'
numpy/lib/src/_compiled_base.c:1357:43: error: 'PyArrayObject' has no
member named 'ob_type'
numpy/lib/src/_compiled_base.c: In function 'pack_or_unpack_bits':
numpy/lib/src/_compiled_base.c:1317:51: error: 'PyArrayObject' has no
member named 'ob_type'
numpy/lib/src/_compiled_base.c:1357:43: error: 'PyArrayObject' has no
member named 'ob_type'
error: Command "gcc -pthread -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -g
-fwrapv -O3 -Wall \
-Wstrict-prototypes -march=x86-64 -mtune=generic -O2 -pipe -fPIC
-Inumpy/core/include \
-Ibuild/src.linux-x86_64-3.2/numpy/core/include/numpy
-Inumpy/core/src/private -Inumpy/core/src \
-Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray
-Inumpy/core/src/umath \
-Inumpy/core/src/npysort -Inumpy/core/include -I/usr/include/python3.2mu
\
-Ibuild/src.linux-x86_64-3.2/numpy/core/src/multiarray \
-Ibuild/src.linux-x86_64-3.2/numpy/core/src/umath -c
numpy/lib/src/_compiled_base.c \
-o build/temp.linux-x86_64-3.2/numpy/lib/src/_compiled_base.o" failed
with exit status 1
}}}
For both versions the build options are:
{{{
setup.py config_fc --fcompiler=gnu95 build
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1918>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list