MantisBT - CMake
View Issue Details
0011913CMakeCMakepublic2011-03-01 08:532016-06-10 14:31
Brendan Wilson 
Kitware Robot 
normalmajoralways
closedmoved 
Intel Pentium D w/ 4GB memoryWindows 7 Home Premium32-bit
CMake 2.8.4 
 
0011913: Cmake default settings for CXX compiler causes out of heap space errors in large and complex projects for VS2010
When building large and complex projects in Visual Studio 10 Cmake's default setting of /Zm1000 in Windows-cl.cmake causes 'error 1060: out of heap space' for systems that have 4GB or less of system memory.
on a 32-bit system with 4GB of memory follow the steps in the following page to set up and autobuild envionment.
Instructions: http://wiki.secondlife.com/wiki/User:Nicky_Perian/Visual_Studio_10_Autobuild [^]
Repositories needed:
      autobuild framwork: https://bitbucket.org/lindenlab/autobuild [^]
   Source Code : https://bitbucket.org/NickyP/viewer-autobuild2010-wip [^]
I have made a work around in Windows-cl.cmake for use in my system and it is the following:
replace line 156 with:

  IF(MSVC10)
    SET(CMAKE_CXX_FLAGS_INIT "/DWIN32 /D_WINDOWS /W3 /EHsc /GR")
  ELSEIF(NOT MSVC10)
    SET(CMAKE_CXX_FLAGS_INIT "/DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR")
  ENDIF(MSVC10)

replace line 172 with:

  IF(MSVC10)
    SET(CMAKE_CXX_FLAGS_INIT "/DWIN32 /D_WINDOWS /W3 /GX /GR")
  ELSEIF(NOT MSVC10)
    SET(CMAKE_CXX_FLAGS_INIT "/DWIN32 /D_WINDOWS /W3 /Zm1000 /GX /GR")
  ENDIF(MSVC10)

replce line 184 with :

  IF(MSVC10)
    SET(CMAKE_CXX_FLAGS_INIT "/DWIN32 /D_WINDOWS /W3 /GX /GR")
  ELSEIF(NOT MSVC10)
    SET(CMAKE_CXX_FLAGS_INIT "/DWIN32 /D_WINDOWS /W3 /Zm1000 /GX /GR")
  ENDIF(MSVC10)
No tags attached.
Issue History
2011-03-01 08:53Brendan WilsonNew Issue
2012-08-11 11:09David ColeStatusnew => backlog
2012-08-11 11:09David ColeNote Added: 0030235
2016-06-10 14:28Kitware RobotNote Added: 0041809
2016-06-10 14:28Kitware RobotStatusbacklog => 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
(0030235)
David Cole   
2012-08-11 11:09   
Sending old, never assigned issues to the backlog.

(The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...)

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
(0041809)
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.