[MacPorts] #59938: clang-3.7 +universal: Undefined symbols for architecture i386
MacPorts
noreply at macports.org
Sat Jan 11 04:51:31 UTC 2020
#59938: clang-3.7 +universal: Undefined symbols for architecture i386
------------------------------+--------------------
Reporter: TheLastLovemark | Owner: (none)
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: wontfix | Keywords:
Port: clang-3.7 |
------------------------------+--------------------
Comment (by jmroot):
Replying to [comment:9 TheLastLovemark]:
> Does xcode perform the SDK lookup or Macports?
Both. MacPorts looks for the correct SDK in all the usual places, and if
it can't find it, asks Xcode where it is. MacOSX.sdk is used as a last
resort if the correct version can't be found.
However, if you have the Command Line Tools installed on 10.13, then
/usr/include should exist, which should result in ${configure.sdkroot}
being an empty string and no -isysroot flag being used.
> Why does the 10.13.4 SDK work, but not the 10.14? What is different
between the two?
The 10.14 SDK only supports building for x86_64. (Also it exposes symbols
that are only available on 10.14 and later, which means it's a bad idea to
use it to build on 10.13 unless the code being built knows to check for
weak-linked symbols.)
--
Ticket URL: <https://trac.macports.org/ticket/59938#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list