[CMake] Unable to compile a simple test program

Lars Nygard lnygard at yahoo.com
Fri Jun 15 16:04:04 EDT 2007


Hi,
Thanks for that link to the latest version. It didn't help me unfortunately, Im getting
the same error. Other suggestion are welcome.
I just tried Express Visual Studio 2008, and didn't work either. Here is the error
message:
-----------------------------------------------------------------------------
CMake Error: Error in configuration process, project files may be invalid
_______________________________________
 
More error report is below. It's somewhat similar to what I get in VS 2003:
Compiler broken and not able to compile a simple test program.
Id really appreciate any help with this.
thanks in advance,
lars

Determining if the C compiler works failed with the following output:

Microsoft (R) Visual C++ Express Edition Version 8.0.50727.42.
Copyright (C) Microsoft Corp 1984-2005. All rights reserved.
------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
Checking Build System
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 8/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 8/VC/bin/cl.exe -- broken
CMake Error: The C compiler "C:/Program Files/Microsoft Visual Studio 8/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
 
CMake will not be able to correctly generate this project.
-- Configuring done
Build log was saved at "file://c:\Inisght\Binaries\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\ZERO_CHECK.dir\Debug\BuildLog.htm"
ZERO_CHECK - 0 error(s), 0 warning(s)
------ Build started: Project: cmTryCompileExec, Configuration: Debug Win32 ------
cmTryCompileExec : error PRJ0005 : Unable to create a temporary file in directory 'c:\Inisght\Binaries\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug'.
cmTryCompileExec : error PRJ0004 : Could not generate command line for the 'VCCustomBuildTool' tool.
Build log was saved at "file://c:\Inisght\Binaries\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"
cmTryCompileExec - 2 error(s), 0 warning(s)
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
CMake will not be able to correctly generate this project.
-- Configuring done
Build log was saved at "file://c:\Inisght\Binaries\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\ZERO_CHECK.dir\Debug\BuildLog.htm"
ZERO_CHECK - 2 error(s), 0 warning(s)
------ Build started: Project: cmTryCompileExec, Configuration: Debug Win32 ------
Building Custom Rule C:/Inisght/Binaries/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp/CMakeLists.txt
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 8/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 8/VC/bin/cl.exe -- broken
CMake Error: The C compiler "C:/Program Files/Microsoft Visual Studio 8/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
 



----- Original Message ----
From: David Cole <david.cole at kitware.com>
To: Lars Nygard <lnygard at yahoo.com>
Cc: cmake at cmake.org
Sent: Friday, June 15, 2007 11:38:23 AM
Subject: Re: [CMake] Unable to compile a simple test program

Bill's release candidate email to the list earlier this month (including the download link and change descriptions) is in the list archives:

http://www.cmake.org/pipermail/cmake/2007-June/014461.html 



On 6/15/07, Lars Nygard <lnygard at yahoo.com> wrote:
Hi David,
 
Thaks for your email. I tried what you said but I still get the same error.
Where can I download cmake 2.4.7? The latest version on the site is
2.4.6...
greets,
Lars Nygard


----- Original Message ----
From: David Cole < david.cole at kitware.com>
To: Lars Nygard <lnygard at yahoo.com>
Cc: cmake at cmake.org
Sent: Friday, June 15, 2007 10:47:28 AM
Subject: Re: [CMake] Unable to compile a simple test program

This file name: ...
c:\Documents and Settings\lars\Desktop\Insight Toolkit\myPrograms\ImageRegist 
rationBin\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug 
...is 254 characters long. 


Try a shorter initial directory for your source and build trees. Also: perhaps try updating to CMake 2.4.7, it has some bug fixes in it that may prevent the occurrence of ridiculously long file names during try compiles... 


HTH,
David



On 6/15/07, Lars Nygard <lnygard at yahoo.com > wrote: 
Hi,

