MantisBT - CMake
View Issue Details
0011687CMakeCMakepublic2011-01-12 07:322016-06-10 14:31
laurentdk01 
Bill Hoffman 
immediatemajoralways
closedmoved 
Apple Mini Intel Core 2 DuoMac OS X (Snow Leopard)10.6.5
CMake 2.8.3 
 
0011687: Xcode 3.2.5: Unable to build any CMake-based project
                           IMPORTANT REMARK

New version of XCode used: 3.2.5

#====================================================

Trying to build ITK (for example): failing now.
Ditto for trying building CMake, as well as the simple Hello example provided in your packages.

Nothing works now. Likely an incompatibility with the developer tools installed with last version of Xcode (3.2.5 - Nov. 2010).
stdio.h not found and other messages.

Make phase fails.

Unability to build any CMake-based projects.
XCode 3.2.5 was not installed in a standard location: in fact, in /Volumes/External_1/_Ze-Bins/_Xcode, as previous versions of Xcode with which CMake WORKED before.

Testing with older Cmake versions. Same issue.



Kind regards.
No tags attached.
zip FAILURE-SnowLeopard-Example-Hello.zip (203,274) 2011-01-25 11:05
https://public.kitware.com/Bug/file/3654/FAILURE-SnowLeopard-Example-Hello.zip
zip FAILURE-SnowLeopard-ITK.zip (3,820,256) 2011-01-25 11:05
https://public.kitware.com/Bug/file/3655/FAILURE-SnowLeopard-ITK.zip
Issue History
2011-01-12 07:32laurentdk01New Issue
2011-01-12 08:25Brad KingAssigned To => Brad King
2011-01-12 08:25Brad KingStatusnew => assigned
2011-01-12 08:26Brad KingSummaryUnable to build any CMake-based project due to make phase failing (stdio.h not found) - Jan. 12, 2011 => Xcode 3.2.5: Unable to build any CMake-based project
2011-01-12 08:27Brad KingNote Added: 0024615
2011-01-17 11:35Brad KingNote Added: 0024758
2011-01-17 11:35Brad KingStatusassigned => closed
2011-01-17 11:35Brad KingResolutionopen => unable to reproduce
2011-01-18 07:00laurentdk01Note Added: 0024845
2011-01-18 07:00laurentdk01Statusclosed => feedback
2011-01-18 07:00laurentdk01Resolutionunable to reproduce => reopened
2011-01-18 07:18Brad KingNote Added: 0024846
2011-01-18 07:18Brad KingStatusfeedback => closed
2011-01-18 07:18Brad KingResolutionreopened => unable to reproduce
2011-01-18 09:52Bill HoffmanNote Added: 0024854
2011-01-18 12:26Bill HoffmanAssigned ToBrad King => Bill Hoffman
2011-01-18 12:26Bill HoffmanStatusclosed => assigned
2011-01-25 11:05laurentdk01File Added: FAILURE-SnowLeopard-Example-Hello.zip
2011-01-25 11:05laurentdk01File Added: FAILURE-SnowLeopard-ITK.zip
2011-01-25 11:13laurentdk01Note Added: 0025072
2011-01-25 11:28Bill HoffmanNote Added: 0025073
2011-01-25 11:28Bill HoffmanNote Edited: 0025073bug_revision_view_page.php?bugnote_id=25073#r165
2011-01-25 11:30Bill HoffmanNote Edited: 0025073bug_revision_view_page.php?bugnote_id=25073#r166
2011-02-07 05:10laurentdk01Note Added: 0025308
2016-06-10 14:28Kitware RobotNote Added: 0041776
2016-06-10 14:28Kitware RobotStatusassigned => resolved
2016-06-10 14:28Kitware RobotResolutionunable to reproduce => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0024615)
Brad King   
2011-01-12 08:27   
Can you build any project at all, even created through the IDE?

Please consider posting this to our cmake@cmake.org mailing list:

  http://www.cmake.org/mailman/listinfo/cmake [^]

to ask if anyone else has tried this version of Xcode.
(0024758)
Brad King   
2011-01-17 11:35   
I updated my Mac OS X to 10.6.6 and CMake's tests all pass with Xcode.
Then I updated Xcode to 3.2.5 and all the tests still pass.

Your problem must be specific to your setup.
(0024845)
laurentdk01   
2011-01-18 07:00   
Dear Sir:

Thank you for your email.

Still today, CMake regretfully doesn't work. Please what do you mean by my setup ?

