MantisBT - CMake
View Issue Details
0013526CMakeCMakepublic2012-09-11 13:312013-03-04 08:38
Nicolas Laurent 
David Cole 
highmajoralways
closedunable to reproduce 
x86Windows7
CMake 2.8.9 
 
0013526: CMAKE_SIZEOF_VOID_P undefined with Visual Studio 11 generator
As the title says. It works with other generators such as NMake or Visual Studio 10. It doesn't matter if the proper environment is set or not (meaning you get the same result running CMake from the Visual Studio command prompt than from any other command prompt or from the GUI).
Use your imagination :)
No tags attached.
? Platform.cmake (2,256) 2012-09-11 13:43
https://public.kitware.com/Bug/file/4477/Platform.cmake
Issue History
2012-09-11 13:31Nicolas LaurentNew Issue
2012-09-11 13:39David ColeNote Added: 0030993
2012-09-11 13:43Nicolas LaurentFile Added: Platform.cmake
2012-09-11 13:47Nicolas LaurentNote Added: 0030994
2012-09-11 13:56Nicolas LaurentNote Edited: 0030994bug_revision_view_page.php?bugnote_id=30994#r828
2012-09-11 13:57Nicolas LaurentNote Edited: 0030994bug_revision_view_page.php?bugnote_id=30994#r829
2012-09-11 18:28Nicolas LaurentNote Added: 0031002
2012-09-11 22:31David ColeAssigned To => David Cole
2012-09-11 22:31David ColeStatusnew => assigned
2012-09-11 22:32David ColeStatusassigned => resolved
2012-09-11 22:32David ColeResolutionopen => unable to reproduce
2013-03-04 08:38Robert MaynardNote Added: 0032446
2013-03-04 08:38Robert MaynardStatusresolved => closed

Notes
(0030993)
David Cole   
2012-09-11 13:39   
If this is true, then how do our CMake dashboards pass all of the whole test suite using the Visual Studio 11 generator on these dashboards:

  http://open.cdash.org/index.php?project=CMake&filtercount=1&showfilters=1&field1=buildname/string&compare1=63&value1=vs11 [^]
(0030994)
Nicolas Laurent   
2012-09-11 13:47   
(edited on: 2012-09-11 13:57)
Might be there is something in our setup causing the bug. Else no idea. I set reproducibility to "Always" thinking "it's always reproduceable on our machine", but that's perhaps not what was meant. Sorry if that's the case.

I'm uploading the infringing file.
The execution hits this line:
    message(FATAL_ERROR "Pointers are neither 4 or 8 bytes. WTF ?")
And printing the variable reveals it is empty.

On the system where we tested this, the NMake generator worked fine.
The VS 10 generator was actually tested on another system.
I might install VS11 on that machine and try it out.

(0031002)
Nicolas Laurent   
2012-09-11 18:28   
Tested it on the other machine, and it works fine. I'd be grateful if someone can mark the issue as non-reproducible.

We're investigating what's going on and will let you know if we find out.
(0032446)
Robert Maynard   
2013-03-04 08:38   
Closing resolved issues that have not been updated in more than 4 months.