[Numpy-discussion] git source datetime build error

Angus McMorland amcmorl@gmail....
Tue Jun 7 19:53:24 CDT 2011


On 7 June 2011 17:57, Mark Wiebe <mwwiebe@gmail.com> wrote:
> Hi Angus,
> Thanks for reporting that, I've committed a fix so it builds in the
> monolithic mode again.

Thanks Mark. That fixed it for i686, but on x86_64 I get the
following. Still looks datetime related.

compile options: '-Ibuild/src.linux-x86_64-2.6/numpy/core/src/umath
-Inumpy/core/include
-Ibuild/src.linux-x86_64-2.6/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/include -I/usr/include/python2.6
-Ibuild/src.linux-x86_64-2.6/numpy/core/src/multiarray
-Ibuild/src.linux-x86_64-2.6/numpy/core/src/umath -c'
gcc: numpy/core/src/umath/umathmodule_onefile.c
In file included from numpy/core/src/umath/umathmodule.c.src:41,
                 from numpy/core/src/umath/umathmodule_onefile.c:4:
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:68:
error: ‘TIMEDELTA_ml_m_divide’ undeclared here (not in a function)
In file included from numpy/core/src/umath/umathmodule.c.src:41,
                 from numpy/core/src/umath/umathmodule_onefile.c:4:
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:89:
error: ‘TIMEDELTA_ml_m_floor_divide’ undeclared here (not in a
function)
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:89:
error: initializer element is not constant
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:89:
error: (near initialization for ‘floor_divide_functions[17]’)
In file included from numpy/core/src/umath/umathmodule.c.src:41,
                 from numpy/core/src/umath/umathmodule_onefile.c:4:
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:170:
error: ‘TIMEDELTA_ml_m_multiply’ undeclared here (not in a function)
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:170:
error: initializer element is not constant
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:170:
error: (near initialization for ‘multiply_functions[18]’)
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:170:
error: ‘TIMEDELTA_lm_m_multiply’ undeclared here (not in a function)
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:170:
error: initializer element is not constant
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:170:
error: (near initialization for ‘multiply_functions[19]’)
In file included from numpy/core/src/umath/umathmodule.c.src:41,
                 from numpy/core/src/umath/umathmodule_onefile.c:4:
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:236:
error: ‘TIMEDELTA_ml_m_true_divide’ undeclared here (not in a
function)
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:236:
error: initializer element is not constant
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:236:
error: (near initialization for ‘true_divide_functions[17]’)
In file included from numpy/core/src/umath/umathmodule.c.src:41,
                 from numpy/core/src/umath/umathmodule_onefile.c:4:
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:68:
error: ‘TIMEDELTA_ml_m_divide’ undeclared here (not in a function)
In file included from numpy/core/src/umath/umathmodule.c.src:41,
                 from numpy/core/src/umath/umathmodule_onefile.c:4:
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:89:
error: ‘TIMEDELTA_ml_m_floor_divide’ undeclared here (not in a
function)
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:89:
error: initializer element is not constant
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:89:
error: (near initialization for ‘floor_divide_functions[17]’)
In file included from numpy/core/src/umath/umathmodule.c.src:41,
                 from numpy/core/src/umath/umathmodule_onefile.c:4:
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:170:
error: ‘TIMEDELTA_ml_m_multiply’ undeclared here (not in a function)
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:170:
error: initializer element is not constant
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:170:
error: (near initialization for ‘multiply_functions[18]’)
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:170:
error: ‘TIMEDELTA_lm_m_multiply’ undeclared here (not in a function)
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:170:
error: initializer element is not constant
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:170:
error: (near initialization for ‘multiply_functions[19]’)
In file included from numpy/core/src/umath/umathmodule.c.src:41,
                 from numpy/core/src/umath/umathmodule_onefile.c:4:
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:236:
error: ‘TIMEDELTA_ml_m_true_divide’ undeclared here (not in a
function)
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:236:
error: initializer element is not constant
build/src.linux-x86_64-2.6/numpy/core/include/numpy/__umath_generated.c:236:
error: (near initialization for ‘true_divide_functions[17]’)
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv
-O2 -Wall -Wstrict-prototypes -fPIC
-Ibuild/src.linux-x86_64-2.6/numpy/core/src/umath -Inumpy/core/include
-Ibuild/src.linux-x86_64-2.6/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/include -I/usr/include/python2.6
-Ibuild/src.linux-x86_64-2.6/numpy/core/src/multiarray
-Ibuild/src.linux-x86_64-2.6/numpy/core/src/umath -c
numpy/core/src/umath/umathmodule_onefile.c -o
build/temp.linux-x86_64-2.6/numpy/core/src/umath/umathmodule_onefile.o"
failed with exit status 1
-- 
AJC McMorland
Post-doctoral research fellow
Neurobiology, University of Pittsburgh


More information about the NumPy-Discussion mailing list