delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/07/02/09:56:17

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 662DuGdM479410
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 662DuGdM479410
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=GxOyn89H
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 808F44BAD14E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1783000574;
bh=TVM2Qa9P5v/ZSFdOdbxoYnz1LAIM5sQedbquzo3nJ1E=;
h=Date:Subject:To:References:Cc:In-Reply-To:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=GxOyn89HchFGMv1ad5bpLDvYYfw2HkmI2mxcPvmSUQXmNMDMrBPGmVXtQ20Bkl2Eb
0xlDnl8dycW39OnZAseWbEWetJ10zcq0I3TAsbUZrqK+cQKsvg/OM0iqBFGaBhigQb
ehuqIRTAfMaqTDSzc+ZPJzlkbWlRoCYLZYzLNJyE=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8EB354B9DB6E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8EB354B9DB6E
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783000522; cv=none;
b=EGy2bEbLnKdDxcaybIGowxfFvtdgnvheKjUP04REkTY/o5dBgaaJ9e9obEMEBnMLJ+tQXlQ5T5+NCq0cFeIeQ1ieSUFTzJoHeJCRMrXAlRfCZYe2k0ep0DCsnH2O6IAwuvc/1p5dvxGnArImNfgiUhbJvEF7fxlK152N5IMciEk=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1783000522; c=relaxed/simple;
bh=hU+v/Bvc/kfxvAGkkuPWxaVN+5WLcE0A1QbAprMJPMU=;
h=Message-ID:Date:MIME-Version:Subject:To:From;
b=MRWmkJS2X7eyhMmDIVlEbQgvY+LnYgn0Aiapye3YzpzsacF6GQ8pVeRAEWDmstordR7FPHZay++LEd4MwWJNSBN+nohByS0qS3TaG2tRQutADvlMRf58gMvP4hJSHBH9CaWWcfAxVVLrzU1OKx7ffUFucFZPH/MUCT4YAbqgwFU=
ARC-Authentication-Results: i=1; sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8EB354B9DB6E
X-SNCR-Rigid: 6A03A622040F9CCD
X-Originating-IP: [62.56.66.111]
X-OWM-Source-IP: 62.56.66.111
X-OWM-Env-Sender: jon DOT turney AT dronecode DOT org DOT uk
X-RazorGate-Vade: dmFkZTGS28xPz6sFEepSJih6LdZy8GXySxVWI2oWXxpgKYjToqWvFAk9WQRRFav2eMhs1jQLYyCn7XvEpezH83RGD9Stz3LPYMeyeJCVrWPyuRcSikq+CaliRcRCa8uqzKYDAGHDbZKLutga3XN7BkcXraD16pxXbRhxzZRbhlLf5wg142DfI0xC4urhuzKTti7nUI2bA0Aiu9KhEWwpHm9gaKXoNh51V/PIAUsonIC5u5bKx55tcyE40EFBKdo1xsK6fcG/Ly3RJlddOD9pBUeRYHZZvAG7tNGAYWrShOMXhO0qhSWTnRoNQQVVAZ9XPVj/RUtt3nlUWuKPV/ZLlB/FMD4ERV9w1oMJbYr7G8VvPk98/iROoHqGaYFiE1k4fZo7N7fjULhybb10bHaoeMOibLcimwiBw2zCHVZ+DADerm2hOK4WyVumf/cSO4C8hk936B22SgyUoQKmoHU27k4fOxXeU5//uMafpYstqyfpqfHIsX/S8h71kDgPfpI3ruEPbqXnYoyzk5JTCXuusDa9IN//o21wj4RlflAdcxi0bAhM5VZfUmgnQhvjOpjvmg2E9uAqBlYFBv4jzR4S34jDNdERFzHJSypN96teHTvoupKogHLtHNBDZ/6+6RZ8SwntEFvMZQdmRNWygA0r+6Hfp5IVQ/1h3qNpRo5VccN7unr8SQ
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
X-VadeSecure-score: verdict=clean score=0/300, class=clean
Message-ID: <2ae539f0-2cc8-4ca2-8cf5-a88c2bb62f0d@dronecode.org.uk>
Date: Thu, 2 Jul 2026 14:55:07 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: =?UTF-8?Q?Re=3A_Building_Cygwin_fails_with_=22newlib-cygwin/winsup/?=
=?UTF-8?B?Y3lnd2luL21hdGgvdHJ1bmNsLmM6MjQ6MTU6IGVycm9yOiDigJhGRV9UT1dBUkRa?=
=?UTF-8?Q?ERO=E2=80=99_undeclared_=28first_use_in_this_function=29=22_=2E?=
=?UTF-8?B?Li4=?=
To: Mark Geisert <mark AT maxrnd DOT com>
References: <CAKAoaQnBHbBQSPkjmAqQKFxqjvKV3o1zcoA5ck71WTCpKEEfCA AT mail DOT gmail DOT com>
<93da621d-580e-4133-979a-7208950cc631 AT maxrnd DOT com>
<7ae9980c-204f-4d9e-be94-d20b1623069b AT maxrnd DOT com>
Cc: cygwin AT cygwin DOT com
In-Reply-To: <7ae9980c-204f-4d9e-be94-d20b1623069b@maxrnd.com>
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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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: Jon Turney via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jon Turney <jon DOT turney AT dronecode DOT org DOT uk>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin 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 662DuGdM479410