Kind regards,


Laurent Delphin
(0024846)
Brad King   
2011-01-18 07:18   
There is something installed incorrectly on your machine.

I closed this as "unable to reproduce" because I cannot reproduce the problem. Xcode 3.2.5 is installed correctly on my machine and everything works. No one else has reported trouble with it, nor have I seen a post on our mailing list as I requested in 0011687:0024615.

I do not think this is a problem with CMake. Try creating a new project in Xcode from scratch through the IDE not using CMake at all. I bet it still won't build. This is not a help forum for Mac OS X or Xcode. Please visit Apple's support forums to ask for help.

If you can come up with real evidence that this is a problem with CMake, such as agreement from others experiencing it through discussion on the mailing list, then please come back and re-open this issue with a link to such discussion. Otherwise, I consider this issue closed from our point of view.
(0024854)
Bill Hoffman   
2011-01-18 09:52   
It might also help, if you provided some errors. What happens when you run cmake? What errors do you see? What is in CMakeError.log and CMakeOutput.log, can you run Xcode projects that are not Cmake based?
(0025072)
laurentdk01   
2011-01-25 11:13   
Dear Sir:

Following your last note ("Can you build any project at all, [...]), please kindly know that everything is going allright but CMake yet: any project created with XCode or autotools was successful, even complex ones.

Please kindly also note that I just included two ZIP files that are proofs or highly probable misoperating of CMake I face currently. The two projects are: i) Hello, found in the example folder of the source code of CMake, and ii) ITK. These ZIP files include: all the CMake directory of the project, a log (ASCII) file generated by make, and TIFF/JPEG images giving you results of CMake issued after Configure and Generate.

Regretfully, CMake doesn't work anymore and I fail to fix this matter.

Hoping you a good receipt.

Yours sincerely,



Laurent Delphin, Dunkerque (EU)
(0025073)
Bill Hoffman   
2011-01-25 11:28   
(edited on: 2011-01-25 11:30)
OK, this is NOT a cmake issue, and this is not the Xcode generator.

Your compiler is not working:

/Volumes/External_1/_IT-GNU/_KITWARE-CMAKE/_Versions/cmake-2.8.3/Example/Hello/hello.cxx:2:19: error: stdio.h: No such file or directory
/Volumes/External_1/_IT-GNU/_KITWARE-CMAKE/_Versions/cmake-2.8.3/Example/Hello/hello.cxx: In member function ‘void Hello::Print()’:
/Volumes/External_1/_IT-GNU/_KITWARE-CMAKE/_Versions/cmake-2.8.3/Example/Hello/hello.cxx:6: error: ‘printf’ was not declared in this scope


This almost certainly is coming from this:
 -isysroot /Volumes/External_1/_Ze-Bins/_Xcode

Which is coming from here:

//The product will be built against the headers and libraries located
// inside the indicated SDK.
CMAKE_OSX_SYSROOT:PATH=/Volumes/External_1/_Ze-Bins/_Xcode


Do you have an environment variable SDKROOT set prior to running CMake?

Try this:

mkdir build
export SDKROOT=
cmake /Volumes/External_1/_IT-GNU/_KITWARE-CMAKE/_Versions/cmake-2.8.3/Example/Hello
make


Also, try this:

create a simple c file, that calls printf and includes stdio.h.

Then compile it without CMake:

gcc -isysroot /Volumes/External_1/_Ze-Bins/_Xcode foo.c

I am guessing that won't work either.

(0025308)
laurentdk01   
2011-02-07 05:10   
I confirm that CMake 2.83 does not work and failed in teh make process.

New way to test this misoperation:
1. Deleted all Cmake items
2. Reinstall CMake (OSX binary) v. 2.8.3
3. Launching CMake 2.8.3.
     Result is: again failure.
4. Deleted again all Cmake items
5. Installed CMake v. 2.6.4.
6. Launched this "old" version of CMake.
     Result is: everything is going allright. The Hell example worked, as well as ITK and VTK builds.

In consequence: I use CMake v. 2.6.4 that runs on Mac OS X Snow Leopard (v. 10.6.6) and XCode v. 3.2.5.


Remark: another step I will be going to try should I have some time: building Cmake v. 2.8.3 with CMake v. 2.6.4.

Kind regards,



Laurent Delphin, Dunkerque (EU)

PS Please kindly do not forget to acknowledge the ZIP files that give you informations about the bug
(0041776)
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.