This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cmake fails to run/build under Cygwin


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]