MantisBT - CMake
View Issue Details
0013147CMakeCMakepublic2012-04-19 05:412016-06-10 14:31
asibilev 
Kitware Robot 
highcrashalways
closedmoved 
CMake 2.8.7 
CMake 2.8.12 
0013147: XCode 4.3 and Unix Makefiles generator
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.
cmake --no-warn-unused-cli -Wno-dev -GUnix Makefiles -DCMAKE_BUILD_TYPE:STRING=release ..
No tags attached.
Issue History
2012-04-19 05:41asibilevNew Issue
2012-04-19 06:26David ColeNote Added: 0029227
2012-04-19 07:24asibilevNote Added: 0029228
2012-04-19 07:25asibilevNote Edited: 0029228bug_revision_view_page.php?bugnote_id=29228#r617
2012-04-23 06:56asibilevNote Added: 0029303
2012-04-23 08:28David ColeNote Added: 0029304
2012-04-23 08:28David ColeAssigned To => David Cole
2012-04-23 08:28David ColeStatusnew => assigned
2012-04-27 05:06asibilevNote Added: 0029354
2012-04-27 05:07asibilevNote Deleted: 0029354
2012-05-12 04:46asibilevNote Added: 0029467
2012-12-03 14:49David ColeTarget Version => CMake 2.8.11
2013-01-09 10:27David ColeAssigned ToDavid Cole =>
2013-01-09 10:27David ColeStatusassigned => new
2013-05-17 09:33Robert MaynardTarget VersionCMake 2.8.11 => CMake 2.8.12
2013-11-07 16:27Anton MakeevNote Added: 0034419
2013-11-07 16:27Anton MakeevNote Edited: 0034419bug_revision_view_page.php?bugnote_id=34419#r1310
2016-06-10 14:28Kitware RobotNote Added: 0042029
2016-06-10 14:28Kitware RobotStatusnew => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0029227)
David Cole   
2012-04-19 06:26   
We run CMake dashboards on a machine called "kamino" here at Kitware, and we are running both Xcode 4.3 and Unix Makefiles builds successfully.

One thing I notice here is that your compiler full path name is:

  /Volumes/Macintosh HD/Applications/Xcode.app/Contents/Developer/usr/bin/gcc

which has a space in it. I wonder if we are missing some double quotes in places where the full path name to the compiler is used... None of our machines have paths that look like that. Typically, it just starts with "/Applications"

Is this a machine that has multiple volumes and you need to disambiguate "/Applications" this way because it's on a volume that's not the default startup volume?
(0029228)
asibilev   
2012-04-19 07:24   
(edited on: 2012-04-19 07:25)
Well, I've updated installation paths of XCode (default for my two-volumes-system..) to /Applications. Now I have another problem with linkage..

ld: library not found for -lcrt1.10.6.o
I'll check for solution..

Anyway, I think there is a problem with missing double quotes in paths..
I don't know, may be to set lower priority/severity of issue.

(0029303)
asibilev   
2012-04-23 06:56   
I've successfuly generated makefiles after installing commandline tools for Xcode 4.3, so no problem with it.
What about this issue regarding space character in path?
(0029304)
David Cole   
2012-04-23 08:28   
I'll try to modify one of our machines here to test out the space in the path issue...
(0029467)
asibilev   
2012-05-12 04:46   
Any update or chance to reproduce?
(0034419)
Anton Makeev   
2013-11-07 16:27   
Same problem with the following steps to reproduce:
* CMake 2.8-11, Xcode 5.0.1, OS X 10.9

* Rename /Applications/Xcode.app to something like "Xcode 5.app"
* execute sudo xcode-select -switch "/Applications/Xcode 5.app/Contents/Developer"
* run generator cmake -G "Unix Makefiles" <project>
=>
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at '.../cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "/usr/bin/cc" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: /Users/anton/Work/sandbox-cppide/_build/CMakeFiles/CMakeTmp

  

  Run Build Command:/usr/bin/make "cmTryCompileExec3612881087/fast"

  /Applications/Xcode 5.app/Contents/Developer/usr/bin/make -f
  CMakeFiles/cmTryCompileExec3612881087.dir/build.make
  CMakeFiles/cmTryCompileExec3612881087.dir/build

  make: /Applications/Xcode: No such file or directory

  make: *** [cmTryCompileExec3612881087/fast] Error 1

  

  

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


-- Configuring incomplete, errors occurred!

(0042029)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.