www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/03/22/19:57:16

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 62MNvG7e2916882
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 62MNvG7e2916882
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=PL8wNh9F
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C0EE4BB3BBF
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1774223835;
bh=w45+x1v31kF76MzPR+8QXB04J9y1h4YeGV+ix2SfCqY=;
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=PL8wNh9F8ifIHPE+53Dcl0uAcjzUPdYuaZVsPEhX060kqJMrlTiSQBZ2M+4r2ov8A
/M3MSSLxqCxon1vELLnANyxPQIkzl5CU8wFnQfZ9/Vj9nlntRH0b3SjhslOxJm9ShX
Zue6uL9pxAThWiT90yiKtoVt9jUkQF+WTaLPI4yE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5E5F34BAE7E5
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5E5F34BAE7E5
ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1774223785; cv=pass;
b=csewxcyQplVvd6Sspd9CiZgwOrjcHT0BhRC1r003wyNyCwpLUEwe0z3Vb5m+KRwP3lwQl0z8PMNnQAgZzpDDqLeByrtMXAcJQqtFp/EOHDEUQzuBa2FAbRqBSgQZNYL98vkK+3nMW5hULcY1HAaGnqKoLULQf6tQNFLOBtptSYo=
ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key;
t=1774223785; c=relaxed/simple;
bh=8ic0sfq0B54SZL/TAC/zoKyGv0ALHy7ZvovH7fReFH4=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=wv0Qbtld5CzXwgWOrTPGRLE74d5K618H5vCRyxrLln2M9bz4m/5xrxQ0GZsbWdL2r3cGYeGtqbBeycov7SMpjLUduS3RcHKVl+DgE+KvdtKcHov8T5KYOcZFIDu4Tz7+q2wJhpcJoPAu3hn+0MAUb7KHuQjVHZns3u/l48IlfmA=
ARC-Authentication-Results: i=2; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E5F34BAE7E5
ARC-Seal: i=1; a=rsa-sha256; t=1774223784; cv=none;
d=google.com; s=arc-20240605;
b=cs1WUiIIUYek3rD55jdsFrpsw/qeeGk14tDFsNo/jGuJLBZ3mjQhespJtmJMmMQInj
tgXFlHYNjjh8q9QIJLtPFgNj0YPIAGzZJ0gwBfQLoYLexud5zAw+nYRBFik5eAp8EIh7
0ecOh67amjVAZTP6mKqaz9VNOHIRUykT96L3WV41dLwzSKxOKRCaNUeRN/2bCcaES7Cj
gvMV8vojzikXrNq/6zHpsGLJTrqNuub2J6gTBFir+oA0+POkhGkd+hn6v0OnISWJ5eeK
k2+qbYcWdC8MCaRQ//Zq2KcXi6p7hZDoPpw3/QyYePCsCGYWUidmM07uUM2XJPi+wJNd
PoEg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20240605;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:dkim-signature;
bh=TrYiHKoFWyyan5Z6hzaCDzLvQicIm0ce8jDmfqIT0gs=;
fh=UKNFaOBO97U3RYl3PEse//nArTqr7SLJjCCEBz281Ew=;
b=QDODUroU/WZ3/z+pf9oSEq4dsYwiGyiQJ0KfeeCI6LnrmXW7ku1MfHL4nGFW56bz+V
nc+fAsGuSh2XLDR1ieVDEpDujh1ki+EMf2Pendqcb3itX9PjBPyGQJIJF5o+vcBuRy+e
iYBJFj1WbeOpvXaLIJtDun/QQyJvK7V1rv49+fRMk2vlwUaJU6vfYbeksVng6p/Co+GX
GdaD4WtjpqobAe2iXB2AfV0540IVq6NBH6NTk+ZmOEwYYld8mFY0a/Ju/VszEDXEg8jT
bocWd2k7yN1oCQiSRIvTZDVcGtwrnIJCS++JJJ0SOSlbDtEqv5C1EGIDoxFnDRYc4MRI
Txug==; darn=cygwin.com
ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1774223784; x=1774828584;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=TrYiHKoFWyyan5Z6hzaCDzLvQicIm0ce8jDmfqIT0gs=;
b=RlQ8HU7SbfXoBhoenahIstHp7cXpS6P3GaWPTq6TGWMiKyy7kNYl1MVyFb/AsUH6qY
wxKLKJjMe977FsOMWinVD4jMjclNAK8f7ZEckkglcP3bwTeZ3kXOXYD7VLUn6f9qe4Hp
nWop9nKccIHTmLXleUsVpY/HhKMyKCFNTLHu0YaitULE5jgs+WF+3tNdTd5M2oRsA46F
eq/n25TakhqUhddmpG8mqTM5OnvjmzZ54zz0o31xXGbNk868fiGc+qiJB6sYgq1NwAEU
yi+FI63B1yx7Ecm8XkH2vVbyb8BoP2tOuIy9DMql7ljAuPljt9e1N2z7AUfhRPiJCWCm
aNDw==
X-Gm-Message-State: AOJu0YzaBCNYV0HecNySuYIoSwcmGKgfl/twWgUBzZmco9ZyguRivMkt
epY2e915CHVwe4J6nYXJHtyj6G9vIYJAFF/DQRBHVwWQbnQYsj2ghsdMbhkjE+AqjPIvc3uoWRB
R6AfyOoSSDM0A+REj6CUPhUX5jD6eghh8qHYQdVMxcQ==
X-Gm-Gg: ATEYQzx0NM/RqBNSwHkoyKmuYAAfaUpTIciRgb1XYMMBaPfA4EHDQwtmWYYZkoJFWZA
vYa5cMksJa5+fLO7hKMtvjHUl+rjDuBX3TPQHMYJY5Xtx+tQTQLM7sidAXsgyYVRO+EEsDhQZqx
aVhIKl3BvgaqBUdc5QEKC7wd3eL+H2H6Ey+4nAoWV+D1wQ4SzYXnowjbJBXQy5PCmex1cmg05g4
rymAFIQuZ//peKaxtCloIOZ144Mci8TVtvbuMljYRZs7hT47fS/uB40YCtxYsEwACfUX6uCYOv9
n0yiQw5IaEmTLqFPTIP6tOkk4M2C7AuCG+NxOZFI8T9f2llrYSaUmrG+PIelqBSu8luY8pohvBc
apKW0C3m8bZvmb7qdaMB32BQd4lVJa6kRdBTxmeO3xTRJrJnrt/+711MRNY2P2K2O0gTq642u3v
8jBx9nVA==
X-Received: by 2002:a2e:8a96:0:b0:385:f547:1842 with SMTP id
38308e7fff4ca-38bf973a260mr34417421fa.30.1774223783294; Sun, 22 Mar 2026
16:56:23 -0700 (PDT)
MIME-Version: 1.0
References: <bd747629-3616-43c9-b05c-65610dc49842 AT cartchunk DOT org>
<TYWPR01MB8789FF4AF379C3E536EF8F9EC17BA AT TYWPR01MB8789 DOT jpnprd01 DOT prod DOT outlook DOT com>
<3b1aa006-d7db-4e6d-8519-9eb86a9f29ec AT SystematicSW DOT ab DOT ca>
<8b80d73f-8ff6-402c-b214-870c1f1d9335 AT cartchunk DOT org>
In-Reply-To: <8b80d73f-8ff6-402c-b214-870c1f1d9335@cartchunk.org>
Date: Sun, 22 Mar 2026 16:56:11 -0700
X-Gm-Features: AQROBzD4HjXWBNn6G0RDRTEjk5cG6OZiJ_knBidUyKjwN9d2vf1ERtM9K0Ep8CU
Message-ID: <CALy05zveTQJSmOD=Wn6iM9S4hRFGGhmzf1ehpFnYL4z7S_5Gfg@mail.gmail.com>
Subject: Re: gcc hangs even on simple compile tasks
To: cygwin AT cygwin DOT com
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Backwoods BC via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Backwoods BC <completely DOT and DOT totally DOT trash AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 62MNvG7e2916882

