[MacPorts] #66250: xz on M1 Pro MBP fails to build

MacPorts noreply at macports.org
Sun Nov 13 20:19:28 UTC 2022

#66250: xz on M1 Pro MBP fails to build
 Reporter:  opencoff  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:  2.8.0
 Keywords:  xz arm64  |       Port:  xz
 xz on arm64 macbook pro (Monterey) fails to build.

 configure:5920: checking whether the C compiler works
 configure:5942: /usr/bin/clang -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch arm64
 -arch x8
 ivers_xz/xz/work/xz-5.2.7/src/liblzma/check -I/opt/local/include
 sdk -L/opt/local/lib -Wl,-headerpad_max_install_names
 -arch arm64 -arch x86_64 conftest.c  >&5
 ld: in '/opt/local/lib/libunwind.dylib', building for macOS-x86_64 but
 attempting to link with file built for macOS-arm64
 clang: error: linker command failed with exit code 1 (use -v to see

 Is likely the culprit?

Ticket URL: <https://trac.macports.org/ticket/66250>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list