[cmake-developers] [CMake 0013147]: XCode 4.3 and Unix Makefiles generator

Mantis Bug Tracker mantis at public.kitware.com
Thu Apr 19 05:41:30 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13147 
====================================================================== 
Reported By:                asibilev
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13147
Category:                   CMake
Reproducibility:            always
Severity:                   crash
Priority:                   high
Status:                     new
====================================================================== 
Date Submitted:             2012-04-19 05:41 EDT
Last Modified:              2012-04-19 05:41 EDT
====================================================================== 
Summary:                    XCode 4.3 and Unix Makefiles generator
Description: 
Hello! Tested on 2.8.7 and just downloaded 2.8.8 - the same problem.
When I use "Xcode" generator all works fine.
But when I use "Unix Makefiles" - it crashes like this:

-- 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: /Volumes/Macintosh
HD/Applications/Xcode.app/Contents/Developer/usr/bin/gcc
-- Check for working C compiler: /Volumes/Macintosh
HD/Applications/Xcode.app/Contents/Developer/usr/bin/gcc -- broken
CMake Error at
/Users/ippbuild/ipp-samples_infra/cmake-2.8.8-Darwin64-universal/CMake
2.8-8.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52
(MESSAGE):
  The C compiler "/Volumes/Macintosh
  HD/Applications/Xcode.app/Contents/Developer/usr/bin/gcc" is not able to
  compile a simple test program.
 
  It fails with the following output:
 
   Change Dir: <...>/CMakeFiles/CMakeTmp
    
  Run Build Command:/Volumes/Macintosh\
  HD/Applications/Xcode.app/Contents/Developer/usr/bin/make
  "cmTryCompileExec2032095717/fast"
 
  /Volumes/Macintosh
  HD/Applications/Xcode.app/Contents/Developer/usr/bin/make -f
  CMakeFiles/cmTryCompileExec2032095717.dir/build.make
  CMakeFiles/cmTryCompileExec2032095717.dir/build
 
  make: /Volumes/Macintosh: No such file or directory
  make: *** [cmTryCompileExec2032095717/fast] Error 1
  
  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)
  
-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found.  Stop.

The problem is in that this is default Xcode installation.
It's critical for us, we are preparing release, which will use CMake.


Steps to Reproduce: 
cmake --no-warn-unused-cli -Wno-dev -GUnix Makefiles
-DCMAKE_BUILD_TYPE:STRING=release ..

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-04-19 05:41 asibilev       New Issue                                    
======================================================================




More information about the cmake-developers mailing list