[Numpy-discussion] numpy rev7353 w/ OS X 10.6
Christopher Hanley
chanley at stsci.edu
Tue Sep 1 22:35:21 EDT 2009
Hi,
Upgraded to Snow Leopard, left setup.py and all environment variables
the same, tried latest numpy from source. This is the build error I
receive:
Running from numpy source directory.
non-existing path in 'numpy/distutils': 'site.cfg'
F2PY Version 2_7353
numpy/core/setup_common.py:81: MismatchCAPIWarning: API mismatch
detected, the C API version numbers have to be updated. Current C api
version is 3, with checksum 4526bc5a07e51d13a2db642715fedca5, but
recorded checksum for C API version 3 in codegen_dir/cversions.txt is
bf22c0d05b31625d2a7015988d61ce5a. If functions were added in the C API,
you have to update C_API_VERSION in numpy/core/setup_common.pyc.
MismatchCAPIWarning)
blas_opt_info:
FOUND:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3)]
extra_compile_args = ['-msse3',
'-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 = ['-msse3']
running install
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands
--compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands
--fcompiler options
running build_src
build_srca
building py_modules sources
creating build
creating build/src.macosx-10.3-i386-2.5
creating build/src.macosx-10.3-i386-2.5/numpy
creating build/src.macosx-10.3-i386-2.5/numpy/distutils
building library "npymath" sources
customize NAGFCompiler
Could not locate executable f95
Found executable /usr/local/bin/gfortran
nag: no Fortran 90 compiler found
Could not locate executable ranlib
nag: no Fortran 90 compiler found
nag: no Fortran 90 compiler found
customize AbsoftFCompiler
Could not locate executable f90
absoft: no Fortran 90 compiler found
absoft: no Fortran 90 compiler found
absoft: no Fortran 90 compiler found
absoft: no Fortran 90 compiler found
absoft: no Fortran 90 compiler found
absoft: no Fortran 90 compiler found
customize IBMFCompiler
Could not locate executable xlf90
ibm: no Fortran 90 compiler found
Could not locate executable xlf95
ibm: no Fortran 90 compiler found
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
intel: no Fortran 90 compiler found
intel: no Fortran 90 compiler found
customize GnuFCompiler
gnu: no Fortran 90 compiler found
Found executable /usr/local/bin/g77
gnu: no Fortran 90 compiler found
/Users/chanley/dev/numpy/numpy/distutils/fcompiler/gnu.py:131:
UserWarning: Env. variable MACOSX_DEPLOYMENT_TARGET set to 10.3
warnings.warn(s)
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using config
C compiler: cc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
compile options: '-Inumpy/core/src -Inumpy/core/src/npymath
-Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include
-I/usr/stsci/pyssgdev/Python-2.5.1/include/python2.5 -c'
cc: _configtest.c
sh: cc: command not found
sh: cc: command not found
failure.
removing: _configtest.c _configtest.o
C compiler: cc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
compile options: '-Inumpy/core/src -Inumpy/core/src/npymath
-Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include
-I/usr/stsci/pyssgdev/Python-2.5.1/include/python2.5 -c'
cc: _configtest.c
sh: cc: command not found
sh: cc: command not found
failure.
removing: _configtest.c _configtest.o
C compiler: cc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp
-mno-fused-madd -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
compile options: '-Inumpy/core/src -Inumpy/core/src/npymath
-Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include
-I/usr/stsci/pyssgdev/Python-2.5.1/include/python2.5 -c'
cc: _configtest.c
sh: cc: command not found
sh: cc: command not found
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
File "setup.py", line 186, in <module>
setup_package()
File "setup.py", line 179, in setup_package
configuration=configuration )
File "/Users/chanley/dev/numpy/numpy/distutils/core.py", line 186, in
setup
return old_setup(**new_attr)
File
"/usr/stsci/pyssgdev/Python-2.5.1/lib/python2.5/distutils/core.py", line
151, in setup
dist.run_commands()
File
"/usr/stsci/pyssgdev/Python-2.5.1/lib/python2.5/distutils/dist.py", line
974, in run_commands
self.run_command(cmd)
File
"/usr/stsci/pyssgdev/Python-2.5.1/lib/python2.5/distutils/dist.py", line
994, in run_command
cmd_obj.run()
File "/Users/chanley/dev/numpy/numpy/distutils/command/install.py",
line 52, in run
r = old_install.run(self)
File
"/usr/stsci/pyssgdev/Python-2.5.1/lib/python2.5/distutils/command/install.py",
line 506, in run
self.run_command('build')
File
"/usr/stsci/pyssgdev/Python-2.5.1/lib/python2.5/distutils/cmd.py", line
333, in run_command
self.distribution.run_command(command)
File
"/usr/stsci/pyssgdev/Python-2.5.1/lib/python2.5/distutils/dist.py", line
994, in run_command
cmd_obj.run()
File "/Users/chanley/dev/numpy/numpy/distutils/command/build.py", line
37, in run
old_build.run(self)
File
"/usr/stsci/pyssgdev/Python-2.5.1/lib/python2.5/distutils/command/build.py",
line 112, in run
self.run_command(cmd_name)
File
"/usr/stsci/pyssgdev/Python-2.5.1/lib/python2.5/distutils/cmd.py", line
333, in run_command
self.distribution.run_command(command)
File
"/usr/stsci/pyssgdev/Python-2.5.1/lib/python2.5/distutils/dist.py", line
994, in run_command
cmd_obj.run()
File "/Users/chanley/dev/numpy/numpy/distutils/command/build_src.py",
line 151, in run
self.build_sources()
File "/Users/chanley/dev/numpy/numpy/distutils/command/build_src.py",
line 162, in build_sources
self.build_library_sources(*libname_info)
File "/Users/chanley/dev/numpy/numpy/distutils/command/build_src.py",
line 297, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "/Users/chanley/dev/numpy/numpy/distutils/command/build_src.py",
line 384, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 590, in get_mathlib_info
mlibs = check_mathlib(config_cmd)
File "numpy/core/setup.py", line 283, in check_mathlib
raise EnvironmentError("math library missing; rerun "
EnvironmentError: math library missing; rerun setup.py after setting the
MATHLIB env variable
Does Python need to be rebuild? I was using 2.5 I downloaded from
python.org.
Thanks,
Chris
--
Christopher Hanley
Senior Systems Software Engineer
Space Telescope Science Institute
3700 San Martin Drive
Baltimore MD, 21218
(410) 338-4338
More information about the NumPy-Discussion
mailing list