[CMake] CMake 2.8.8 Upgrade problem with Xcode on OS X 10.8
Etuka Onono
etuka at tesco.net
Thu Aug 9 16:58:58 EDT 2012
Michael and David, thanks for responding. Rest assured that I always truncate my build directory when I come to a sticky halt with Cmake.
Michael, I set a symmlink to /Developer/Applications/Xcode.app as you suggested, but this does not solve my problem (I know David had his doubts, I wanted to try anyway). I do think you are right about it having something to do with information on older issues of Xcode, though, as I have a clean install of Xcode 4.4.1 and Cmake 2.8.8 that works (neither have been upgraded) and I have been as rigorous as I feel I can be in deleting all Cmake artefacts when installing Cmake 2.8.8 (removed anything vaguely related to Cmake in /Library and ~/Library, removed all the symmlinks in /usr/bin, etc).
Thanks,
Etuka Onono
> Date: Thu, 9 Aug 2012 19:52:49 +0000
> From: Michael Toy <michael.toy at onlive.com>
> Subject: Re: [CMake] CMake 2.8.8 Upgrade problem with Xcode on OS X
> 10.8
> To: "cmake at cmake.org" <cmake at cmake.org>
> Message-ID: <CC496251.9E62%michael.toy at onlive.com>
> Content-Type: text/plain; charset="windows-1252"
>
> I have seen this problem as we upgraded from older XCodes. In all the places where cmake looks at your version of Xcode except one, it looks at "xcode-select -print?path". In that one place, it looks in /Developer/Applications/XCode.app. I think this bug is fixed in 2.8.9, and until then you can work around it by placing a symlink from /Developer/Applications/XCode.app to your actual Xcode installation.
>
> From: Etuka Onono <etuka at tesco.net<mailto:etuka at tesco.net>>
> Date: Wednesday, August 8, 2012 5:34 PM
> To: "cmake at cmake.org<mailto:cmake at cmake.org>" <cmake at cmake.org<mailto:cmake at cmake.org>>
> Subject: [CMake] CMake 2.8.8 Upgrade problem with Xcode on OS X 10.8
>
> After I upgraded to OS X 10.8, I recently upgraded my CMake version to 2.8.8.
>
> I can build CMake projects if I use "Unix Makefiles" as a generator, but if I use the Xcode generator, I get the following error:
>
> The C compiler identification is GNU 4.2.1
> The CXX compiler identification is GNU 4.2.1
> Checking whether C compiler has -isysroot
> Checking whether C compiler has -isysroot - yes
> Checking whether C compiler supports OSX deployment target flag
> Checking whether C compiler supports OSX deployment target flag - yes
> Check for working C compiler using: Xcode
> Check for working C compiler using: Xcode -- broken
>
> CMake Error at /Developer/CMake 2.8-8.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
> The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
>
> It fails with the following output:
>
> Change Dir: /Users/etuka/projects/baml/onethousand/build/CMakeFiles/CMakeTmp
>
>
> Run Build Command:/Developer/CMake\ 2.8-8.app/Contents/bin/cmakexbuild
> -project CMAKE_TRY_COMPILE.xcode build -target cmTryCompileExec3395723889
> -buildstyle Development
>
> xcodebuild: error: option '-buildstyle' is no longer supported
>
> I understand that this error is associated with earlier versions of Cmake that are incompatible with Xcode 4.4. I have tried removing all traces of CMake 2.8.8 that I can from my system and re-installing, but I cannot get rid of this error. I would be grateful for suggestions of what to try next.
>
> Thanks,
>
> Etuka Onono
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://www.cmake.org/pipermail/cmake/attachments/20120809/044d2393/attachment-0001.htm>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 9 Aug 2012 16:10:56 -0400
> From: David Cole <david.cole at kitware.com>
> Subject: Re: [CMake] CMake 2.8.8 Upgrade problem with Xcode on OS X
> 10.8
> To: Michael Toy <michael.toy at onlive.com>
> Cc: "cmake at cmake.org" <cmake at cmake.org>
> Message-ID:
> <CAAdwe9X5gZd6VovN-b_1iOCeq9qu26cQrX+VNYD2hDVEOUF_qw at mail.gmail.com>
> Content-Type: text/plain; charset=windows-1252
>
> If that's actually what the problem is here, then it should be fixed
> in CMake 2.8.8.
>
> If you are moving from one Xcode to another, please ALWAYS start over
> with an empty build directory. There are way too many things cached in
> CMakeCache.txt that depend on file locations to even think about
> trying to do an incremental build across a system compiler upgrade ( /
> location change ... )
>
>
> Cheers,
> David
>
>
> On Thu, Aug 9, 2012 at 3:52 PM, Michael Toy <michael.toy at onlive.com> wrote:
>> I have seen this problem as we upgraded from older XCodes. In all the
>> places where cmake looks at your version of Xcode except one, it looks at
>> "xcode-select -print?path". In that one place, it looks in
>> /Developer/Applications/XCode.app. I think this bug is fixed in 2.8.9, and
>> until then you can work around it by placing a symlink from
>> /Developer/Applications/XCode.app to your actual Xcode installation.
>>
>> From: Etuka Onono <etuka at tesco.net>
>> Date: Wednesday, August 8, 2012 5:34 PM
>> To: "cmake at cmake.org" <cmake at cmake.org>
>> Subject: [CMake] CMake 2.8.8 Upgrade problem with Xcode on OS X 10.8
>>
>> After I upgraded to OS X 10.8, I recently upgraded my CMake version to
>> 2.8.8.
>>
>> I can build CMake projects if I use "Unix Makefiles" as a generator, but if
>> I use the Xcode generator, I get the following error:
>>
>> The C compiler identification is GNU 4.2.1
>> The CXX compiler identification is GNU 4.2.1
>> Checking whether C compiler has -isysroot
>> Checking whether C compiler has -isysroot - yes
>> Checking whether C compiler supports OSX deployment target flag
>> Checking whether C compiler supports OSX deployment target flag - yes
>> Check for working C compiler using: Xcode
>> Check for working C compiler using: Xcode -- broken
>>
>> CMake Error at /Developer/CMake
>> 2.8-8.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52
>> (MESSAGE):
>> The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
>>
>> It fails with the following output:
>>
>> Change Dir: /Users/etuka/projects/baml/onethousand/build/CMakeFiles/CMakeTmp
>>
>>
>> Run Build Command:/Developer/CMake\ 2.8-8.app/Contents/bin/cmakexbuild
>> -project CMAKE_TRY_COMPILE.xcode build -target cmTryCompileExec3395723889
>> -buildstyle Development
>>
>> xcodebuild: error: option '-buildstyle' is no longer supported
>>
>> I understand that this error is associated with earlier versions of Cmake
>> that are incompatible with Xcode 4.4. I have tried removing all traces of
>> CMake 2.8.8 that I can from my system and re-installing, but I cannot get
>> rid of this error. I would be grateful for suggestions of what to try next.
>>
>> Thanks,
>>
>> Etuka Onono
>>
>> --
>>
>> 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
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 9 Aug 2012 22:28:44 +0200
> From: Alexander Neundorf <a.neundorf-work at gmx.net>
> Subject: Re: [CMake] Eclipse generator on mac
> To: Alexander Broekhuis <a.broekhuis at gmail.com>
> Cc: cmake at cmake.org
> Message-ID: <201208092228.45002.a.neundorf-work at gmx.net>
> Content-Type: text/plain; charset="iso-8859-6"
>
> On Thursday 09 August 2012, Alexander Broekhuis wrote:
>> Hi
>>
>>> Copy'n paste error, I meant this one:
>>> http://public.kitware.com/Bug/view.php?id=13367
>>>
>>> Can you please look at this one ?
>>
>> No also doesn't look the same. I don't have any missing/incorrect includes
>> other than the 2 mentioned before.
>
> Ah, sorry, I missed the part with the braces.
> Can you please post the output of the following command here ?
> g++ -v -E -x c++ -dD /dev/null
> (or clang if you're using that).
> It would be even better if you could create a bug report at
> http://public.kitware.com/Bug for this and put the information there :-)
>
>> One thing that I noticed, it is important to not have any includes in the
>> CMake files pointing to nothing/empty dirs. For the Makefiles this isn't a
>> problem, but in Eclipse those entries are shown as warnings. But this is a
>> problem of my CMake files, not of CMake/Eclipse.
>>
>>>> * Warnings/Errors are shown three times (Source Directory, Subprojects,
>>>>
>>>> Targets)
>>>>
>>>> What are subproject and targets?
>>
>> Is there something I can do about this? Seeing everything three times is
>> really confusing.
>
> Ah, this is this one:
> http://public.kitware.com/Bug/view.php?id=13189
>
> I thought this would be a good idea but know it seems people are more
> complaining about it than liking it...
>
>>>> * GIT Team Support isn't added to the source project (is this the
>>>> normal
>>>>
>>>> case for SVN?)
>>>
>>> This is a deficiency of Eclipse. I filed a bug report at Eclipse. The
>>> version control plugins are simply not called for files which are not in
>>> a subdir of the project file :-/
>>
>> I am talking about the Source project. Generated
>> using -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE.
>> If I add the team provided myself it all works ok, but this makes it
>> impossible to regenerate the project files. Can CMake add the team provider
>> during generation?
>
> Probably, I'll have a look.
> Can you create a ticket at http://public.kitware.com/Bug for cmake for that ?
>
> Alex
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://www.cmake.org/pipermail/cmake/attachments/20120809/f7d52682/attachment.htm>
>
> ------------------------------
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
> End of CMake Digest, Vol 100, Issue 18
> **************************************
More information about the CMake
mailing list