X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24ADF3938C15
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1588814413;
	bh=ZVIt44i9ezX19U1OFIW9cdR2ooa2LB+Z5ISKM0r2HeQ=;
	h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=C0X/t3gXqKBkVN3Y01TesxpAToV+D1aZE72Ncz2n9Sge4+9lCt2KFsUTIeshRySQX
	 Rjr1p5xX/fClx9eth29mAb2BbxcBPYE71F/SSlPWIhQyZUC0dqNxjz5Q0pGpeTTX/B
	 I35wPcHzf+oq+ZOSpmpG3ENixTF7T2cdNCkijn9w=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AEC9D3938C15
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to;
 bh=WyGLB0WWrgzL5y82X12hlH+OTZqFInBlRJ1npZlTNNk=;
 b=Y+roUrMVHFy1oAr1MlootIOj2xEhAQAIC/uuPm5evzS2bl/NgENH0Cz3Svex007bbd
 23RdDhoP7xOxv+JVWpAL3fvdEVV6Qbb5CSOsK0aQKvISsGg1+YV0aqPFMNLM4Aw4/I2p
 lOLhktQtyojey0WnU34XPezz20gFG8rO719PrVgWwY9kVDDVsF9O5Bl7q4M0o8yEXZ7h
 uTpZq3aV55ZoihlYMMupZy4kWkIukE3gQDC0OLMrHiPrtql1hSnK/P5rvviNy2v6R5Y2
 pRkHGHWiMz9ljfVRDdFWrlVtXRH53VOO/z5hJjknwmK8GtDxuAMleeQpkvp9bUYbkr4Y
 eKxg==
X-Gm-Message-State: AGi0PuagnxepjXkth79Xb8ufkMbO1sxpnEMMwBitluwlYG8PR7t6lLJ+
 nsNPQmIq5dsP+r9LOu7dzdj63yHCrXcZQ0XwrErG+Ekkx/M=
X-Google-Smtp-Source: APiQypL/+O1yxRf+lSBGk5QfodrLuHLh5JThBJoZU0R9SgFPlk8gHwJiF/eD0Ap7mynFfklS2Vf6YnbpYXjevy9rybA=
X-Received: by 2002:a05:6602:1236:: with SMTP id
 z22mr11523482iot.54.1588814409895; 
 Wed, 06 May 2020 18:20:09 -0700 (PDT)
MIME-Version: 1.0
References: <514e1a5d-7173-c6f0-a205-d8f207befc06@shaddybaddah.name>
 <9e450e76-6bc8-407a-89d4-edcc934edc5a@shaddybaddah.name>
 <0dc18394-6194-118a-d3f1-3055c51a352f@cs.umass.edu>
 <ccd57ee7-2679-45b4-c11d-73bd85a99744@shaddybaddah.name>
 <bb40bbcc-a0c5-7708-f739-d102bd75a91a@shaddybaddah.name>
 <7e298112-c64f-4251-ac7f-ccb6cdc2088d@shaddybaddah.name>
In-Reply-To: <7e298112-c64f-4251-ac7f-ccb6cdc2088d@shaddybaddah.name>
Date: Wed, 6 May 2020 19:19:58 -0600
Message-ID: <CAJ1FpuO0UGYh3fhFtOda+NXkK58hU5+vUh+s0cA-pUXmqjviyA@mail.gmail.com>
Subject: Re: Odd hang of cc1.exe *now isolated to /tmp weirdness* cpp/gcc
To: cygwin <cygwin@cygwin.com>
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,
 HK_RANDOM_ENVFROM, HK_RANDOM_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Doug Henderson via Cygwin <cygwin@cygwin.com>
Reply-To: Doug Henderson <djndnbvg@gmail.com>
Content-Type: text/plain; charset="utf-8"
Sender: "Cygwin" <cygwin-bounces@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 0471KdLR019430

On Wed, 6 May 2020 at 08:34, Shaddy Baddah <> wrote:

> On 29/4/20 10:38 pm, Shaddy Baddah wrote:
>


> <snip>
>
> … And only when run out of my /tmp (which is custom mapped btw).
>
> <snip>
>


> | /tmp$ ls -li /usr/bin/as.exe /usr/x86_64-pc-cygwin/bin/as.exe
> | 1688849860843563 -rwxr-xr-x 2 AUD-ELIDED+portapps AUD-ELIDED+None
> 5981696 Mar 15 15:16 /usr/bin/as.exe
> | 1688849860843563 -rwxr-xr-x 2 AUD-ELIDED+portapps AUD-ELIDED+None
> 5981696 Mar 15 15:16 /usr/x86_64-pc-cygwin/bin/as.exe
>


> <snip>
>

I think this is the essence of your problem. It looks like you are mapping
you temporary directory outside the cygwin directory tree, Not sure how you
are doing it. For me, I have TMP=/tmp and TEMP=/tmp in my cygwin
environment. In my windows environment, i.e, when running cmd.exe, TEMP and
TMP point to C:\Users\Doug\AppData\Local\Temp.

I expect you will find that the windows permissions for your temp directory
is different from the default /tmp.

Check this using lsacl (A bash script found somewhere in this mailing
list.) Or the file properties from windows explorer.

In my case:

$ ls -ld /tmp
drwxrwxrwt+ 1 Admin None 0 May  6 18:51 /tmp/

$ ls -ld $(cygpath -u 'C:\Users\Doug\AppData\Local\Temp' )
drwxrwx---+ 1 Doug SYSTEM 0 May  6 18:50
/cygdrive/c/Users/Doug/AppData/Local/Temp/

$ lsacl /tmp
[u::rwx,g::rwx,o::rwx/u::rwx,g::r-x,o::r-x] /tmp

$ lsacl $(cygpath -u 'C:\Users\Doug\AppData\Local\Temp' )
[u::rwx,g::rwx,g:Administrators:rwx,m::rwx,o::---/u::rwx,g::rwx,g:SYSTEM:rwx,g:Administrators:rwx,m::rwx,o::---]
/cygdrive/c/Users/Doug/AppData/Local/Temp

I suggest you change your temporary directory to ./tmp, or align the
permissions.

HTH,
Doug

-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

