[MacPorts] #57629: CMake won't build on MacOS (i386 architecture is deprecated).
MacPorts
noreply at macports.org
Sat Nov 17 22:07:54 UTC 2018
#57629: CMake won't build on MacOS (i386 architecture is deprecated).
-----------------------+------------------------
Reporter: hipcrime | Owner: (none)
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: highsierra
Port: cmake |
-----------------------+------------------------
Comment (by kencu):
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.
In that case, the cmake build error on high sierra that you saw is most
likely happening because of the linker warning that was emitted by the
Xcode 10.1 linker (is it Xcode 10.1 you actually have?? -- have to see the
log again...), complaining about i386 being deprecated.
This warning causes the cmake configuration phase to error out. I saw this
as well, building `cmake +universal` with Xcode 10.1 on Mojave, and I
fixed it by suppressing the warning with this incantation added to the
`cmake` Portfile:
{{{
# suppress ld warnings that cmake doesn't like
configure.ldflags-append -Wl,-w
}}}
I haven't tried it on highsierra building +universal, but I would imagine
it would work there as well (although once again, I can't see a need for
cmake to be +universal as it's a build tool, so it can run natively --
unless someone knows something about a `cmake` library that is used
somehow that needs to be universal that I don't know about).
Regarding your other port failures, well, no idea without the build logs.
Maybe there are already tickets for some or all of them. Otherwise, each
one would need a clean ticket and a build log to have any chance of making
any progress with them.
--
Ticket URL: <https://trac.macports.org/ticket/57629#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list