Skip to content

Linking failing on Apple silicon w/ PyPy #510

Open
@Cerebus

Description

@Cerebus

Trying to build for PyPy3.10:

$  pip install "numexpr==2.10.2"
[...]
    running build_ext
      building 'numexpr.interpreter' extension
      creating build/temp.macosx-11.0-arm64-pypy310/numexpr
      g++ -pthread -arch arm64 -DNDEBUG -O2 -fPIC -DNPY_TARGET_VERSION=NPY_1_23_API_VERSION -I/private/var/folders/vj/vkfg28_d3m36zls5s7mf5whh0000gn/T/pip-build-env-io43xb_n/overlay/lib/pypy3.10/site-packages/numpy/_core/include -I/Users/tmiller/.pyenv/versions/pypy3.10-7.3.17/envs/pypy-task-analysis/include -I/Users/tmiller/.pyenv/versions/pypy3.10-7.3.17/include/pypy3.10 -c numexpr/interpreter.cpp -o build/temp.macosx-11.0-arm64-pypy310/numexpr/interpreter.o
      g++ -pthread -arch arm64 -DNDEBUG -O2 -fPIC -DNPY_TARGET_VERSION=NPY_1_23_API_VERSION -I/private/var/folders/vj/vkfg28_d3m36zls5s7mf5whh0000gn/T/pip-build-env-io43xb_n/overlay/lib/pypy3.10/site-packages/numpy/_core/include -I/Users/tmiller/.pyenv/versions/pypy3.10-7.3.17/envs/pypy-task-analysis/include -I/Users/tmiller/.pyenv/versions/pypy3.10-7.3.17/include/pypy3.10 -c numexpr/module.cpp -o build/temp.macosx-11.0-arm64-pypy310/numexpr/module.o
      g++ -pthread -arch arm64 -DNDEBUG -O2 -fPIC -DNPY_TARGET_VERSION=NPY_1_23_API_VERSION -I/private/var/folders/vj/vkfg28_d3m36zls5s7mf5whh0000gn/T/pip-build-env-io43xb_n/overlay/lib/pypy3.10/site-packages/numpy/_core/include -I/Users/tmiller/.pyenv/versions/pypy3.10-7.3.17/envs/pypy-task-analysis/include -I/Users/tmiller/.pyenv/versions/pypy3.10-7.3.17/include/pypy3.10 -c numexpr/numexpr_object.cpp -o build/temp.macosx-11.0-arm64-pypy310/numexpr/numexpr_object.o
      g++ -pthread -arch arm64 -DNDEBUG -O2 -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.macosx-11.0-arm64-pypy310/numexpr/interpreter.o build/temp.macosx-11.0-arm64-pypy310/numexpr/module.o build/temp.macosx-11.0-arm64-pypy310/numexpr/numexpr_object.o -o build/lib.macosx-11.0-arm64-pypy310/numexpr/interpreter.pypy310-pp73-darwin.so
      ld: unknown options: -Bsymbolic-functions
      clang++: error: linker command failed with exit code 1 (use -v to see invocation)
      error: command '/usr/bin/g++' failed with exit code 1
      [end of output]

PyPy is built w/ Apple clang, and I've isolated my build env from homebrew's clang & gcc. Building w/ CC=clang CXX=clang++ yields the same linker error.

I'm probably missing an env var. Pointers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions