| delorie.com/archives/browse.cgi | search |
| DMARC-Filter: | OpenDMARC Filter v1.4.2 delorie.com 5BN1Nfcq1825529 |
| 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 5BN1Nfcq1825529 |
| 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=FK7Kw/17 | |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 4E2274BA2E04 |
| DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; |
| s=default; t=1766453020; | |
| bh=JovVsPdJ73lG68GvpVA+Qsx9sDOT5DIWfBkbi1vtTuQ=; | |
| h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: | |
| List-Help:List-Subscribe:From:Reply-To:From; | |
| b=FK7Kw/17bf3JELhWrCMEvDkBu2MfoaUsaX9o+Nh029n59pZZNjq26wqURve5HRQaf | |
| AcD8+dbt/pSZktAgSKVzMY4/7P6heE6FPbIoM12czzeAhJN1B6UD0IUjYaZ74JuVKT | |
| D3IHDXntblqgeFKpiBW34p2Dlrv/mUTVSI1l2jaQ= | |
| X-Original-To: | cygwin AT cygwin DOT com |
| Delivered-To: | cygwin AT cygwin DOT com |
| DMARC-Filter: | OpenDMARC Filter v1.4.2 sourceware.org 198474BA2E05 |
| ARC-Filter: | OpenARC Filter v1.0.0 sourceware.org 198474BA2E05 |
| ARC-Seal: | i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1766452999; cv=none; |
| b=n3hJWcJLVsXA5PixjXndPG/JgffVbVd+DxqcCzXvL5/84kEULwWkpsdtO0HaeAwoz1bfTRPdNwRndQKQJ5WWJQUSwX8V0BAaMKgrgiKxA9uO4K8Dkm9LdbN08DdeoV/+Mbh12zqlZnOWFMxov49n0arhEMPsBmD5lVFiYaSNBVA= | |
| ARC-Message-Signature: | i=1; a=rsa-sha256; d=sourceware.org; s=key; |
| t=1766452999; c=relaxed/simple; | |
| bh=oFU2fBAOf5UBXJzOdQOzo4G+tMuFK9HcVuvczfUu9/k=; | |
| h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; | |
| b=DqGDcYY45VfNzMbMoDZu61gdM7SNKCFxSSth9hXPmEFUc4kPY+qiRZL4z9ZUiLoCvlKR5eN5FO7zkJjnBxiKi0RyHH2tMieEH+FWrSTO8XERtpWwOx30e0ZjU6XgvTqNUv/NNUWI4lBbcYdMh88yggmJjEQV3pNEzv6gdCrw4nc= | |
| ARC-Authentication-Results: | i=1; server2.sourceware.org |
| DKIM-Filter: | OpenDKIM Filter v2.11.0 sourceware.org 198474BA2E05 |
| X-KPN-MessageId: | 806ae383-df9e-11f0-bd6c-005056aba152 |
| X-KPN-MID: | 33|Bd2NW2/2mktLcIyaN5AQGJb1gRKWcoiNjVtSHo3E4Rr8oAh9ht/u4dLjIFKAIk6 |
| ogLzS2Oyg80emVV+5z1ZgWa2KWNcDlOcWZ2K5UG1nrzs= | |
| X-KPN-VerifiedSender: | Yes |
| X-CMASSUN: | 33|x7lXWbWiuyWE8QHX8Vug+IJq/AsT04dV3Xa2mkkcoJDY47aP4lkYqzjWy278azz |
| W/ZRrtLxO1e7vFZzM/854jQ== | |
| X-Originating-IP: | 77.173.35.122 |
| Message-ID: | <fd849d6f-9887-484e-8b2e-0593c76a070f@xs4all.nl> |
| Date: | Tue, 23 Dec 2025 02:23:17 +0100 |
| MIME-Version: | 1.0 |
| User-Agent: | Mozilla Thunderbird |
| To: | cygwin AT cygwin DOT com |
| Subject: | Miscellaneous notes from an user ... as he rebuilt cygwin1.dll |
| against the 3.6.6 branch | |
| 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: | "J.H. vd Water via Cygwin" <cygwin AT cygwin DOT com> |
| Reply-To: | "J.H. vd Water" <dhr-incognito AT xs4all DOT nl> |
| Sender: | "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com> |
| X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id 5BN1Nfcq1825529 |
Hi,
In addtion to my bug report from Mon Dec 15 15:53:31 GMT 2025
- https://cygwin.com/pipermail/cygwin/2025-December/259133.html
( Bug in id command (when using the descr schema - Ch3 UG) ? )
Miscellaneous notes from an user ... as he rebuilt cygwin1.dll against the 3.6.6 nranch:
1. verified Corinna's patchset [a] against the 3.6.6 branch (git --checkout cygwin-3.6.-branch)
2. build w/ (among other switches) --disable-cygserver --disable-utils ... as I only wanted to rebuild cygwin1.dll
- cygwin.cygport was modified as follows:
PKG_NAMES="cygwin"
BUILD_REQUIRES="autoconf automake cocom libiconv-devel gcc-g++ make patch perl"
CYGCONF_ARGS="--disable-silent-rules --without-cross-bootstrap --disable-cygserver --disable-doc --disable-dumper --disable-utils"
subsequenly corrected to:
CYGCONF_ARGS="--disable-silent-rules --with-cross-bootstrap --disable-cygserver --disable-doc --disable-dumper --disable-utils"
- build FAILED because Radek Bartoň's patch [1] has NOT been backported to the 3.6.6 branch (pushed to 3.7 only)
- my 2nd attempt after Radek's patchset (3) had been applied:
- testsuite/mingw is STILL being built, despite specifying --without-cross-bootstrap (i.e. the WRONG switch!)
3. --without-cross-bootstrap [2] should be --with-cross-bootstrap -- in case we only want to rebuild cygwin1.dll (FAQ 6.21 is wrong)
Proof below.
4. Radek Bartoň 2nd patch [3] is wrong -- note: patch was not approved (neither was it pushed to the central repo)
Although
if test "x$with_cross_bootstrap" != "xyes"; then hunt for the mingw tools; fi ... is correct,
this modification is far better to understand:
if test "x$with_cross_bootstrap" == "xno"; then hunt for the mingw tools; fi
Ditto AM_CONDITIONAL(CROSS_BOOTSTRAP, [test "x$with_cross_bootstrap" != "xyes"])
See below.
-----
[a]
- https://cygwin.com/pipermail/cygwin-patches/2025q4/014481.html ... reviewed by Takashi Yano, pushed (3.7) by Corinna
( [PATCH v2 0/4] Fix overriding primary group )
(it would be nice if this patchset is backported to the 3.6.6 branch)
[1] Radek's 1st patchset
- https://sourceware.org/pipermail/cygwin-patches/2025q3/014175.html ... reviewd by Jon T., pushed (3.7) by Jon
( [PATCH v4] Cygwin: configure: add possibility to skip build of cygserver and utils )
Mon Jul 21 07:40:37 GMT 2025
(it would be nice if this patchset is backported to the 3.6.6 branch)
[2] Corinna's patch from February 1, 2024 (aq.programming.building-cygwin 6.21)
- https://cygwin.com/cgit/cygwin-htdocs/commit/faq/faq.html?id=9d693eea564ec608569c2f5d78536827e99f1661
( Cygwin 3.5.0 release )
2024-02-01 12:29:28 +0100
(should be corrected)
[3] Radek's 2nd patch
- https://cygwin.com/pipermail/cygwin-patches/2025q3/014248.html
( [PATCH] Cygwin: configure: allow zero-level bootstrapping cross-build with --without-cross-bootstrap (and cross-testing without) )
Fri Jul 25 21:40:40 GMT 2025
-----
Ad 2.
Proof why using --without-cross-bootstrap is WRONG if one does NOT want the mingw tools to be invoked ...
Source: https://autotools.info/autoconf/arguments.html
See <newlib-cygwin>/winsup/configure.ac ... around line 45
cat configure.ac: (testfile)
AC_INIT([myproject], [123], [flameeyes AT flameeyes DOT com], [https://autotools.io/])
AC_ARG_WITH([cross-bootstrap],
[AS_HELP_STRING([--with-cross-bootstrap], # <==== WITH !!!
[do not build programs using the MinGW toolchain or check for MinGW libraries (useful for bootstrapping a cross-compiler)])],
[],
[with_cross_bootstrap=no])
echo $with_cross_bootstrap
#= eof
64-@@ ./configure --version
autoconf (GNU Autoconf) 2.72
...
64-@@ rm -fr autom4te.cache configure
64-@@ autoconf
/usr/share/autoconf2.7/autoconf/trailer.m4:4: warning: AC_OUTPUT was never used
64-@@ ./configure
no
64-@@ ./configure -with-cross-bootstrap
yes
64-@@ ./configure -with-cross-bootstrap=no
no
64-@@ ./configure -without-cross-bootstrap
no
64-@@ ./configure -without-cross-bootstrap=yes
configure: error: invalid package name: 'cross-bootstrap=yes'
64-@@ ./configure -without-cross-bootstrap=no
configure: error: invalid package name: 'cross-bootstrap=no'
Summarized:
switch variable
- no switch => with_... = no
- --with- => with_... = yes
- --without- => with_... = no
-----
Ad 3.
Radek's 2nd patch, w.r.t. to winsup/configure.ac, is WRONG.
Source: (again) https://autotools.info/autoconf/arguments.html
winsup/configure.ac ... around line 43
AC_ARG_WITH([cross_bootstrap],
[AS_HELP_STRING([--with-cross-bootstrap], do not use the mingw tools ...
[],
[with_cross_bootstrap=no]) <==== if no switch is specified (i.e. the default), this value is assigned
Note:
a. no switch specified => with_cross_bootstrap=no
b. --with-cross-bootstrap => with_cross_bootstrap=yes
c. --without-cross-bootstrap => with_cross_bootstrap=no (i.e. recognized as the inverted switch)
Attention:
d. --with-cross-bootstrap=no => with_cross_bootstrap=no
e. --with-cross-bootstrap=yes => with_cross_bootstrap=yes
winsup/configure.ac ... around line 116
Replace
if test "x$with_cross_bootstrap" != "xyes"; then
By:
if test "x$with_cross_bootstrap" == "xno"; then <==== far better to understand
< check availability of x86_64--w64-mingw32-{gcc,g++}, stop if not found >
fi
Replace
AM_CONDITIONAL(CROSS_BOOTSTRAP, [test "x$with_cross_bootstrap" != "xyes"]) # returns true if --with-cross-bootstrap has been specified
By:
AM_CONDITIONAL(CROSS_BOOTSTRAP, [test "x$with_cross_bootstrap" == "xno"]) <==== far better to understand
--with_cross_bootstrap=yes (winsup/configure.ac) => CROSS_BOOTSTRAP_TRUE='#' (src/winsup/configure)
=> @CROSS_BOOTSTRAP_TRUE AT SUBDIRS = mingw (src/winsup/testsuite/Makefile.in), i.e. @SUBDIRS = mingw will be ignored
=> if CROSS_BOOTSTRAP SUBDIR = mingw endif (src/winsup/testsuite/Makefile.in), i.e. SUBDIR = mingw will be ignored
(the same applies to src/winsup/utils/Makefile.{am,in} )
As an alternative, the option name should be renamed if "cross-bootstrap" creates confusion:
AC_ARG_WITH([skip-mingw],
[AS_HELP_STRING([--with-skip-mingw], do not use the mingw tools ...
[],
[with_skip_mingw=no]) <==== if no switch is specified (i.e. the default) ... or if --without-skip-mingw is specified
if test "x$with_skip_mingw" != "xyes"; then
hunt for the mingw tools
fi
=====
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |