MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014572 | CMake | CMake | public | 2013-11-16 18:24 | 2014-11-03 08:38 |
Reporter | Clinton Stimpson | ||||
Assigned To | Clinton Stimpson | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | Mac | OS | OS X | OS Version | 10.9 |
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0014572: Xcode 4.6 gcc problems on Mac OS X 10.9 | ||||
Description | CMake doesn't work well when trying to use gcc from Xcode 4.6 on Mac OS X 10.9. I've installed Xcode 4.6 from the developer website. Then did xcode-select /Applications/Xcode-4.6.app Running cmake -G Xcode gives CMake Warning at .../Modules/Platform/Darwin.cmake:179 (message): Ignoring CMAKE_OSX_SYSROOT value: /Applications/Xcode-4.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk because the directory does not exist. But, if I want to use the gcc compiler instead, by running: cmake -G Xcode -T com.apple.compilers.llvmgcc42 it gives: -- The C compiler identification is unknown -- The CXX compiler identification is unknown -- Check for working C compiler using: Xcode -- Check for working C compiler using: Xcode -- broken .... To help that, I set export SDKROOT=/Applications/Xcode-4.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk then try again with a clean build dir to get: -- The C compiler identification is unknown -- The CXX compiler identification is unknown -- Check for working C compiler using: Xcode -- Check for working C compiler using: Xcode -- works The compiler id test failed. I go into CMakeFiles/<version>/CompilerIdC and run xcodebuild -project CompierIdC.xcodeproj and it fails to link because of this error: ld: library not found for -lcrt1.10.6.o If the xcodeproj is manually edited to include SDKROOT = "/Applications/Xcode-4.6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk"; Then the problem goes away. Using the Makefile generator didn't have these issues. I could set the environment variables CC, CXX, SDKROOT and things worked fine. CMake knows how to avoid the linker error about not finding -lcrt1.10.6.o when using the Makefile generator by using -sysroot on the compiler id test. The xcode generator needs the same. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-11-16 18:24 | Clinton Stimpson | New Issue | |||
2013-11-18 08:43 | Brad King | Note Added: 0034459 | |||
2013-11-18 10:18 | Brad King | Note Added: 0034462 | |||
2013-11-18 10:29 | Clinton Stimpson | Note Added: 0034463 | |||
2013-11-18 11:17 | Sean McBride | Note Added: 0034469 | |||
2013-11-18 11:41 | Clinton Stimpson | Note Added: 0034471 | |||
2013-11-18 11:45 | Sean McBride | Note Added: 0034472 | |||
2013-12-30 15:34 | Clinton Stimpson | Note Added: 0034890 | |||
2014-04-29 11:34 | Clinton Stimpson | Note Added: 0035803 | |||
2014-04-29 11:43 | Brad King | Note Added: 0035804 | |||
2014-04-30 09:03 | Clinton Stimpson | Note Added: 0035808 | |||
2014-04-30 10:27 | Brad King | Note Added: 0035810 | |||
2014-05-05 15:38 | Clinton Stimpson | Note Added: 0035817 | |||
2014-05-06 11:21 | Clinton Stimpson | Note Added: 0035829 | |||
2014-05-06 11:21 | Clinton Stimpson | Assigned To | => Clinton Stimpson | ||
2014-05-06 11:21 | Clinton Stimpson | Status | new => assigned | ||
2014-05-06 11:21 | Clinton Stimpson | Status | assigned => resolved | ||
2014-05-06 11:21 | Clinton Stimpson | Resolution | open => fixed | ||
2014-11-03 08:38 | Robert Maynard | Note Added: 0037130 | |||
2014-11-03 08:38 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|