delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/09/21/10:38:50

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=YSXKmXk
cjGYKVw/uc/VjxKhg3tQtkOIybgGWTg7M1xpqf2pZigpqiVxBdoAQVQRR94UuSU7
5b98EkGtazY9xJiSOZ2KHDpU2Pk/9FE9+S7dU1y1FA6IkdA7A6lEGLoSxRzj02hh
J8o8GMg8L2gN0SazExS+psXArGxAjG1uEunk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; s=default; bh=lN0YAr0HMAOno
wjhjs+91CYSmMc=; b=ImjzKqbX5dofbXCWtmctQzEyNmiY//tEVegbHehva7eSL
4tQICcJSz2kdjGkCzSOfPoeQeHPzrE1B5VgcZmf4fziEM50IwX1Gi5DYa6TKXPn8
YNNIGyJkp+9NFg0ZwRi/MQWfhcAfn/6XsD5f7aBClPdRFfEJpd7yFP85ThlOgk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-ig0-f174.google.com
X-Received: by 10.50.164.199 with SMTP id ys7mr11859629igb.91.1442846310773; Mon, 21 Sep 2015 07:38:30 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <CAA3P5HMEWibqgdNXc4pazB1wdoBtxcDAbHrHQfHFBi5y925ZMA@mail.gmail.com>
References: <CAA3P5HMEWibqgdNXc4pazB1wdoBtxcDAbHrHQfHFBi5y925ZMA AT mail DOT gmail DOT com>
From: Nick Kennedy <dr DOT nick DOT kennedy AT gmail DOT com>
Date: Mon, 21 Sep 2015 15:38:11 +0100
Message-ID: <CAA3P5HPNrvCLCAoLwukbrmrkVNBmRdSjMgMw0O739XxLXY9o=g@mail.gmail.com>
Subject: Re: cmake fails to run/build under Cygwin
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019