[MacPorts] #67402: Can't build MacPorts on 10.11 with Xcode 8.2.1
MacPorts
noreply at macports.org
Tue May 9 20:23:23 UTC 2023
#67402: Can't build MacPorts on 10.11 with Xcode 8.2.1
--------------------+--------------------
Reporter: catap | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port:
--------------------+--------------------
The last supported Xcode for 10.11 is 8.2.1:
{{
Xcode 8.2.1
Build version 8C1002
}}
My attempt to build MacPorts-2.8.1 on this machine fails as:
{{{
make[2]: Nothing to be done for `all'.
===> staging to destroot in vendor/tcllib
/tmp/macports/MacPorts-2.8.1/vendor/tclsh `echo ./installer.tcl` \
-pkg-path `echo /tmp/macports/MacPorts-2.8.1/vendor
/vendor-destroot/opt/local/libexec/macports/lib/tcllib1.21` \
-no-examples -no-html -no-nroff \
-no-wait -no-gui -no-apps
dyld: lazy symbol binding failed: Symbol not found: _os_unfair_lock_lock
Referenced from:
/tmp/macports/MacPorts-2.8.1/vendor/tcl/unix/libtcl8.6.dylib (which was
built for Mac OS X 10.12)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _os_unfair_lock_lock
Referenced from:
/tmp/macports/MacPorts-2.8.1/vendor/tcl/unix/libtcl8.6.dylib (which was
built for Mac OS X 10.12)
Expected in: /usr/lib/libSystem.B.dylib
make[2]: *** [install-libraries] Trace/BPT trap: 5
make[1]: *** [destroot-tcllib] Error 2
make: *** [all] Error 1
}}}
because it uses `os_unfair_lock_lock` on macOS 10.12+
So, the simple test program:
{{{
#include <AvailabilityMacros.h>
#include <iostream>
int main() {
std::cout << "MAC_OS_X_VERSION_MIN_REQUIRED: " <<
MAC_OS_X_VERSION_MIN_REQUIRED << std::endl;
return 0;
}
}}}
has an output: `MAC_OS_X_VERSION_MIN_REQUIRED: 101200`
BTW`./configure CFLAGS=-mmacosx-version-min=10.11` helps
--
Ticket URL: <https://trac.macports.org/ticket/67402>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list