delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/10/26/10:10:24

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:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=Tm2VhUIQkuN/z/VC
A4W7k7X+V4lWLmAFlgTadZd5dpexcBo30sQppAhxl585G03d55MTlNS+d8fmNcCX
6RYDPtdAAawcxI2WKxoQE+7EVrz6vnCBDZuWYTZXWhg2fBzYahDZgZbb0ZEpK91i
JxG2zw71+mXtjxsXVfv5bd4DgzM=
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:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=ly/DA2Xa8xxeGT3ghGuE4L
C7zyw=; b=MrLnJ/uSSaQ6VTGzW1bYKlKNCaloOQwVz381iosgyy9bT1R3Dy+MLH
MSjQzLRb/u5NIrDTL28ShsLT+J82Iu1IsBwl9s6rsohyR+udTYLQchLFzrm3ftgq
muvosT20cAEHFJ3EygmQnoa5Lf0acdUyff4zPL+6770f2hbw31WiU=
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-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=node's, invest
X-HELO: mailsrv.cs.umass.edu
Reply-To: moss AT cs DOT umass DOT edu
Subject: Re: Can you compile node.js under cygwin?
To: cygwin AT cygwin DOT com
References: <CAEF1h+UX2sqQ2MxbN+wy-dLZQ479JxavVunTD=HYpeSUERRzfQ AT mail DOT gmail DOT com>
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Message-ID: <765cfcf8-1d6e-42ea-ed31-12296e9b23b2@cs.umass.edu>
Date: Sat, 26 Oct 2019 10:09:27 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <CAEF1h+UX2sqQ2MxbN+wy-dLZQ479JxavVunTD=HYpeSUERRzfQ@mail.gmail.com>
X-IsSubscribed: yes

On 10/25/2019 1:37 PM, Cary Lewis wrote:
> I tried to clone the repo, and after running configure, then make I got
> this error:
> 
> make -C out BUILDTYPE=Release V=0
>    touch 12396aa5d0c66cc1eba58d7550d4db5f74c0a51c.intermediate
> 
> LD_LIBRARY_PATH=/home/clewis/node/out/Release/lib.host:/home/clewis/node/out/Release/lib.target:$LD_LIBRARY_PATH;
> export LD_LIBRARY_PATH; cd ../.; mkdir -p tools/msvs/genfiles; "mc
> src/res/node_etw_provider.man -h tools/msvs/genfiles -r tools/msvs/genfiles"
> /bin/sh: mc src/res/node_etw_provider.man -h tools/msvs/genfiles -r
> tools/msvs/genfiles: No such file or directory
> make[1]: *** [node_etw.target.mk:17:
> 12396aa5d0c66cc1eba58d7550d4db5f74c0a51c.intermediate] Error 127
> rm 12396aa5d0c66cc1eba58d7550d4db5f74c0a51c.intermediate
> make: *** [Makefile:101: node] Error 2

This program's configure is not cygwin-aware, apparently.  It sees something
that looks like Windows and it's heading toward msvs (Microsoft Visual Studio),
a Windows program, not a cygwin program.

I tried configure --dest-os=linux, and that mostly worked, but assumes ELF
binaries are being used, but cygwin uses PE, not ELF (so that Windows can
run the binaries linked with the cygwin library / runtime).  So the openssl
assembly files failed.  Using configure --dest-os=linux --openssl-no-asm got
past that problem but fails when trying to find /usr/include/sys/syscall.h,
someting not provided under cygwin.

I also tried not giving --dest-os (and it then wants to do the msvs stuff,
i.e., it treats it as Windows) and --dest-os=posix (which is what uname -a
reports under modern cygwin) to no avail.

So IMO node's configure needs to be adjusted, but how to do that correctly
is beyond my knowledge or the time I can invest.

Eliot Moss

--
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