[CMake] "cl" is not able to compile -VS2010 C1060: compiler out of heap space

John Drescher drescherjm at gmail.com
Thu Oct 27 08:42:27 EDT 2011


On Thu, Oct 27, 2011 at 8:35 AM, Nelis <neliswillers at gmail.com> wrote:
> Hi
>
> CMake 2.8.6, newly installed VS2010, previously VS2005 (dir renamed for
> now), XPSP3, swap space 5GB.
>
> Running configure freshly after the cache is deleted, on two different
> CMakeLists project files.
>
> CMake Error at C:/Program Files/CMake
> 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
>  The C compiler "cl" is not able to compile a simple test program.
> ...
>  Run Build Command:C:\PROGRA~1\MICROS~2.0\Common7\IDE\devenv.com
>  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec
>  Microsoft (R) Visual Studio Version 10.0.40219.1.
>  1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
> Win32 ------
>  1> testCCompiler.c
>  1>c1 : fatal error C1060: compiler is out of heap space
>  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
> ==========
>  CMake will not be able to correctly generate this project.
> Call Stack (most recent call first):
>  CMakeLists.txt:16 (PROJECT)
>
> The same little cmake test program compiles inside VS2010 IDE.
>
> The CMakeLists project file works on other PCs, but not mine.
>
> Could it be as a result of stuff from previous VS versions lying around?
> - cleaned out all environmental variables
> - renamed VS2005 directory to false name, so that paths to VS2005 won't
> work.
>

I have 5 versions of Visual Studio installed on my 64 bit windows 7
box at work and CMake-2.6.1 still works with the versions of VS I
tested (2008,2010) Did you rename VS2005 before or after you had this
problem?

> Any idea where I can start to search for the solution?
>
> regards
>
> nelis
>
>
>
>
> --
> View this message in context: http://cmake.3232098.n2.nabble.com/cl-is-not-able-to-compile-VS2010-C1060-compiler-out-of-heap-space-tp6936159p6936159.htm
> Sent from the CMake mailing list archive at Nabble.com.
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
John M. Drescher


More information about the CMake mailing list