[CMake] CMake 2.8.8 : Reproducible Crash in Mac OS X 10.8

David Cole david.cole at kitware.com
Fri Aug 10 14:37:44 EDT 2012


Yes, it's true, but now there's extra required beyond simply "installing Xcode".

Brad's partially addressed the problem here today, with this commit,
now in 'next':

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e88bae77c3388a5b474b081e572004f02772d162

However, in order to run on one of these new systems, and get a good
command line build going, you probably have to do something like:

  xcrun bash
  cmake in the "Xcode environment"
  Ctrl+D to go back to the non-Xcode env

So..... just like all the other makefile generators, you have a sane
"build env" at CMake configure time.

Using xcode-select should get us part way there, but now that we have
this new world of command line tools separate from "installing Xcode",
we do have to adapt to it somehow.

Having these emails in the mailing list archive is at least a start to
get people thinking in the right direction.


Cheers,
David


P.S. -- thanks for chiming in and being a little pedantic... good word
for a Friday :-)


On Fri, Aug 10, 2012 at 2:30 PM, Michael Jackson
<mike.jackson at bluequartz.net> wrote:
> I am going to be *very* pedantic here so you may slap me upside the head. The compiler was never "just there" on OS X. It has *always* required the installation of the developer tools. With 10.8 it would seem that installing "Xcode" is not enough to get the command line tools any more. The developer now needs to know to also install the "Command Line Tools" in addition (or in leau of*) Xcode.
>
> About the best CMake-Gui could do is detect you are on OS X 10.8 or greater and ask the developer if they have in fact installed the command line tools or used Xcode-select (or what ever it is) to select the proper version of Xcode. Beyond that we are getting to the point that Windows is at where one is expected to have a fully functioning Visual Studio Command Prompt for CMake to generate Visual Studio Projects. A pain yes, but a fact of life.
>
>
> * There is actually a separate download for the command line tools that it looks like it could be installed without Xcode though I have not actually tried this myself.
>
> Have a nice weekend.
> ___________________________________________________________
> Mike Jackson                    Principal Software Engineer
> BlueQuartz Software                            Dayton, Ohio
> mike.jackson at bluequartz.net              www.bluequartz.net
>
> On Aug 10, 2012, at 1:55 PM, Bill Hoffman wrote:
>
>> On 8/9/2012 6:04 PM, Jerry Krinock wrote:
>>
>>> Although not requiring installation of Xcode's command-line tools
>>> would be nice, at a minimum, CMake's runtime, or at least its
>>> installer, should check for any needed prerequisites and inform the
>>> user if a prerequisite is missing.  I've spent several hours in the
>>> last few days trying to figure out why CMake 2.8.8 just wouldn't work
>>> on a new Mac, until someone pointed out to me that it was necessary
>>> to install Xcode's command-line tools.  The error messages I received
>>> from CMake just added to the confusion.
>>>
>>>
>>
>> Just curious what would an autotools or makefile based project do on a new mac?  I am guessing it will not print anything other than, there is no compiler found.  That said we will try to make cmake print a helpful message or work out of the box.  I am just wondering how other projects are handling the sudden disappearance of the compiler from the command line...  (it has been there since the very first OSX Mac...)
>>
>> -Bill
>>
>> --
>>
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/listinfo/cmake
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list