View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009746CMakeCMakepublic2009-10-20 15:152009-10-22 09:36
ReporterVladislav Vaintroub 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0009746: Visual Studio 2010 generator does not work with VS2010 Beta2
DescriptionWhen trying to use Visual Studio 2010 generator with the latest VS2010 Beta2,
cmake would report error in "Detecting C compiler ABI info"

-- Building for: Visual Studio 10
-- Check for working C compiler: cl
-- Check for working C compiler: cl -- works
-- Detecting C compiler ABI info
CMake Error: Could not COPY_FILE.
  OutputFile: ''
    copyFile: 'C:/bzr/cm/CMakeFiles/CMakeDetermineCompilerABI_C.bin'

Unable to find executable for try_compile: tried "C:/bzr/cm/CMakeFiles/CMakeTmp/
cmTryCompileExec.exe" and "C:/bzr/cm/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.
exe" and "C:/bzr/cm/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe".

-- Detecting C compiler ABI info - done
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDet
ermineCompilerABI.cmake:40 (FILE):
  file STRINGS file "C:/bzr/cm/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.cm
ake:69 (CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:46 (PROJECT)

TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0018132)
Bill Hoffman (manager)
2009-10-20 17:26

diff -r1.4 CMakeVS10FindMake.cmake
24,27c24,25
< "$ENV{SYSTEMROOT}/Microsoft.NET/Framework/v4.0.20506/"
< c:/WINDOWS/Microsoft.NET/Framework/v4.0.20506/
< "$ENV{SYSTEMROOT}/Microsoft.NET/Framework/v4.0.21006/"
< c:/WINDOWS/Microsoft.NET/Framework/v4.0.21006/
---
> "$ENV{SYSTEMROOT}/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0;CLR Version]/"
> "c:/WINDOWS/Microsoft.NET/Framework/[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\10.0;CLR Version]/"

hoffman@CORRIN ~/My Builds/CMake/Modules
$ cvs commit -m "Better fix for finding the MSBuild that matches the VS 10 install." CMakeVS10FindMake.cmake
Committer: Bill Hoffman <bill.hoffman@kitware.com>
/cvsroot/CMake/CMake/Modules/CMakeVS10FindMake.cmake,v <-- CMakeVS10FindMake.cmake
new revision: 1.5; previous revision: 1.4

OK, this fixed it for me. Although I was not able to get the same error that you got...
(0018134)
Brad King (manager)
2009-10-20 17:33

I can confirm that VS 10 beta1 still works after this change.
(0018140)
Matthäus G. Chajdas (reporter)
2009-10-21 09:23

I can confirm that the fix from Bill.Hoffman fixed it here as well, and I had the same error as the reporter.
(0018176)
Brad King (manager)
2009-10-22 09:36

CMake now builds from scratch and passes all tests using VS2010 Beta2 on my machine.

 Issue History
Date Modified Username Field Change
2009-10-20 15:15 Vladislav Vaintroub New Issue
2009-10-20 15:35 Bill Hoffman Status new => assigned
2009-10-20 15:35 Bill Hoffman Assigned To => Brad King
2009-10-20 15:35 Bill Hoffman Assigned To Brad King => Bill Hoffman
2009-10-20 17:26 Bill Hoffman Note Added: 0018132
2009-10-20 17:33 Brad King Note Added: 0018134
2009-10-21 09:23 Matthäus G. Chajdas Note Added: 0018140
2009-10-22 09:36 Brad King Note Added: 0018176
2009-10-22 09:36 Brad King Status assigned => closed
2009-10-22 09:36 Brad King Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team