[SciPy-Dev] SciPy build error on macOS

mloning markus.loning at gmail.com
Sat Dec 12 07:39:31 EST 2020


Dear all, 

I have been trying to build SciPy following the online guide but keep running into a compilation error: 

ld: in /Users/mloning/.conda/envs/scipy-dev/lib/python3.7/site-packages/numpy/core/lib/libnpymath.a(npy_math.o), could not parse object file /Users/mloning/.conda/envs/scipy-dev/lib/python3.7/site-packages/numpy/core/lib/libnpymath.a(npy_math.o): 'Unknown attribute kind (61) (Producer: 'LLVM10.0.1' Reader: 'LLVM APPLE_1_1100.0.33.8_0')', using libLTO version 'LLVM version 11.0.0, (clang-1100.0.33.8)' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: Command "gcc -bundle -undefined dynamic_lookup -L/Users/mloning/.conda/envs/scipy-dev/lib -arch x86_64 -L/Users/mloning/.conda/envs/scipy-dev/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.9-x86_64-3.7/scipy/spatial/src/distance_wrap.o -L/Users/mloning/.conda/envs/scipy-dev/lib/python3.7/site-packages/numpy/core/lib -Lbuild/temp.macosx-10.9-x86_64-3.7 -lnpymath -o scipy/spatial/_distance_wrap.cpython-37m-darwin.so" failed with exit status 1

Any idea how to fix this? 

A similar error has also been posted on SO here: https://stackoverflow.com/questions/63428079/scipy-build-fail-on-macos-because-llvm-producer-reader <https://stackoverflow.com/questions/63428079/scipy-build-fail-on-macos-because-llvm-producer-reader>

The related PR that I’m working on is here: https://github.com/scipy/scipy/pull/11911 <https://github.com/scipy/scipy/pull/11911>

Any help is much appreciated! 

Thanks

Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/scipy-dev/attachments/20201212/8a001566/attachment.html>


More information about the SciPy-Dev mailing list