[CMake] Compiler Test Failing on Windows 7

Smith Jack (Ext. - UGIS - UniCredit Group) jack.smith.extern at unicreditgroup.de
Tue Jan 5 08:51:24 EST 2010


"The path is made from a batch script, and cmake is hardcoded to use 32bit on windows in the build scripts."

I'm no expert, but it seems like you must have something wrong in the 'batch script' (or your environment).  It looks like cmake thinks it's running on a AMD64 based system.  I think the OS architecture is *normally* auto-detected, and to mistake a 32 bit OS for a 64 bit one seems like a pretty big error.

Have you examined the script to be sure it's not misbehaving under Windows 7 - perhaps a list of known OSes doesn't include Win7 ?


________________________________
From: Joe L [mailto:superist_joe at yahoo.com]
Sent: Tuesday, January 05, 2010 2:44 PM
To: Smith Jack (Ext. - UGIS - UniCredit Group); cmake at cmake.org
Subject: Re: [CMake] Compiler Test Failing on Windows 7

I deleted the whole build directory before running the build.  There isn't any modifying of the CMakeCache.txt as far as i know.

Joe

________________________________
From: Smith Jack (Ext. - UGIS - UniCredit Group) <jack.smith.extern at unicreditgroup.de>
To: "cmake at cmake.org" <cmake at cmake.org>
Sent: Tue, January 5, 2010 8:24:51 AM
Subject: Re: [CMake] Compiler Test Failing on Windows 7

Do you have a stale CMakeCache.txt file somewhere ?

It's *usually* perfectly safe to delete all occurrences of CMakeCache.txt within a project and have CMake regenerate them.  I say usually, because I have no idea if you are modifying that file for some reason, although the practice is not recommended.

________________________________
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Joe L
Sent: Tuesday, January 05, 2010 2:09 PM
To: cmake at cmake.org
Subject: [CMake] Compiler Test Failing on Windows 7

After upgrading to windows 7, I'm getting errors when trying to run the cmake project generation step.  It seems as though I'm unable to copy a file.  I have the directory as a subdirectory of my users folder, so I didn't think it would be a permissions issue.

Here is the error:
CMake Error: Could not COPY_FILE.
  OutputFile: ''
    copyFile: 'C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeDetermineCompilerABI_C.bin'

Unable to find executable for try_compile: tried "C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/cmTryCompileExec.exe" and "C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe" and "C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe".

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:40 (FILE):
  file STRINGS file
  "C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeDetermineCompilerABI_C.bin"
  cannot be read.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:69 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:3 (PROJECT)


CMake Error: Could not COPY_FILE.
  OutputFile: ''
    copyFile: 'C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeDetermineCompilerABI_CXX.bin'

Unable to find executable for try_compile: tried "C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/cmTryCompileExec.exe" and "C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe" and "C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe".

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:40 (FILE):
  file STRINGS file
  "C:/Users/joe/devel/RUGUD-devel/com.ara.engen.plugins.cpp/build/windows.AMD64.vc.8.release/CMakeFiles/CMakeDetermineCompilerABI_CXX.bin"
  cannot be read.
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:62 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:3 (PROJECT)

Even though the path says AMD64, it's doing a 32-bit build.  The path is made from a batch script, and cmake is hardcoded to use 32bit on windows in the build scripts.

Any ideas on what the problem might be?

Thanks,
Joe


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100105/c8d6b223/attachment.htm>


More information about the CMake mailing list