delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/07/10/17:50:19

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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=ebYNG2kmUQ3NNab2
F1tIWFkJyYm3YIUhIs8MbzcJ0WHlAwQ9zf71bXsE9GiQrly+OHOQ8/Ns5nXyVUI3
rwwmAAfdLyy0TqsDl4AtLRySKX6y2WCQVeV6TuG5Ns5EI/w19Et2ShHunFt+hUt+
RkvwpNqQMdHBa4cJ/jelFPwRFQ4=
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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=KsH4QCagfUDvc6kwyrSu8m
BJG0Y=; b=Yhb+LcVsfpITqZzwFIp/ygnpsSayB6iKOw72huLFEXoG9hKl59SqVl
ktLwpam4/iDW7tEEgi1U2NERn5M8pF57gaIUpHvK2qs6K+kiMZ4mcq52nSl47jdc
TPKI+C/3oNbUJkmCYATyrap51U9C4vFQrKVbWnifgc4k+Np84+Ekk=
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=-0.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_NUMSUBJECT,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*UA:Bat!, H*x:Bat!, H*F:D*yandex.ru, H*Ad:D*ac.uk
X-HELO: forward103p.mail.yandex.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1531259403; bh=0huAvWmXnQCVkpQc0NQ7ulFFjVKRln8LFUbTUlkvGA8=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=gQ490bMmeKwYaAX/D5hlU4aUyLCxOWR4kQxU4cNrPy/LoX5CM5sy6JaSOMlYTTG8w Oa46XuGpIpGmGka/95yAHjT+CSj85TEnP9WtlXgw8zK7PQAaJaR5ZN4l4O9Fu6c9yF VG25s8Emud4BaSgreyTa0BvPxpddkFhWE13agJJc=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1531259401; bh=0huAvWmXnQCVkpQc0NQ7ulFFjVKRln8LFUbTUlkvGA8=; h=Date:From:Reply-To:Message-ID:To:Subject:In-Reply-To:References; b=Y61cgE95ARrJHUNolbmCj504eivS8veAGcfSzd4f0gprjG57AY6kCd9c/La4UzSIx x6rBdbzFYelaGrXqktbF9GZ2egyox9mF0Vs4LMWDkc1tAfJ70zP6at4QgE8umThPwj a93Yxu8WLz31rQ5LXvJxBP6DZNH0MzRCVYDkiiv4=
Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Wed, 11 Jul 2018 00:36:56 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <514216116.20180711003656@yandex.ru>
To: "David Allsopp" <David DOT Allsopp AT cl DOT cam DOT ac DOT uk>, cygwin AT cygwin DOT com
Subject: Re: Cygwin x86 on Windows 10 ARM64
In-Reply-To: <004401d4188c$17986b60$46c94220$@cl.cam.ac.uk>
References: <e4cb08a5-3db8-7a0b-edbd-de4fec1fc5fc AT SystematicSw DOT ab DOT ca> <004401d4188c$17986b60$46c94220$@cl.cam.ac.uk>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, David Allsopp!

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

I'd suggest using Sysnative unconditionally, and fall back to System32 if
Sysnative not found.

A better approach would be to make Cygwin trickery aware and just address real
directories instead of fake ones.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa365743.aspx


-- 
With best regards,
Andrey Repin
Wednesday, July 11, 2018 0:27:31

Sorry for my terrible english...


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