This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cmake fails to run/build under Cygwin
- From: Nick Kennedy <dr dot nick dot kennedy at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 21 Sep 2015 15:38:11 +0100
- Subject: Re: cmake fails to run/build under Cygwin
- Authentication-results: sourceware.org; auth=none
- References: <CAA3P5HMEWibqgdNXc4pazB1wdoBtxcDAbHrHQfHFBi5y925ZMA at mail dot gmail dot com>
On 21/09/2015 13:10, Marco Atzeri wrote:
> on W7 64 I see no issue.
> As you have both cygwin and windows version of cmake on the path
> may be they are interfering each other ?
> I suggest to run "cmake --trace " to see where cmake is
> blocking.
> Have you tested others projects using Cmake ?
> Or it is spinning on every one ?
> Regards
> Marco
Thanks for taking the time to reply. I hadn't used `cmake --trace`
before. When running it, I can see that the process gets stuck in
"/usr/share/cmake-3.3.1/Modules/CMakeDetermineSystem.cmake(48):
exec_program(uname ARGS -s OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_NAME )"
I've manipulated that cmake file to use a static system name, and the
problem now arises in "Modules/CMakeDetermineCompilerId.cmake" at
execute_process(COMMAND ${CMAKE_${lang}_COMPILER}
${CMAKE_${lang}_COMPILER_ID_ARG1}
${CMAKE_${lang}_COMPILER_ID_FLAGS_LIST} ${testflags} ${src}
WORKING_DIRECTORY ${CMAKE_${lang}_COMPILER_ID_DIR} OUTPUT_VARIABLE
CMAKE_${lang}_COMPILER_ID_OUTPUT ERROR_VARIABLE
CMAKE_${lang}_COMPILER_ID_OUTPUT RESULT_VARIABLE
CMAKE_${lang}_COMPILER_ID_RESULT )
It looks as though there is a problem with `execute_process` (and the
deprecated `exec_program`). I haven't tried uninstalling the Win32
version of CMake, but it's definitely the CygWin version that is
running.
Best wishes,
Nick
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple