New issue 2942: Unable to install numpy with pypy3 on MacOS
https://bitbucket.org/pypy/pypy/issues/2942/unable-to-install-numpy-with-pypy3-on

hunch:

Hi,

I am trying to install numpy with pip_pypy3, but I am getting this lengthy 
error. The last section of the error is 
```
...
...

    compile options: '-Inumpy/core/src/common -Inumpy/core/src -Inumpy/core 
-Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath 
-Inumpy/core/src/npysort -I/usr/local/Cellar/pypy3/6.0.0/libexec/include -c'
    cc: _configtest.c
    cc -pthread -arch x86_64 _configtest.o -o _configtest
    ld: library not found for -lgcc_s.10.4
    clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
    failure.
    removing: _configtest.c _configtest.o _configtest.o.d
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File 
"/private/var/folders/22/cp1phkbd42q8dj21sdk2z7m80000gn/T/pip-install-w4eoqdu5/numpy/setup.py",
 line 415, in <module>
        setup_package()
      File 
"/private/var/folders/22/cp1phkbd42q8dj21sdk2z7m80000gn/T/pip-install-w4eoqdu5/numpy/setup.py",
 line 407, in setup_package
        setup(**metadata)
      File 
"/private/var/folders/22/cp1phkbd42q8dj21sdk2z7m80000gn/T/pip-install-w4eoqdu5/numpy/numpy/distutils/core.py",
 line 171, in setup
        return old_setup(**new_attr)
      File 
"/usr/local/Cellar/pypy3/6.0.0/libexec/site-packages/setuptools/__init__.py", 
line 143, in setup
        return distutils.core.setup(**attrs)
      File 
"/usr/local/Cellar/pypy3/6.0.0/libexec/lib-python/3/distutils/core.py", line 
148, in setup
        dist.run_commands()
      File 
"/usr/local/Cellar/pypy3/6.0.0/libexec/lib-python/3/distutils/dist.py", line 
955, in run_commands
        self.run_command(cmd)
      File 
"/usr/local/Cellar/pypy3/6.0.0/libexec/lib-python/3/distutils/dist.py", line 
974, in run_command
        cmd_obj.run()
      File 
"/private/var/folders/22/cp1phkbd42q8dj21sdk2z7m80000gn/T/pip-install-w4eoqdu5/numpy/numpy/distutils/command/install.py",
 line 62, in run
        r = self.setuptools_run()
      File 
"/private/var/folders/22/cp1phkbd42q8dj21sdk2z7m80000gn/T/pip-install-w4eoqdu5/numpy/numpy/distutils/command/install.py",
 line 36, in setuptools_run
        return distutils_install.run(self)
      File 
"/usr/local/Cellar/pypy3/6.0.0/libexec/lib-python/3/distutils/command/install.py",
 line 549, in run
        self.run_command('build')
      File 
"/usr/local/Cellar/pypy3/6.0.0/libexec/lib-python/3/distutils/cmd.py", line 
313, in run_command
        self.distribution.run_command(command)
      File 
"/usr/local/Cellar/pypy3/6.0.0/libexec/lib-python/3/distutils/dist.py", line 
974, in run_command
        cmd_obj.run()
      File 
"/private/var/folders/22/cp1phkbd42q8dj21sdk2z7m80000gn/T/pip-install-w4eoqdu5/numpy/numpy/distutils/command/build.py",
 line 47, in run
        old_build.run(self)
      File 
"/usr/local/Cellar/pypy3/6.0.0/libexec/lib-python/3/distutils/command/build.py",
 line 135, in run
        self.run_command(cmd_name)
      File 
"/usr/local/Cellar/pypy3/6.0.0/libexec/lib-python/3/distutils/cmd.py", line 
313, in run_command
        self.distribution.run_command(command)
      File 
"/usr/local/Cellar/pypy3/6.0.0/libexec/lib-python/3/distutils/dist.py", line 
974, in run_command
        cmd_obj.run()
      File 
"/private/var/folders/22/cp1phkbd42q8dj21sdk2z7m80000gn/T/pip-install-w4eoqdu5/numpy/numpy/distutils/command/build_src.py",
 line 148, in run
        self.build_sources()
      File 
"/private/var/folders/22/cp1phkbd42q8dj21sdk2z7m80000gn/T/pip-install-w4eoqdu5/numpy/numpy/distutils/command/build_src.py",
 line 159, in build_sources
        self.build_library_sources(*libname_info)
      File 
"/private/var/folders/22/cp1phkbd42q8dj21sdk2z7m80000gn/T/pip-install-w4eoqdu5/numpy/numpy/distutils/command/build_src.py",
 line 292, in build_library_sources
        sources = self.generate_sources(sources, (lib_name, build_info))
      File 
"/private/var/folders/22/cp1phkbd42q8dj21sdk2z7m80000gn/T/pip-install-w4eoqdu5/numpy/numpy/distutils/command/build_src.py",
 line 375, in generate_sources
        source = func(extension, build_dir)
      File "numpy/core/setup.py", line 667, in get_mathlib_info
        raise RuntimeError("Broken toolchain: cannot link a simple C program")
    RuntimeError: Broken toolchain: cannot link a simple C program
    
    ----------------------------------------
Command "/usr/local/Cellar/pypy3/6.0.0/bin/pypy3 -u -c "import setuptools, 
tokenize;__file__='/private/var/folders/22/cp1phkbd42q8dj21sdk2z7m80000gn/T/pip-install-w4eoqdu5/numpy/setup.py';f=getattr(tokenize,
 'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/private/var/folders/22/cp1phkbd42q8dj21sdk2z7m80000gn/T/pip-record-kycren62/install-record.txt
 --single-version-externally-managed --compile" failed with error code 1 in 
/private/var/folders/22/cp1phkbd42q8dj21sdk2z7m80000gn/T/pip-install-w4eoqdu5/numpy/
```
System version: MacOS 10.14.2; pip-18.1; setuptools-40.6.3; pypy3(6.0.0). I can 
install cython successfully. Any help would be great. Thanks.


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to