[SciPy-user] numpy-1.0rc3 on MacOS X 10.4 (PPC). Builds with errors, tests fail

Tom Bridgman cygnusx1 at mac.com
Thu Oct 19 20:02:56 EDT 2006


Still trying to get scipy working.  Saw the new numpy and tried it  
under gFortran & fftw-3.1.2.

Seems to build okay but tests generate many warnings, then fail.  A  
number of errors appear in _configuretest.c:4 stage of the build.  I  
had to truncate the listing as it exceeding the posting limit for  
this list.

Here's the test output for numpy.

Suggestions welcome.

> Planck:/Users/Shared/ToBeRestored/Python bridgman$ python
> Python 2.4.3 (#1, Apr  7 2006, 10:54:33)
> [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import numpy
> >>> numpy.test(1,1)
>   Found 5 tests for numpy.distutils.misc_util
>   Found 3 tests for numpy.lib.getlimits
>   Found 31 tests for numpy.core.numerictypes
>   Found 32 tests for numpy.linalg
>   Found 13 tests for numpy.core.umath
>   Found 4 tests for numpy.core.scalarmath
>   Found 9 tests for numpy.lib.arraysetops
>   Found 42 tests for numpy.lib.type_check
>   Found 183 tests for numpy.core.multiarray
>   Found 3 tests for numpy.fft.helper
>   Found 36 tests for numpy.core.ma
>   Found 12 tests for numpy.lib.twodim_base
>   Found 10 tests for numpy.core.defmatrix
>   Found 1 tests for numpy.lib.ufunclike
>   Found 4 tests for numpy.ctypeslib
>   Found 41 tests for numpy.lib.function_base
>   Found 2 tests for numpy.lib.polynomial
>   Found 8 tests for numpy.core.records
>   Found 26 tests for numpy.core.numeric
>   Found 4 tests for numpy.lib.index_tricks
>   Found 47 tests for numpy.lib.shape_base
>   Found 0 tests for __main__
> ...................................................................... 
> .................................Warning: invalid value encountered  
> in divide
> ..Warning: invalid value encountered in divide
> ..Warning: divide by zero encountered in divide
> .Warning: divide by zero encountered in divide
> ..Warning: invalid value encountered in divide
> .Warning: divide by zero encountered in divide
> .Warning: divide by zero encountered in divide
> .Warning: divide by zero encountered in divide
> .Warning: divide by zero encountered in divide
> ..Warning: invalid value encountered in divide
> ..Warning: invalid value encountered in divide
> ..Warning: divide by zero encountered in divide
> .Warning: divide by zero encountered in divide
> .Warning: divide by zero encountered in divide
> .Warning: divide by zero encountered in divide
> ........Warning: invalid value encountered in divide
> .Warning: invalid value encountered in divide
> ..Warning: divide by zero encountered in divide
> ...................................................................... 
> ................................................F..................... 
> ............................................................Warning: d 
> ivide by zero encountered in divide
> Warning: divide by zero encountered in divide
> Warning: divide by zero encountered in divide
> Warning: divide by zero encountered in divide
> Warning: divide by zero encountered in divide
> Warning: divide by zero encountered in divide
> Warning: divide by zero encountered in divide
> Warning: divide by zero encountered in divide
> Warning: divide by zero encountered in divide
> .....................Warning: invalid value encountered in sqrt
> Warning: invalid value encountered in log
> Warning: invalid value encountered in log10
> ..Warning: invalid value encountered in sqrt
> Warning: invalid value encountered in sqrt
> Warning: divide by zero encountered in log
> Warning: divide by zero encountered in log
> Warning: divide by zero encountered in log10
> Warning: divide by zero encountered in log10
> Warning: invalid value encountered in arcsin
> Warning: invalid value encountered in arcsin
> Warning: invalid value encountered in arccos
> Warning: invalid value encountered in arccos
> Warning: invalid value encountered in arccosh
> Warning: invalid value encountered in arccosh
> Warning: divide by zero encountered in arctanh
> Warning: divide by zero encountered in arctanh
> Warning: invalid value encountered in divide
> Warning: invalid value encountered in true_divide
> Warning: invalid value encountered in floor_divide
> Warning: invalid value encountered in remainder
> Warning: invalid value encountered in fmod
> ...................................................................... 
> ...................................................................... 
> ...................
> ======================================================================
> FAIL: Ticket #112
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/ 
> python2.4/site-packages/numpy/core/tests/test_regression.py", line  
> 219, in check_longfloat_repr
>     assert(str(a)[1:9] == str(a[0])[:8])
> AssertionError
>
> ----------------------------------------------------------------------
> Ran 516 tests in 1.782s
>
> FAILED (failures=1)
> <unittest.TextTestRunner object at 0x1636ed0>
> >>>
>

Here's the build output:

Planck:/Users/Shared/ToBeRestored/Python/numpy-1.0rc3 bridgman$  
python setup.py build
Running from numpy source directory.
F2PY Version 2_3364
blas_opt_info:
   FOUND:
     extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
     define_macros = [('NO_ATLAS_INFO', 3)]
     extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/ 
vecLib.framework/Headers']

lapack_opt_info:
   FOUND:
     extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
     define_macros = [('NO_ATLAS_INFO', 3)]
     extra_compile_args = ['-faltivec']

running build
running config_fc
running build_src
building py_modules sources
creating build
creating build/src.macosx-10.4-fat-2.4
creating build/src.macosx-10.4-fat-2.4/numpy
creating build/src.macosx-10.4-fat-2.4/numpy/distutils
building extension "numpy.core.multiarray" sources
creating build/src.macosx-10.4-fat-2.4/numpy/core
Generating build/src.macosx-10.4-fat-2.4/numpy/core/config.h
customize NAGFCompiler
customize AbsoftFCompiler
customize IbmFCompiler
Could not locate executable g77
Could not locate executable f77
Could not locate executable f95
customize GnuFCompiler
customize Gnu95FCompiler
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3

compile options: '-I/Library/Frameworks/Python.framework/Versions/2.4/ 
include/python2.4 -Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.4/include/python2.4 -c'
gcc: _configtest.c
gcc _configtest.o -L/Library/Frameworks/Python.framework/Versions/2.4/ 
lib -L/usr/local/lib -L/usr/lib -o _configtest
_configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3

compile options: '-Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.4/include/python2.4 -c'
gcc: _configtest.c
gcc _configtest.o -o _configtest
_configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3

compile options: '-Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.4/include/python2.4 -c'
gcc: _configtest.c
gcc _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3

compile options: '-Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.4/include/python2.4 -c'
gcc: _configtest.c
gcc _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3

compile options: '-Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.4/include/python2.4 -c'
gcc: _configtest.c
gcc _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3

compile options: '-Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.4/include/python2.4 -c'
gcc: _configtest.c
gcc _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3

compile options: '-Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.4/include/python2.4 -c'
gcc: _configtest.c
gcc _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3

compile options: '-Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.4/include/python2.4 -c'
gcc: _configtest.c
gcc _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3

compile options: '-Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.4/include/python2.4 -c'
gcc: _configtest.c
gcc _configtest.o -o _configtest
success!
removing: _configtest.c _configtest.o _configtest
C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3

compile options: '-Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.4/include/python2.4 -c'
gcc: _configtest.c
_configtest.c: In function 'main':
_configtest.c:4: error: 'isnan' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
_configtest.c: In function 'main':
_configtest.c:4: error: 'isnan' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
lipo: can't figure out the architecture type of: /var/tmp//ccpygvET.out
_configtest.c: In function 'main':
_configtest.c:4: error: 'isnan' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
_configtest.c: In function 'main':
_configtest.c:4: error: 'isnan' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
lipo: can't figure out the architecture type of: /var/tmp//ccpygvET.out
failure.
removing: _configtest.c _configtest.o
C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3

compile options: '-Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.4/include/python2.4 -c'
gcc: _configtest.c
_configtest.c: In function 'main':
_configtest.c:4: error: 'isinf' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
_configtest.c: In function 'main':
_configtest.c:4: error: 'isinf' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
lipo: can't figure out the architecture type of: /var/tmp//ccEsTb4T.out
_configtest.c: In function 'main':
_configtest.c:4: error: 'isinf' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
_configtest.c: In function 'main':
_configtest.c:4: error: 'isinf' undeclared (first use in this function)
_configtest.c:4: error: (Each undeclared identifier is reported only  
once
_configtest.c:4: error: for each function it appears in.)
lipo: can't figure out the architecture type of: /var/tmp//ccEsTb4T.out
failure.
removing: _configtest.c _configtest.o
C compiler: gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/ 
MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp  
-mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3

[truncated]



More information about the SciPy-User mailing list