[pypy-issue] [issue1636] Numpy compilation fails with pypy-2.2-osx64

Tibor Kiss tracker at bugs.pypy.org
Sat Nov 16 16:24:00 CET 2013


New submission from Tibor Kiss <tibor.kiss at gmail.com>:

With the latest release Numpy is not shipped with pypy, it needs to be 
installed separately. The blog post suggests two ways to compile numpy, 
both method fails under Mac OS X 10.8.5 with pypy-2.2 with:
AttributeError: 'module' object has no attribute 'get_makefile_filename'

Build log is attached to the ticket.

----------
files: numpy_build_failure_with_pypy-2.2-osx64.txt
messages: 6335
nosy: pypy-issue, tki
priority: bug
release: 2.2
status: unread
title: Numpy compilation fails with pypy-2.2-osx64

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1636>
________________________________________
-------------- next part --------------
xxx at yyy:/private/tmp/numpy % /opt/pypy-2.2-osx64/bin/pypy setup.py install
Running from numpy source directory.
non-existing path in 'numpy/distutils': 'site.cfg'
F2PY Version 2
blas_opt_info:
blas_mkl_info:
  libraries mkl,vml,guide not found in ['/usr/local/lib', '/usr/lib', '/opt/local/lib']
  NOT AVAILABLE

openblas_info:
  libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/opt/local/lib']
  NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
Setting PTATLAS=ATLAS
customize Gnu95FCompiler
Found executable /usr/local/bin/gfortran
Setting PTATLAS=ATLAS
  FOUND:
    libraries = ['atlas', 'ptf77blas', 'ptcblas']
    library_dirs = ['/usr/lib', '/opt/local/lib']
    define_macros = [('NO_ATLAS_INFO', -1)]
    language = c
    include_dirs = ['/opt/local/include']

  FOUND:
    libraries = ['atlas', 'ptf77blas', 'ptcblas']
    library_dirs = ['/usr/lib', '/opt/local/lib']
    language = c
    define_macros = [('NO_ATLAS_INFO', -1)]
    include_dirs = ['/opt/local/include']

non-existing path in 'numpy/lib': 'benchmarks'
lapack_opt_info:
lapack_mkl_info:
mkl_info:
  libraries mkl,vml,guide not found in ['/usr/local/lib', '/usr/lib', '/opt/local/lib']
  NOT AVAILABLE

  NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries ptf77blas,ptcblas,atlas not found in /usr/lib
  libraries lapack_atlas not found in /usr/lib
  libraries lapack_atlas not found in /opt/local/lib
numpy.distutils.system_info.atlas_threads_info
Setting PTATLAS=ATLAS
customize Gnu95FCompiler
Setting PTATLAS=ATLAS
  FOUND:
    libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas']
    library_dirs = ['/opt/local/lib']
    define_macros = [('NO_ATLAS_INFO', -1)]
    language = f77
    include_dirs = ['/opt/local/include']

  FOUND:
    libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas']
    library_dirs = ['/opt/local/lib']
    language = f77
    define_macros = [('NO_ATLAS_INFO', -1)]
    include_dirs = ['/opt/local/include']

/opt/pypy-2.2-osx64/lib-python/2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'define_macros'
  warnings.warn(msg)
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_src
building py_modules sources
building library "npymath" sources
customize Gnu95FCompiler
Traceback (most recent call last):
  File "app_main.py", line 72, in run_toplevel
  File "setup.py", line 192, in <module>
    setup_package()
  File "setup.py", line 185, in setup_package
    configuration=configuration )
  File "/private/tmp/numpy/numpy/distutils/core.py", line 169, in setup
    return old_setup(**new_attr)
  File "/opt/pypy-2.2-osx64/lib-python/2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/opt/pypy-2.2-osx64/lib-python/2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/opt/pypy-2.2-osx64/lib-python/2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/private/tmp/numpy/numpy/distutils/command/install.py", line 57, in run
    r = old_install.run(self)
  File "/opt/pypy-2.2-osx64/lib-python/2.7/distutils/command/install.py", line 573, in run
    self.run_command('build')
  File "/opt/pypy-2.2-osx64/lib-python/2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/opt/pypy-2.2-osx64/lib-python/2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/private/tmp/numpy/numpy/distutils/command/build.py", line 39, in run
    old_build.run(self)
  File "/opt/pypy-2.2-osx64/lib-python/2.7/distutils/command/build.py", line 127, in run
    self.run_command(cmd_name)
  File "/opt/pypy-2.2-osx64/lib-python/2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/opt/pypy-2.2-osx64/lib-python/2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/private/tmp/numpy/numpy/distutils/command/build_src.py", line 153, in run
    self.build_sources()
  File "/private/tmp/numpy/numpy/distutils/command/build_src.py", line 164, in build_sources
    self.build_library_sources(*libname_info)
  File "/private/tmp/numpy/numpy/distutils/command/build_src.py", line 299, in build_library_sources
    sources = self.generate_sources(sources, (lib_name, build_info))
  File "/private/tmp/numpy/numpy/distutils/command/build_src.py", line 386, in generate_sources
    source = func(extension, build_dir)
  File "numpy/core/setup.py", line 672, in get_mathlib_info
    st = config_cmd.try_link('int main(void) { return 0;}')
  File "/opt/pypy-2.2-osx64/lib-python/2.7/distutils/command/config.py", line 248, in try_link
    self._check_compiler()
  File "/private/tmp/numpy/numpy/distutils/command/config.py", line 76, in _check_compiler
    c_compiler=self.compiler)
  File "/private/tmp/numpy/numpy/distutils/fcompiler/__init__.py", line 841, in new_fcompiler
    c_compiler=c_compiler)
  File "/private/tmp/numpy/numpy/distutils/fcompiler/__init__.py", line 816, in get_default_fcompiler
    c_compiler=c_compiler)
  File "/private/tmp/numpy/numpy/distutils/fcompiler/__init__.py", line 765, in _find_existing_fcompiler
    c.customize(dist)
  File "/private/tmp/numpy/numpy/distutils/fcompiler/__init__.py", line 521, in customize
    linker_so_flags = self.flag_vars.linker_so
  File "/private/tmp/numpy/numpy/distutils/environment.py", line 39, in __getattr__
    return self._get_var(name, conf_desc)
  File "/private/tmp/numpy/numpy/distutils/environment.py", line 53, in _get_var
    var = self._hook_handler(name, hook)
  File "/private/tmp/numpy/numpy/distutils/fcompiler/__init__.py", line 700, in _environment_hook
    return hook()
  File "/private/tmp/numpy/numpy/distutils/fcompiler/gnu.py", line 295, in get_flags_linker_so
    flags = GnuFCompiler.get_flags_linker_so(self)
  File "/private/tmp/numpy/numpy/distutils/fcompiler/gnu.py", line 122, in get_flags_linker_so
    filename = sc.get_makefile_filename()
AttributeError: 'module' object has no attribute 'get_makefile_filename'
zsh: exit 1     /opt/pypy-2.2-osx64/bin/pypy setup.py install


More information about the pypy-issue mailing list