View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011687CMakeCMakepublic2011-01-12 07:322016-06-10 14:31
Reporterlaurentdk01 
Assigned ToBill Hoffman 
PriorityimmediateSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformApple Mini Intel Core 2 DuoOSMac OS X (Snow Leopard)OS Version10.6.5
Product VersionCMake 2.8.3 
Target VersionFixed in Version 
Summary0011687: Xcode 3.2.5: Unable to build any CMake-based project
Description                           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).
Steps To Reproducestdio.h not found and other messages.

Make phase fails.

Unability to build any CMake-based projects.
Additional InformationXCode 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.
TagsNo tags attached.
Attached Fileszip file icon FAILURE-SnowLeopard-Example-Hello.zip [^] (203,274 bytes) 2011-01-25 11:05
zip file icon FAILURE-SnowLeopard-ITK.zip [^] (3,820,256 bytes) 2011-01-25 11:05

 Relationships

  Notes
(0024615)
Brad King (manager)
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 (manager)
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 (reporter)
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 (manager)
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 (manager)
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 (reporter)
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 (manager)
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 (reporter)
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 (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
2011-01-12 07:32 laurentdk01 New Issue
2011-01-12 08:25 Brad King Assigned To => Brad King
2011-01-12 08:25 Brad King Status new => assigned
2011-01-12 08:26 Brad King Summary Unable 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:27 Brad King Note Added: 0024615
2011-01-17 11:35 Brad King Note Added: 0024758
2011-01-17 11:35 Brad King Status assigned => closed
2011-01-17 11:35 Brad King Resolution open => unable to reproduce
2011-01-18 07:00 laurentdk01 Note Added: 0024845
2011-01-18 07:00 laurentdk01 Status closed => feedback
2011-01-18 07:00 laurentdk01 Resolution unable to reproduce => reopened
2011-01-18 07:18 Brad King Note Added: 0024846
2011-01-18 07:18 Brad King Status feedback => closed
2011-01-18 07:18 Brad King Resolution reopened => unable to reproduce
2011-01-18 09:52 Bill Hoffman Note Added: 0024854
2011-01-18 12:26 Bill Hoffman Assigned To Brad King => Bill Hoffman
2011-01-18 12:26 Bill Hoffman Status closed => assigned
2011-01-25 11:05 laurentdk01 File Added: FAILURE-SnowLeopard-Example-Hello.zip
2011-01-25 11:05 laurentdk01 File Added: FAILURE-SnowLeopard-ITK.zip
2011-01-25 11:13 laurentdk01 Note Added: 0025072
2011-01-25 11:28 Bill Hoffman Note Added: 0025073
2011-01-25 11:28 Bill Hoffman Note Edited: 0025073
2011-01-25 11:30 Bill Hoffman Note Edited: 0025073
2011-02-07 05:10 laurentdk01 Note Added: 0025308
2016-06-10 14:28 Kitware Robot Note Added: 0041776
2016-06-10 14:28 Kitware Robot Status assigned => resolved
2016-06-10 14:28 Kitware Robot Resolution unable to reproduce => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team