From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by sourceware.org (Postfix) with ESMTPS id AEC9D3938C15 for ; Thu, 7 May 2020 01:20:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AEC9D3938C15 Received: by mail-io1-xd30.google.com with SMTP id f3so40596ioj.1 for ; Wed, 06 May 2020 18:20:10 -0700 (PDT) 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> <7e298112-c64f-4251-ac7f-ccb6cdc2088d@shaddybaddah.name> In-Reply-To: <7e298112-c64f-4251-ac7f-ccb6cdc2088d@shaddybaddah.name> From: Doug Henderson Date: Wed, 6 May 2020 19:19:58 -0600 Message-ID: Subject: Re: Odd hang of cc1.exe *now isolated to /tmp weirdness* cpp/gcc To: cygwin 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2020 01:20:12 -0000 On Wed, 6 May 2020 at 08:34, Shaddy Baddah <> wrote: > On 29/4/20 10:38 pm, Shaddy Baddah wrote: > > > > =E2=80=A6 And only when run out of my /tmp (which is custom mapped btw). > > > > | /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 > > > 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=3D/tmp and TEMP=3D/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:rw= x,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 --=20 Doug Henderson, Calgary, Alberta, Canada - from gmail.com