[MacPorts] #58114: py37-numpy-1.16.1_0+gfortran+openblas fails to build

MacPorts noreply at macports.org
Sun Mar 3 15:00:13 UTC 2019


#58114: py37-numpy-1.16.1_0+gfortran+openblas fails to build
------------------------+-----------------------
  Reporter:  bakergilx  |      Owner:  michaelld
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.4
Resolution:             |   Keywords:
      Port:  py-numpy   |
------------------------+-----------------------

Comment (by lpsinger):

 Replying to [comment:2 kencu]:
 > {{{
 > :info:build /usr/bin/clang -bundle -undefined dynamic_lookup
 -L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 -arch x86_64
 build/temp.macosx-10.14-x86_64-3.7/numpy/linalg/lapack_litemodule.o
 build/temp.macosx-10.14-x86_64-3.7/numpy/linalg/lapack_lite/python_xerbla.o
 -L/opt/local/lib -Lbuild/temp.macosx-10.14-x86_64-3.7 -L/opt/local/lib
 -lopenblas -lopenblas -o
 build/lib.macosx-10.14-x86_64-3.7/numpy/linalg/lapack_lite.cpython-37m-
 darwin.so -undefined dynamic_lookup -bundle
 > 2588  :info:build ld: invalid option to -undefined [ warning | error |
 suppress | dynamic_lookup ]
 > 2589  :info:build clang: error: linker command failed with exit code 1
 (use -v to see invocation)
 > }}}
 > It looks like the build system needs to wrap all the linker commands in
 `-Wl,` wraps, not just some of them.
 >
 > Specifically, `-Wl,-undefined,dynamic_lookup `

 That worked for me. Thanks! See https://github.com/macports/macports-
 ports/pull/3772.

-- 
Ticket URL: <https://trac.macports.org/ticket/58114#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list