View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013147CMakeCMakepublic2012-04-19 05:412016-06-10 14:31
Reporterasibilev 
Assigned ToKitware Robot 
PriorityhighSeveritycrashReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 2.8.7 
Target VersionCMake 2.8.12Fixed in Version 
Summary0013147: XCode 4.3 and Unix Makefiles generator
DescriptionHello! 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 Reproducecmake --no-warn-unused-cli -Wno-dev -GUnix Makefiles -DCMAKE_BUILD_TYPE:STRING=release ..
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0029227)
David Cole (manager)
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 (reporter)
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 (reporter)
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 (manager)
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 (reporter)
2012-05-12 04:46

Any update or chance to reproduce?
(0034419)
Anton Makeev (reporter)
2013-11-07 16:27
edited on: 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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2012-04-19 05:41 asibilev New Issue
2012-04-19 06:26 David Cole Note Added: 0029227
2012-04-19 07:24 asibilev Note Added: 0029228
2012-04-19 07:25 asibilev Note Edited: 0029228
2012-04-23 06:56 asibilev Note Added: 0029303
2012-04-23 08:28 David Cole Note Added: 0029304
2012-04-23 08:28 David Cole Assigned To => David Cole
2012-04-23 08:28 David Cole Status new => assigned
2012-04-27 05:06 asibilev Note Added: 0029354
2012-04-27 05:07 asibilev Note Deleted: 0029354
2012-05-12 04:46 asibilev Note Added: 0029467
2012-12-03 14:49 David Cole Target Version => CMake 2.8.11
2013-01-09 10:27 David Cole Assigned To David Cole =>
2013-01-09 10:27 David Cole Status assigned => new
2013-05-17 09:33 Robert Maynard Target Version CMake 2.8.11 => CMake 2.8.12
2013-11-07 16:27 Anton Makeev Note Added: 0034419
2013-11-07 16:27 Anton Makeev Note Edited: 0034419
2016-06-10 14:28 Kitware Robot Note Added: 0042029
2016-06-10 14:28 Kitware Robot Status new => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team