* Can you compile node.js under cygwin?
@ 2019-10-25 17:38 Cary Lewis
2019-10-25 19:40 ` [cygwin] " Jason Pyeron
2019-10-26 14:09 ` Eliot Moss
0 siblings, 2 replies; 4+ messages in thread
From: Cary Lewis @ 2019-10-25 17:38 UTC (permalink / raw)
To: cygwin
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
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [cygwin] Can you compile node.js under cygwin?
2019-10-25 17:38 Can you compile node.js under cygwin? Cary Lewis
@ 2019-10-25 19:40 ` Jason Pyeron
2019-10-26 14:09 ` Eliot Moss
1 sibling, 0 replies; 4+ messages in thread
From: Jason Pyeron @ 2019-10-25 19:40 UTC (permalink / raw)
To: cygwin
> -----Original Message-----
> From: Cary Lewis
> Sent: Friday, October 25, 2019 1:38 PM
>
> 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_LI
> BRARY_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
pwd ?
cygpath -wa . ?
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can you compile node.js under cygwin?
2019-10-25 17:38 Can you compile node.js under cygwin? Cary Lewis
2019-10-25 19:40 ` [cygwin] " Jason Pyeron
@ 2019-10-26 14:09 ` Eliot Moss
2019-10-26 21:16 ` Brian Inglis
1 sibling, 1 reply; 4+ messages in thread
From: Eliot Moss @ 2019-10-26 14:09 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Can you compile node.js under cygwin?
2019-10-26 14:09 ` Eliot Moss
@ 2019-10-26 21:16 ` Brian Inglis
0 siblings, 0 replies; 4+ messages in thread
From: Brian Inglis @ 2019-10-26 21:16 UTC (permalink / raw)
To: cygwin
On 2019-10-26 08:09, Eliot Moss wrote:
> 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.
Teach configure to recognize and use system types i686/x86_64-unknown-cygwin and
build/host triplets i686/x86_64-pc-cygwin.
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-10-26 21:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-25 17:38 Can you compile node.js under cygwin? Cary Lewis
2019-10-25 19:40 ` [cygwin] " Jason Pyeron
2019-10-26 14:09 ` Eliot Moss
2019-10-26 21:16 ` Brian Inglis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).