[MacPorts] #59938: clang-3.7 +universal: Undefined symbols for architecture i386

MacPorts noreply at macports.org
Fri Jan 10 03:49:13 UTC 2020


#59938: clang-3.7 +universal: Undefined symbols for architecture i386
------------------------------+--------------------
  Reporter:  TheLastLovemark  |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.6.2
Resolution:                   |   Keywords:
      Port:  clang-3.7        |
------------------------------+--------------------

Comment (by TheLastLovemark):

 **I got it to work.**

 I used the official Apple version by extracting macosx10.13.sdk (10.13.4)
 from the XCode 9.4.1 CLT. Not the 10.13 SDK at https://github.com/phracker
 /MacOSX-SDKs

 Then I renamed the default macosx10.14.sdk symlink and the Macosx.sdk
 folder/file.

 Created a symlink for macosx10.13.sdk, then renamed macosx10.13.sdk to
 Macosx.sdk.

 I'm not sure how long the build took, because I fell asleep.

 Also not sure if the build would have worked if I did not rename folders
 (as opposed to the default and non-Apple)

 =======================================================================================================

 **A few questions**

 Does xcode perform the SDK lookup or Macports?

 If Macports, can it be enhanced to look for all SDKs in both paths and not
 just the most recent/default one that comes with the installed version of
 CLT?

 Why does the 10.13.4 SDK work, but not the 10.14? What is different
 between the two?

 Will I have to rename everything so that 10.14 is the default SDK or can I
 leave 10.13.4 in place? Will this cause problems?

 =======================================================================================================

 @Ryan Schmidt: you mentioned: ''Our understanding was that on macOS 10.13
 /Library/Developer/CommandLineTools/SDKs/ should always contain
 MacOSX10.13.sdk, even if you have installed Xcode 10, provided you have
 also installed the macOS 10.13 version of the command line tools. I don't
 know why that appears not to be the case for you.''

 The High Sierra version of CLT available for XCode 10.1 ships with
 macosx10.14.sdk (10.14.x). I upgraded from Xcode 9 to XCode 10 for some
 other problem (I think I had to move from Sierra to HS and was forced to
 upgrade from MP 2.4x to 2.54)

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


More information about the macports-tickets mailing list