[MacPorts] #44581: cmake fails when a deployment target is set but not a matching SDK
MacPorts
noreply at macports.org
Mon Mar 9 12:35:37 PDT 2015
#44581: cmake fails when a deployment target is set but not a matching SDK
---------------------------------+-------------------------------
Reporter: daniele.pontillo@… | Owner: css@…
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: fixed | Keywords: haspatch yosemite
Port: cmake |
---------------------------------+-------------------------------
Comment (by akarypid@…):
Hello,
I located this bug when investigating a build problem with port that uses
cmake to build; see: https://trac.macports.org/ticket/47062#comment:8
I was actually trying to build octave, which failed due to the gl2ps
library missing, which failed due to CMAKE_OSX_SYSROOT being specified
when running cmake for the gl2ps package.
Any idea what the problem is with the the XCode 6.1 command line tools? I
think that starting with XCode 5 the command line tools are included in
the XCode application. So you don't need to install the separate command-
line tools package (just the XCode GUI will do). The command line tools
are only required if you want to be able to build in a headless
environment.
I've installed XCode GUI and been able to build lots of ports without
issue until now. When I run port I always get a warning:
{{{
$ sudo port install octave
Warning: The Xcode Command Line Tools don't appear to be installed; most
ports will likely fail to build.
Warning: Install them by running `xcode-select --install'.
---> Computing dependencies for octave
...
}}}
...but in fact everything works because the command line tools are present
on the syste:
{{{
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
}}}
It seems that due to the above, macports note detecting the location of
the command line tools, it passes a {{{CMAKE_OSX_SYSROOT="/"}}} to cmake
which causes it to silently break the build...
Currently I've "cheated" by building and installing gl2ps manually... I
was able to build octave normally after that.
--
Ticket URL: <https://trac.macports.org/ticket/44581#comment:92>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list