On Sun, Mar 22, 2026 at 7:55 AM Dick Pierce via Cygwin <cygwin AT cygwin DOT com>
wrote:

> On 3/10/2026 9:08 AM, Brian Inglis via Cygwin wrote:
> > On 2026-03-06 17:29, Annihilannic via Cygwin wrote:
> >> On 07/03/2026 09:37, Dick Pierce via Cygwin wrote:
> >>> Starting the end of last week, gcc has started behaving badly. Whether
> I invoke
> >>> it from a makefile or directly from bash, almost ALL of the timer, it
> hangs
> >>> forever, and Task Manager shows cc1 as "running", but consuming no CPU
> as
> >>> far as I can tell. If I kill it through task manager, the prompt
> returns
> >>> in bash (or make dies with an "interrupted" error.
> >
> >>> But I'm stumped.
> >
> >> Smells like a hardware problem to me - I'd suggest testing it
> thoroughly with
> >> memtest86 or similar.
> >>
> >> Also run it through `strace -f gcc -o hello.exe hello.c` a few times
> and see
> >> if it's sticking in the same spot every time (which would indicate
> software)?
> >
> > Never blame hardware until you have eliminated the likelihood of BLODA
> (Big List
> > Of Dodgy Apps <https://www.cygwin.com/acronyms/#BLODA>: FAQ 4.44.
> >
>
> I went so far as wiping the machine completely of cygwin, pulled all
> references to cygwin out of the registry[1], and reinstalled cygwin
> from scratch: no change in behavior at all.
>
> After multiple dead end rabbit holes (redundant?), the problem was none
> of what anyone thought it was: it was MUCH simpler.
>
> Out of desperation and on a hunch, I did a search of the machine for all
> instances cygwin1.dll on the machine. I had 6 copies spread all over the
> place. Crucially, there was one in c:/windows/system. Got rid of that one,
> all of a sudden, gcc started working just fine. And since /windows/system
> has near the head of PATH, it was the one that got done first. Did a
> compare
> of that one to the one in /cygwin64/bin and, yes, it was different.
>
> So I then did a purge of my system of every instance of cygwin1.dll across
> the system I could find EXCEPT the one that came with the latest cygwin
> installation. How the crucial one ended up in /windows/system, I have
> NO idea. But often, looking at the simplest and, perhaps, dumbest cause
> of a problem is best done first.
>
> FOOTNOTES
> ==========
> [1] What does the Windows registry and Florida have in common? it's a place
>      where things go to die.
>
> --
> +-----------------------------------+
> |            Dick Pierce            |
> |         Diverse Pursuits          |
> | Technical Engineering/Development |
> |           cartchunk.org           |
> |       Boston - Spruce Head        |
> +-----------------------------------+
>
>
> --
> 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


That's an unsubtle reminder that you need to always check what your path is
when you have Cygwin. There are several executables that have the same name
in the Windows and Cygwin "bin" directories:
bash.exe
comp.exe
curl.exe
expand.exe
find.exe
HOSTNAME.EXE <> hostname.exe
PING.EXE <> ping.exe
shutdown.exe
sort.exe
tar.exe
timeout.exe
whoami.exe

You want to make sure that you are grabbing the correct one for your
context or bad/confusing things will happen. The default path is an
automated guess at what might be a good selection for your system, but I've
never had it be sufficient for proper operation in any of my many
installations over the years.

Also, those other 'cygwin1.dll' instances are likely the result of "quick
and dirty" ports of *nix apps to Windows. The apps may not work properly
when run under the current release. Or they may just fail because they
can't find 'cygwin1.dll' in the Windows path.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019