[Numpy-discussion] problem compiling v.1.0.3 on a Mac

John Cartwright john.c.cartwright at comcast.net
Sun Jul 1 19:31:25 EDT 2007


I tried to send that last night, but the message was so large that  
it's waiting for approval.  Here's the first part of the output:

Running from numpy source directory.
non-existing path in 'numpy/distutils': 'site.cfg'
F2PY Version 2_3844
blas_opt_info:
( library_dirs = /Library/Frameworks/Python.framework/Versions/2.5/ 
lib:/usr/local/lib:/usr/lib )
   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:
( library_dirs = /Library/Frameworks/Python.framework/Versions/2.5/ 
lib:/usr/local/lib:/usr/lib )
   FOUND:
     extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
     define_macros = [('NO_ATLAS_INFO', 3)]
     extra_compile_args = ['-faltivec']

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
building py_modules sources
building extension "numpy.core.multiarray" sources
Generating build/src.macosx-10.3-fat-2.5/numpy/core/config.h
new_compiler returns distutils.unixccompiler.UnixCCompiler
new_fcompiler returns numpy.distutils.fcompiler.nag.NAGFCompiler
customize NAGFCompiler
NAGFCompiler instance properties:
   archiver        = ['ar', '-cr']
   compile_switch  = '-c'
   compiler_f77    = ['f95', '-fixed', '-O4', '-target=native']
   compiler_f90    = ['f95', '-O4', '-target=native']
   compiler_fix    = ['f95', '-fixed', '-O4', '-target=native']
   libraries       = []
   library_dirs    = []
   linker_so       = ['f95', '-unsharedf95', '-Wl,-bundle,- 
flat_namespace,-
                     undefined,suppress']
   object_switch   = '-o '
   ranlib          = ['ranlib']
   version         = None
   version_cmd     = ['f95', '-V']
customize AbsoftFCompiler
AbsoftFCompiler instance properties:
   archiver        = ['ar', '-cr']
   compile_switch  = '-c'
   compiler_f77    = ['f77', '-N22', '-N90', '-N110', '-f', '-s', '-O']
   compiler_f90    = ['f90', '-YCFRL=1', '-YCOM_NAMES=LCS', '- 
YCOM_PFX', '-
                     YEXT_PFX', '-YCOM_SFX=_', '-YEXT_SFX=_', '-
                     YEXT_NAMES=LCS', '-s', '-O']
   compiler_fix    = ['f90', '-YCFRL=1', '-YCOM_NAMES=LCS', '- 
YCOM_PFX', '-
                     YEXT_PFX', '-YCOM_SFX=_', '-YEXT_SFX=_', '-
                     YEXT_NAMES=LCS', '-f', 'fixed', '-YCFRL=1', '-
                     YCOM_NAMES=LCS', '-YCOM_PFX', '-YEXT_PFX', '- 
YCOM_SFX=_',
                     '-YEXT_SFX=_', '-YEXT_NAMES=LCS', '-s', '-O']
   libraries       = ['fio', 'f90math', 'fmath', 'U77']
   library_dirs    = []
   linker_so       = ['f90', '-K', 'shared']
   object_switch   = '-o '
   ranlib          = ['ranlib']
   version         = None
   version_cmd     = ['f90', '-V -c /tmp/tmpYPRTHr__dummy.f -o
                     /tmp/tmpYPRTHr__dummy.o']
customize IbmFCompiler
IbmFCompiler instance properties:
   archiver        = ['ar', '-cr']
   compile_switch  = '-c'
   compiler_f77    = ['xlf', '-qextname', '-O5']
   compiler_f90    = ['xlf90', '-qextname', '-O5']
   compiler_fix    = ['xlf90', '-qfixed', '-qextname', '-O5']
   libraries       = []
   library_dirs    = []
   linker_so       = ['xlf95', '-Wl,-bundle,-flat_namespace,-
                     undefined,suppress']
   object_switch   = '-o '
   ranlib          = ['ranlib']
   version         = None
   version_cmd     = ['xlf', '-qversion']
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
GnuFCompiler instance properties:
   archiver        = ['ar', '-cr']
   compile_switch  = '-c'
   compiler_f77    = ['f77', '-g', '-Wall', '-fno-second-underscore', '-
                     fPIC', '-O2', '-funroll-loops', '-mcpu=7450', '-
                     mtune=7450']
   compiler_f90    = None
   compiler_fix    = None
   libraries       = ['g2c', 'cc_dynamic']
   library_dirs    = []
   linker_exe      = ['f77', '-g', '-Wall']
   linker_so       = ['f77', '-g', '-Wall', '-undefined',  
'dynamic_lookup', '
                     -bundle']
   object_switch   = '-o '
   ranlib          = ['ranlib']
   version         = None
   version_cmd     = ['f77', '--version']
customize Gnu95FCompiler
Could not locate executable f95
Gnu95FCompiler instance properties:
   archiver        = ['ar', '-cr']
   compile_switch  = '-c'
   compiler_f77    = ['/usr/local/bin/gfortran', '-Wall', '-ffixed- 
form', '-
                     fno-second-underscore', '-fPIC', '-O3', '- 
funroll-loops',
                     '-mcpu=7450', '-mtune=7450']
   compiler_f90    = ['/usr/local/bin/gfortran', '-Wall', '-fno-second-
                     underscore', '-fPIC', '-O3', '-funroll-loops', '-
                     mcpu=7450', '-mtune=7450']
   compiler_fix    = ['/usr/local/bin/gfortran', '-Wall', '-ffixed- 
form', '-
                     fno-second-underscore', '-Wall', '-fno-second- 
underscore',
                     '-fPIC', '-O3', '-funroll-loops', '-mcpu=7450', '-
                     mtune=7450']
   libraries       = ['gfortran']
   library_dirs    = ['/usr/local/lib/gcc/powerpc-apple- 
darwin8.9.0/4.3.0']
   linker_exe      = ['/usr/local/bin/gfortran', '-Wall']
   linker_so       = ['/usr/local/bin/gfortran', '-Wall', '-undefined',
                     'dynamic_lookup', '-bundle']
   object_switch   = '-o '
   ranlib          = ['ranlib']
   version         = LooseVersion ('4.3.0')
   version_cmd     = ['/usr/local/bin/gfortran', '--version']
customize Gnu95FCompiler
Could not locate executable f95
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.5/ 
include/python2.5 -Inumpy/core/src -Inumpy/core/include -I/Library/ 
Frameworks/Python.framework/Versions/2.5/include/python2.5 -c'
gcc: _configtest.c
In file included from _configtest.c:2:
/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/ 
Python.h:18:20: error: limits.h: No such file or directory
...

--john


On Jul 1, 2007, at 4:38 PM, Robert Kern wrote:

> John Cartwright wrote:
>> Thanks for the prompt reply!  By "framework install" I mean the Mac
>> OS X universal installer at www.python.org.  By "stand-alone"  I mean
>> compiled from the source tarball at the same site.
>
> Okay, now can you give us the output of
>
>   $ python setup.py -v build
>
> ?
>
> -- 
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a  
> harmless enigma
>  that is made terrible by our own mad attempt to interpret it as  
> though it had
>  an underlying truth."
>   -- Umberto Eco
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion




More information about the NumPy-Discussion mailing list