[cmake-developers] [CMake 0013001]: Compiling CMake with gcc under MinGW-64/MSYS on 64-bit Windows

Mantis Bug Tracker mantis at public.kitware.com
Tue Feb 28 02:05:07 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13001 
====================================================================== 
Reported By:                renes
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13001
Category:                   CMake
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-02-28 02:05 EST
Last Modified:              2012-02-28 02:05 EST
====================================================================== 
Summary:                    Compiling CMake with gcc under MinGW-64/MSYS on
64-bit Windows
Description: 
Changes (see attached patch):

(1) Added code to read HOME environment variable (to get MSYS root) and read
/etc/fstab (to get MinGw-64 path and other fstab entries) to map MSYS paths to
Windows paths.

(2) Added calls to "ConvertToOutputPath" where Windows API file system calls are
made.

(3) Minor changes to handle MinGw-64 C library differences from MinGw.

(4) There are still a few test failures. Some of the MSYS tools do not handle
the Windows paths with forward slashes generated by CMake. For paths used as
arguments to MSYS programs, there needs to be a way in CMake files to request
returning an MSYS path (e.g. /C/foo) instead of a Windows path with forward
slashes (e.g. C:/foo).

Example:

Fails:

cd /C/work/sources/cmake-2.8.7/Tests/ExternalProject/CMakeExternals/Source &&
/C/msys/bin/cvs.exe -d
C:/work/sources/cmake-2.8.7/Tests/ExternalProject/LocalRepositories/CVS -q co
"-D2009-06-26 16:50:00 UTC" -d TutorialStep1-CVS-20090626 TutorialStep1

Works:

cd /C/work/sources/cmake-2.8.7/Tests/ExternalProject/CMakeExternals/Source &&
/C/msys/bin/cvs.exe -d
/C/work/sources/cmake-2.8.7/Tests/ExternalProject/LocalRepositories/CVS -q co
"-D2009-06-26 16:50:00 UTC" -d TutorialStep1-CVS-20090626 TutorialStep1


The following tests FAILED:
         25 - FindPackageTest (Failed)
         99 - ExternalProject (Failed)
        132 - CTest.UpdateSVN (Failed)
        133 - CTest.UpdateCVS (Failed)
        134 - CTest.UpdateHG (Failed)

(5) Since MinGW-64 can be used on Linux to cross-compile for Windows, these
changes need to be tested there as well.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-02-28 02:05 renes          New Issue                                    
2012-02-28 02:05 renes          File Added: cmake-2.8.7-mingw.patch             
      
======================================================================




More information about the cmake-developers mailing list