Im having some problems with cmake and Visual studio 2003 .NET. It has worked
good some time, but a few weeks I suddenly got "unable to compile a simple test program".
When I re-install visual studio, it sometimes works for a while but after a few configuration 
i get this error. I can't understand what's wrong. 
Ive tried re-installing windows, cmake and visual studio several times but this error is coming
back.
Can anybody give me some advice on how to analyse what's wrong? Im not that profficient 
with either configuring visual studio or cmake. 
Id really appreciate any help.
regards,
Lars Nygard

Im using Visual Studio .NET 2003, Window XP service pack2 (with all latest updates)
and Cmake 2.4 patch 6 
This is part of the error file from cmake.
******************************************************************************
Determining if the C compiler works failed with the following output:

Building Custom Rule C:/Documents and Settings/lars/Desktop/Insight Toolkit/myPrograms/ImageRegistrationBin/CMakeFiles/CMakeTmp/CMakeLists.txt 
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/bin/cl.exe
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/bin/cl.exe -- broken
CMake Error: The C compiler "C:/Program Files/Microsoft Visual Studio .NET 2003/Vc7/bin/cl.exe" is not able to compile a simple test program. 
It fails with the following output:
Microsoft (R) Development Environment  Version 7.10.3077.
Copyright (C) Microsoft Corp 1984-2001. All rights reserved.
------ Build started: Project: cmTryCompileExec, Configuration: Debug Win32 ------ 
cmTryCompileExec : warning PRJ0009 : Build log could not be opened for writing.
Make sure that the file is not open by another process and is not write-protected.
cmTryCompileExec : error PRJ0020 : Tool 'C/C++', Property 'Object File Name' contains invalid file name ' cmTryCompileExec.dir\Debug\testCCompiler.c'.
cmTryCompileExec : error PRJ0005 : Unable to create a temporary file in directory 'c:\Documents and Settings\lars\Desktop\Insight Toolkit\myPrograms\ImageRegistrationBin\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug'. 

Build log was saved at "file://c:\Documents and Settings\lars\Desktop\Insight Toolkit\myPrograms\ImageRegistrationBin\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\Build" 
cmTryCompileExec - 2 error(s), 1 warning(s)
---------------------- Done ----------------------

    Build: 0 succeeded, 1 failed, 0 skipped

CMake will not be able to correctly generate this project.
-- Configuring done
Compiling... 
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
cl /Od /D "_MBCS" /FD /RTCs /MDd /GS /Fo" cmTryCompileExec.dir\Debug\\ " /Fd"Debug/cmTryCompileExec.pdb" /W3 /c /Zi /TC    /DWIN32 /D_WINDOWS  /Zm1000   /D_DEBUG        -DCMAKE_INTDIR=\"Debug\"
   ".\testCCompiler.c"
testCCompiler.c 
Linking...
Microsoft (R) Incremental Linker Version 7.10.3077
Copyright (C) Microsoft Corporation.  All rights reserved.
"/OUT:Debug\cmTryCompileExec.exe" /VERSION:0.0 /INCREMENTAL /DEBUG "/PDB:Debug\cmTryCompileExec.pdb" /SUBSYSTEM:CONSOLE /STACK:10000000 /machine:I386 /debug kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
".\cmTryCompileExec.dir\Debug\testCCompiler.obj" 

Build log was saved at "file://c:\Documents and Settings\lars\Desktop\Insight Toolkit\myPrograms\ImageRegistrationBin\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm" 
cmTryCompileExec - 2 error(s), 1 warning(s)
---------------------- Done ----------------------





_________________________________________________________
Alt i én. Få Yahoo! Mail med adressekartotek, kalender og 
notisblokk. http://no.mail.yahoo.com
_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake









Alt i én. Få Yahoo! Mail med adressekartotek, kalender og notisblokk.


	
	
		
_________________________________________________________
Alt i én. Få Yahoo! Mail med adressekartotek, kalender og
notisblokk. http://no.mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070615/00ccb1d3/attachment.htm


More information about the CMake mailing list