[CMake] vs 2k5 express problems

Olaf Petzold ope-devel at gmx.de
Mon Jul 9 09:00:32 EDT 2007


Hi,

the follwing error occour on re-build of cmake:

D:\Temp\dl\cmake-2.4.6-win32-x86\build>..\cmake-2.4.6-win32-x86\bin\cmake.exe -G "NMake Makefiles" ..\cmake-2.4.6\
-- Check for CL compiler version
-- Check for CL compiler version - failed
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - yes
-- Check CL platform
-- Check CL platform - 64 bit
-- Using FREE VC TOOLS, NO DEBUG available
-- Check for working C compiler: C:/Programme/Microsoft Visual Studio 8/VC/BIN/cl.exe
-- Check for working C compiler: C:/Programme/Microsoft Visual Studio 8/VC/BIN/cl.exe -- broken
CMake Error: The C compiler "C:/Programme/Microsoft Visual Studio 8/VC/BIN/cl.exe" is not able to compile a simple test
program.
It fails with the following output:
        nmake -f CMakeFiles\cmTryCompileExec.dir/build.make /nologo -L                  CMakeFiles\cmTryCompileExec.dir\build
        D:\Temp\dl\cmake-2.4.6-win32-x86\cmake-2.4.6-win32-x86\bin\cmake.exe -E cmake_progress_report D:\Temp\dl\cmake-2.4.6-win32-x86\build\CMakeFiles\CMakeTmp\CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.obj
        C:\PROGRA~1\MICROS~1\VC\BIN\cl.exe  @d:\Temp\nm807.tmp
Das angegebene Programm kann nicht ausgeführt werden.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~1\VC\BIN\cl.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Programme\Microsoft Platform SDK for Windows Server 2003 R2\Bin\nmake.exe"' : return code '0x2'
Stop.
CMake will not be able to correctly generate this project.
-- Configuring done

As you can see, I use the prebuild binaries to build a new one. Anyway, calling by hand:

D:\Temp\dl\cmake-2.4.6-win32-x86\build>C:\PROGRA~1\MICROS~1\VC\BIN\cl.exe
Das System kann den angegebenen Pfad nicht finden.

which means can not found the path. Anyway, calling without name path mangeling it works:

D:\Temp\dl\cmake-2.4.6-win32-x86\build>"c:\Programme\Microsoft Visual Studio 8\vc\bin\cl.exe"
Microsoft (R) 32-Bit C/C++-Optimierungscompiler Version 14.00.50727.762 für 80x86
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
Syntax: cl [ Option... ] Dateiname... [ /link Linkeroption... ]

It doesn't matter if I use the Visual Studio 2005 Generator:

D:\Temp\dl\cmake-2.4.6-win32-x86\build>..\cmake-2.4.6-win32-x86\bin\cmake.exe ..\cmake-2.4.6\
-- Using FREE VC TOOLS, NO DEBUG available
-- Check for working C compiler: C:/Programme/Microsoft Visual Studio 8/VC/BIN/cl.exe
-- Check for working C compiler: C:/Programme/Microsoft Visual Studio 8/VC/BIN/cl.exe -- broken
CMake Error: The C compiler "C:/Programme/Microsoft Visual Studio 8/VC/BIN/cl.exe" is not able to compile a simple test
program.
It fails with the following output:
        nmake -f CMakeFiles\cmTryCompileExec.dir/build.make /nologo -L                  CMakeFiles\cmTryCompileExec.dir\build
        D:\Temp\dl\cmake-2.4.6-win32-x86\cmake-2.4.6-win32-x86\bin\cmake.exe -E cmake_progress_report D:\Temp\dl\cmake-2.4.6-win32-x86\build\CMakeFiles\CMakeTmp\CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.obj
        C:\PROGRA~1\MICROS~1\VC\BIN\cl.exe  @d:\Temp\nm981.tmp
Das angegebene Programm kann nicht ausgeführt werden.
NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~1\VC\BIN\cl.exe' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Programme\Microsoft Platform SDK for Windows Server 2003 R2\Bin\nmake.exe"' : return code '0x2'
Stop.
CMake will not be able to correctly generate this project.
-- Configuring done

>From principle point of view, my installation of VS 2k5 Express works and can build binaries!

It seems, the problem is related to the paths used by cmake on win32. Is it bug or does something wrong here at me?

Thanks
Olaf


-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail


More information about the CMake mailing list