MantisBT - CMake
View Issue Details
0014918CMakeCMakepublic2014-05-15 17:272014-11-03 08:38
Dave Dyer 
Brad King 
highmajoralways
closedfixed 
windows7 x647
CMake 2.8.12.2 
CMake 3.0CMake 3.0 
0014918: x64 build under cygwin fails
undefined symbol cygwin_conv_to_win32_path

I see in other traffic that this is a deprecated API that's
not available in cygwin64
just try to build it.
No tags attached.
Issue History
2014-05-15 17:27Dave DyerNew Issue
2014-05-16 15:21Brad KingNote Added: 0035893
2014-05-16 15:48Dave DyerNote Added: 0035894
2014-05-16 16:08Brad KingNote Added: 0035895
2014-05-16 16:26Dave DyerNote Added: 0035896
2014-05-16 18:41Dave DyerNote Added: 0035897
2014-05-22 09:47Brad KingNote Added: 0035911
2014-05-22 09:51Brad KingNote Added: 0035912
2014-05-22 09:52Brad KingNote Added: 0035913
2014-05-27 09:25Brad KingAssigned To => Brad King
2014-05-27 09:25Brad KingStatusnew => resolved
2014-05-27 09:25Brad KingResolutionopen => fixed
2014-05-27 09:25Brad KingFixed in Version => CMake 3.0
2014-05-27 09:25Brad KingTarget Version => CMake 3.0
2014-11-03 08:38Robert MaynardNote Added: 0037142
2014-11-03 08:38Robert MaynardStatusresolved => closed

Notes
(0035893)
Brad King   
2014-05-16 15:21   
I've made a change in upstream KWSys to switch away from the deprecated API:

 http://review.source.kitware.com/#/c/15467/ [^]

You can apply that patch locally to proceed. Once it is tested in upstream KWSys I will integrate it into CMake.
(0035894)
Dave Dyer   
2014-05-16 15:48   
Your single file differs quite a bit from the distribution, enough
so it doesn't complile.

  #include KWSYS_HEADER(FStream.hxx)

Is there some repository branch I should pull from?
(0035895)
Brad King   
2014-05-16 16:08   
Re 0014918:0035894: Don't try to copy the file in. Look at the diff and apply the patch by hand if necessary. Otherwise you'll have to wait until the change is integrated into CMake.
(0035896)
Dave Dyer   
2014-05-16 16:26   
Thanks, it builds with the patch manually applied.

There's one other glitch in my build, the configuration decided
that g++-4 was the appropriate compiler, despite the fact that
it doesn't exist. I papered over that problem by linking g++-4 to g++
(0035897)
Dave Dyer   
2014-05-16 18:41   
Its possible that while this patch compiles, it doesn't quite make the grade.
An exercise of the resulting cmake fails in a suspicious way.

$ cmake CMakeDirectoryInformation
CMake Error: The source directory "/cygdrive/c/crossbridge-master/build/win/llvm-debug/lib/Target/AVM2/CMakeFiles/CMakeD
irectoryInformation" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.

# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8

# Relative path conversion top directories.
SET(CMAKE_RELATIVE_PATH_TOP_SOURCE "/cygdrive/c/crossbridge-master/llvm-2.9")
SET(CMAKE_RELATIVE_PATH_TOP_BINARY "/cygdrive/c/crossbridge-master/build/win/llvm-debug")

# Force unix paths in dependencies.
SET(CMAKE_FORCE_UNIX_PATHS 1)


# The C and CXX include file regular expressions for this directory.
SET(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
SET(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
SET(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
SET(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
(0035911)
Brad King   
2014-05-22 09:47   
I've backported the KWSys change from 0014918:0035893 for inclusion in the release branch for 3.0.0-rc6:

 KWSys SystemTools: Port cygwin path conversion to modern API
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e604209c [^]
(0035912)
Brad King   
2014-05-22 09:51   
On my 64-bit Cygwin installation CMake now builds from source and passes all tests.

The string "g++-4" does not appear anywhere in our source so the only way it could have been chosen was if it was specified, perhaps by a CXX environment variable.

The command line "cmake CMakeDirectoryInformation" makes no sense. Please read the command-line manual for instructions:

 http://www.cmake.org/cmake/help/v3.0/manual/cmake.1.html [^]
(0035913)
Brad King   
2014-05-22 09:52   
Further help using CMake can also be obtained by posting to the mailing list:

 http://www.cmake.org/mailman/listinfo/cmake [^]
(0037142)
Robert Maynard   
2014-11-03 08:38   
Closing resolved issues that have not been updated in more than 4 months.