Fedora FC5 linux, with BLAS, LAPACK, ATLAS, FFTW compile options: '-Ibuild/src.linux-x86_64-2.4/numpy/core/src -Inumpy/core/include -Ibuild/src.linux-x86_64-2.4/numpy/core -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.4 -c' gcc: numpy/core/src/multiarraymodule.c numpy/core/src/multiarraymodule.c: In function ‘initmultiarray’: numpy/core/src/multiarraymodule.c:6860: error: ‘NPY_ALLOW_THREADS’ undeclared (first use in this function) numpy/core/src/multiarraymodule.c:6860: error: (Each undeclared identifier is reported only once numpy/core/src/multiarraymodule.c:6860: error: for each function it appears in.) numpy/core/src/multiarraymodule.c: In function ‘initmultiarray’: numpy/core/src/multiarraymodule.c:6860: error: ‘NPY_ALLOW_THREADS’ undeclared (first use in this function) numpy/core/src/multiarraymodule.c:6860: error: (Each undeclared identifier is reported only once numpy/core/src/multiarraymodule.c:6860: error: for each function it appears in.) error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC -Ibuild/src.linux-x86_64-2.4/numpy/core/src -Inumpy/core/include -Ibuild/src.linux-x86_64-2.4/numpy/core -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.4 -c numpy/core/src/multiarraymodule.c -o build/temp.linux-x86_64-2.4/numpy/core/src/multiarraymodule.o" failed with exit status 1
On 9/9/06, Neal Becker <ndbecker2@gmail.com> wrote:
Sorry, actually that's today's numpy svn - not 1.0b5.
Make sure you have a clean build environment, the current SVN builds just fine on my Dapper 6.06 box; I just rebuilt it a second ago. Cheers, f ps. Here's my little build script, which I use to rebuild numpy/scipy/matplotlib in one shot: longs[scipy]> cat makeall #!/bin/sh ./makepkg numpy ./makepkg scipy ./makepkg matplotlib # EOF which uses the simple makepkg (just edit the PYTHON and PYPREFIX vars to suit your config): longs[scipy]> cat makepkg #!/bin/sh PACKAGE=$1 PYTHON=python2.4 PYPREFIX=$HOME/tmp/local #REVISION="HEAD" #REVISION=2772 # for numpy #REVISION=2054 # for scipy #REVISION="{2006-07-06}" #svn update -r $REVISION ${PACKAGE} svn update ${PACKAGE} export PYTHONPATH=${PYPREFIX}/lib/${PYTHON}/site-packages:${PYTHONPATH}: # remove existing ${PACKAGE} to make sure the build doesn't pick up spurious things rm -rf $PYPREFIX/lib/${PYTHON}/site-packages/${PACKAGE} # make/install cd ${PACKAGE} rm -rf build $PYTHON setup.py install --prefix=$PYPREFIX
participants (2)
-
Fernando Perez
-
Neal Becker