On 02/07/2026 04:44, Mark Geisert via Cygwin wrote:
> Apologies, but I have to correct what I wrote previously...
> 
> On 7/1/2026 4:40 PM, Mark Geisert via Cygwin wrote:
>> Hi Roland,
>>
>> On 7/1/2026 9:43 AM, Roland Mainz via Cygwin wrote:
>>> Hi!
>>>
>>> ----
>>>
>>> Is anyone else seeing this build failure:
>>> ---- snip ---
>>> $ uname -a
>>> CYGWIN_NT-10.0-19045 bloodbath039 3.6.9-1.x86_64 2026-04-21 15:46 UTC
>>> x86_64 Cygwin
>>> $ git clone -b cygwin-3_6-branch git://cygwin.com/git/newlib-cygwin.git
>>> $ cd newlib-cygwin/winsup/
>>> $ ./autogen.sh
>>> $ cd ../..
>>> $ mkdir testinstall && cd testinstall/
>>> $ /home/roland_mainz/work/cygwin/newlib-cygwin/winsup/configure
>>> --prefix=/home/roland_mainz/work/cygwin/testinstall
>>> ...
>>> $ time nice make
>> [...]
>> Looks like you're building in the source directory.
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I was incorrect here; I misled myself about your directory structure.
> 
> I now believe the main problem is that you ran the incorrect 
> 'configure'.  It should be the one in /home/.../cygwin/newlib-cygwin/. 
> Both newlib and winsup trees need to be built to complete cygwin1.dll.

Yeah, you need to configure from the top level directory.

But you don't need to guess this, the instructions at [1] say that!

[1] https://cygwin.com/faq.html#faq.programming.building-cygwin

> Another problem is that the "--prefix=" argument to configure should 
> name yet another new directory for installing, not the one you're 
> building in.  Don't name your current Cygwin installation root here!

As an aside: using prefix to control the installation location (as this 
example does) is a bad habit to get into.

(because prefix-based paths can end up baked into the built objects. In 
our particular case it's not too bad, as <prefix>/etc/cygserver.conf is 
probably the only instance of this, but other projects might be more 
severely effected.)

Ideally, use make DESTDIR=<install-staging-location> instead.

This FAQ has been revised in git, but the results aren't deployed yet [2].

[2] 
https://cygwin.com/doc/preview/faq/faq.html#faq.programming.building-cygwin


-- 
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 © 2026   by DJ Delorie     Updated Sep 20 2026