delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/07/10/16:25:27

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:from:to:references:in-reply-to:subject:date
:message-id:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=i9RQTX7bMqkYMdO1xRuBPhZaXaZnYqIv6QnJSxOPlYS
r6xdKa9F14JhcqPeWTr3y3cglAGmegFxNEnVi61QLZ5wlsei1nBUsHJq/n2INeZq
MhHfoREGOdTnHpvXwJlxR+t/63TBJNNT2QAPQfmLi6bAuqyLi/YV1E14s0pP+MYw
=
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:from:to:references:in-reply-to:subject:date
:message-id:mime-version:content-type:content-transfer-encoding;
s=default; bh=CoYXfP4B0lG0gQwTD9q+ifS7mBs=; b=v8rvMmP7prVocwYd8
ivWLfVlP41pHh7DpeQkcTr9wgTqKwRNNTyaN3nBXM3c5HcXdL8D+UFTI5E6uu5tz
l7q3lkLRKzMkSn4j63JBMdEXPV683HUDsUSp4zY0dzi8qiskDDmPWNQnKfv3uQn9
CbKZkWwzwaLWT7+SyNtcG2R2Hs=
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=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*UA:16.0, H*x:16.0, cmd.exe, falling
X-HELO: outmail149115.authsmtp.co.uk
From: "David Allsopp" <David DOT Allsopp AT cl DOT cam DOT ac DOT uk>
To: <cygwin AT cygwin DOT com>
References: <e4cb08a5-3db8-7a0b-edbd-de4fec1fc5fc AT SystematicSw DOT ab DOT ca>
In-Reply-To: <e4cb08a5-3db8-7a0b-edbd-de4fec1fc5fc@SystematicSw.ab.ca>
Subject: RE: Cygwin x86 on Windows 10 ARM64
Date: Tue, 10 Jul 2018 21:25:06 +0100
Message-ID: <004401d4188c$17986b60$46c94220$@cl.cam.ac.uk>
MIME-Version: 1.0
X-Server-Quench: 5490a4f6-847f-11e8-8e1a-9cb654bb2504
X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse
X-AuthRoute: OCd1ZAARAlZ5RRob BmUtCCtbTh09DhZI RxQKKE1TKxwUVhJa I0lFL1x7O0wTWlBf HTVUBhpVUEILHD9q aQpQZRVfY0BMWg9q VAZLQ1FMFQVtHx4A BAAfUx1tdQBZeTA3 YzcZPnMNPkR+d0N7 RABWE28FK2JkYWBO VBZeagtQd1VXfx4Q Yk13AXJcfGxUNHxl QwU5ZW1pYSNlBXYd aRACMlMUCVZbQHY7 QVg9HDMjGlIeD3xr ZzUcDwBAdAMA
X-Authentic-SMTP: 61633634383431.1039:706
X-AuthFastPath: 0 (Was 255)
X-AuthSMTP-Origin: 213.105.212.114/25
X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system.
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id w6AKPQU9029969

Brian Inglis wrote:
> On 2018-07-10 03:51, David Allsopp wrote:
> > I've been trying out the x86 emulation in Microsoft's ARM64 version of
> > Windows 10 1803.
> >
> > I had two issues with Cygwin x86. The first, which is simple, is that
> > Windows doesn't by default create C:\Windows\SysWOW64\drivers\etc
> > which causes /etc/postinstall/base-files-mketc.sh to exit with an
> > error all the time. I wonder if there's a possible workaround to make
> that less intrusive?
> > The error message implies that it may have computed the wrong
> > directory, which it hasn't - it's just that the directory doesn't exist.
> 
> Do C:\Windows\{System32,SysNative,Sys*}\drivers\etc exist under the
> emulator?
> What does "cygpath -SU" show?

cygpath -SU gives /proc/cygdrive/c/Windows/SysWOW64

Checking within C:\Windows\SysWOW64\cmd.exe (i.e. x86 cmd):

C:\Windows\System32\drivers\etc exists and contains expected files
C:\Windows\Sysnative\drivers\etc exists and contains expected files (looks identical to System32, as you'd hope)
C:\Windows\SysArm32\drivers does not contain an etc directory (but wasn't referenced)
C:\Windows\SysWOW64\drivers didn't contain an etc directory (I created one to silence the error)

So perhaps on WOW64 it would be worth falling back to Sysnative if etc isn't found? Or even just using Sysnative by default in WOW64?

> > The other is that all Cygwin binaries are emitting the "Could not
> > compute FAST_CWD pointer" warning.
> 
> It is just a warning and everything should run normally: what would
> normally be an ntdll entry point on x86 is probably a thunk or trampoline
> to
> arm64(ISA)/aarch64(mode)/armv8(design) code.

Does it potentially make anything slower? (being slightly lazy - I could look at the code and see precisely what it's for).


David


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