Opened 6 years ago
Closed 6 years ago
#57629 closed defect (invalid)
CMake won't build on MacOS (i386 architecture is deprecated).
Reported by: | hipcrime | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | highsierra | Cc: | michaelld (Michael Dickens) |
Port: | cmake |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Since the most recent update, CMake refuses to build on MacOS. The failure generates tons of output, but the important bit is this:
:info:configure ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS) :info:configure ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd :info:configure ld: dynamic main executables must link with libSystem.dylib for architecture i386 :info:configure clang: error: linker command failed with exit code 1 (use -v to see invocation)
Change History (10)
comment:1 Changed 6 years ago by kencu (Ken)
comment:2 Changed 6 years ago by kencu (Ken)
Cc: | michaelld added |
---|---|
Keywords: | mojave added |
Port: | cmake added |
Resolution: | → wontfix |
Status: | new → closed |
comment:3 Changed 6 years ago by hipcrime
That worked ... thanks!
But now the same error is happening for these ports as well:
gstreamer1-gst-plugins-base @1.14.4+ogg+universal+x11 wine @3.0.3+universal+x11 gtk2 @2.24.32+universal+x11
Is this something that's gone wrong with MacPorts on the latest versions of MacOS?
This error wasn't happening until the most recent MacPort upgrade.
comment:4 Changed 6 years ago by hipcrime
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
That worked ... thanks!
But now the same error is happening for these ports as well:
gstreamer1-gst-plugins-base @1.14.4+ogg+universal+x11 wine @3.0.3+universal+x11 gtk2 @2.24.32+universal+x11
Is this something that's gone wrong with MacPorts on the latest versions of MacOS?
This error wasn't happening until the most recent MacPort upgrade.
comment:5 Changed 6 years ago by kencu (Ken)
Mojave does not support any universal builds, as MacPorts currently stands.
Wine is not available for Mojave 56991 until upstream works out a 64bit version.
Nothing's gone wrong with MacPorts. It's Apple's decision.
comment:7 Changed 6 years ago by kencu (Ken)
Keywords: | highsierra added; mojave removed |
---|
comment:8 Changed 6 years ago by kencu (Ken)
Oh, I am very sorry then. This looked exactly like a mojave error, and there were no logs to look at more closely or information to steer otherwise. I apologize for jumping to that conclusion.
comment:10 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Resolution: | → invalid |
Status: | reopened → closed |
Right. Install the command line tools or downgrade to Xcode 9.4.1. Either one will provide the 10.13 SDK with which you can build universal. Using only Xcode 10 on High Sierra without the command line tools will only get you the 10.14 SDK, with which you cannot build universal at this time.
Although it is in fact possible to get cmake to build +universal on Mojave, with some shenanigans:
the real question is why would anyone want to? There is no useful purpose to having cmake +universal on Mojave, and it's been made quite difficult to do by Apple.
Please disable the +universal build and you should be good to go.
should do it for you.