[cmake-developers] [CMake 0015455]: Xcode 6.2 cannot be detected

Mantis Bug Tracker mantis at public.kitware.com
Wed Mar 18 11:40:53 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15455 
====================================================================== 
Reported By:                qklxtlx
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15455
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-03-18 11:40 EDT
Last Modified:              2015-03-18 11:40 EDT
====================================================================== 
Summary:                    Xcode 6.2 cannot be detected
Description: 
After upgrading to Xcode 6.2 with corresponding command line tools, I cannot
generate xcodeproj any more. Unix Makefile works correctly though.

Steps to Reproduce: 
A simple CMakeLists.txt:
    project(HELLO)
    set(SRC_LIST main.c)
    add_executable(hello ${SRC_LIST})

This is the error log with `cmake -G "Xcode" .`

➜  /Users/anthony/Downloads/test  >cmake -G "Xcode" .
-- 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
CMake Error at
/usr/local/Cellar/cmake/3.2.1/share/cmake/Modules/CMakeTestCCompiler.cmake:61
(message):
  The C compiler
 
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
  is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: /Users/anthony/Downloads/test/CMakeFiles/CMakeTmp



  Run Build
  Command:"/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild"
  "-project" "CMAKE_TRY_COMPILE.xcodeproj" "build" "-target"
  "cmTryCompileExec1075155225" "-configuration" "Debug"

  === BUILD TARGET cmTryCompileExec1075155225 OF PROJECT CMAKE_TRY_COMPILE
  WITH CONFIGURATION Debug ===



  Check dependencies



  Write auxiliary files

  /bin/mkdir -p
 
/Users/anthony/Downloads/test/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec1075155225.build/Objects-normal/x86_64


  write-file
 
/Users/anthony/Downloads/test/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec1075155225.build/Objects-normal/x86_64/cmTryCompileExec1075155225.LinkFileList




  CompileC
 
CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec1075155225.build/Objects-normal/x86_64/testCCompiler.o
  testCCompiler.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler

      cd /Users/anthony/Downloads/test/CMakeFiles/CMakeTmp
      export LANG=en_US.US-ASCII
     
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack
-fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O0
-Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type
-Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function
-Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value
-Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow
-Wno-four-char-constants -Wno-conversion -Wno-constant-conversion
-Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion
-Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DCMAKE_INTDIR=\"Debug\"
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
-fasm-blocks -fstrict-aliasing -Wdeprecated-declarations
-mmacosx-version-min=10.10 -Wno-sign-conversion
-I/Users/anthony/Downloads/test/CMakeFiles/CMakeTmp/Debug/include
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
-I/Users/anthony/Downloads/test/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec1075155225.build/DerivedSources/x86_64
-I/Users/anthony/Downloads/test/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec1075155225.build/DerivedSources
-Wmost -Wno-four-char-constants -Wno-unknown-pragmas
-F/Users/anthony/Downloads/test/CMakeFiles/CMakeTmp/Debug -MMD -MT dependencies
-MF
/Users/anthony/Downloads/test/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec1075155225.build/Objects-normal/x86_64/testCCompiler.d
--serialize-diagnostics
/Users/anthony/Downloads/test/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec1075155225.build/Objects-normal/x86_64/testCCompiler.dia
-c /Users/anthony/Downloads/test/CMakeFiles/CMakeTmp/testCCompiler.c -o
/Users/anthony/Downloads/test/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec1075155225.build/Objects-normal/x86_64/testCCompiler.o



  Ld Debug/cmTryCompileExec1075155225 normal x86_64

      cd /Users/anthony/Downloads/test/CMakeFiles/CMakeTmp
      export MACOSX_DEPLOYMENT_TARGET=10.10
     
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-arch x86_64 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
-L/Users/anthony/Downloads/test/CMakeFiles/CMakeTmp/Debug
-F/Users/anthony/Downloads/test/CMakeFiles/CMakeTmp/Debug -filelist
/Users/anthony/Downloads/test/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec1075155225.build/Objects-normal/x86_64/cmTryCompileExec1075155225.LinkFileList
-mmacosx-version-min=10.10 -Wl,-search_paths_first
-Wl,-headerpad_max_install_names -force_load
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/CoreService.framework/CoreService
-Xlinker -dependency_info -Xlinker
/Users/anthony/Downloads/test/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTryCompileExec1075155225.build/Objects-normal/x86_64/cmTryCompileExec1075155225_dependency_info.dat
-o
/Users/anthony/Downloads/test/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec1075155225

  ld: warning: ObjC object file
 
(/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/CoreService.framework/CoreService)
  was compiled for iOS Simulator, but linking for MacOSX

  ld: framework not found CoreImage for architecture x86_64

  clang: error: linker command failed with exit code 1 (use -v to see
  invocation)



  ** BUILD FAILED **





  The following build commands failed:

  	Ld Debug/cmTryCompileExec1075155225 normal x86_64

  (1 failure)





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:1 (project)


-- Configuring incomplete, errors occurred!
See also "/Users/anthony/Downloads/test/CMakeFiles/CMakeOutput.log".
See also "/Users/anthony/Downloads/test/CMakeFiles/CMakeError.log".

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-03-18 11:40 qklxtlx        New Issue                                    
======================================================================



More information about the cmake-developers mailing list