DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4AEFBDWZ872091 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 4AEFBDWZ872091 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=smNwL56+ X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A3EFA3858C32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1731597071; bh=Izf6zosp5h11uG4YWDEr9wln5yJitgHRXQTTY9FH67c=; 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=smNwL56+3u5Ro0+NHNtybAxF6FHl65n+h/va2TaZAaq9vM/pkGIIFRKWXNfcaxRTd lBqnv8qQHegjAmMnPqQn3Yjfu6ounD2AP41aXocicDPC/F4J96yYy/cOWgSqQhc/7b wAjS+wQ5XbRHz94/u88ZBRiUbpeRBS/0GDC44hhE= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DF3C03858D28 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DF3C03858D28 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731597041; cv=none; b=PZsPtFWcRCtoWUeE/m1taCdkb7HLWB4dqfDVjkPJsvxX8g8uD1e3unOJxd1EErhyEtWkTdx+jAeccCaxkbqVO8slAJGHGyo5qqUT8bQ6H76ceUL4mQG3jCrprk1wAjjvgW3vk1pTMiruBBkTdf0O+DS5irrpA815n2e3sdmxtvY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731597041; c=relaxed/simple; bh=uyaS2RNJo7rkiom/2NucqRUACGgc0Uh8X79WIefmS5Q=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=fW6i3pUFXi+SdSx8d3PUqC8tw6P57BQx9qDhZ/8hkPSqpqMsnvAIcz2NBqch7MRJkmkfUGP28vML9dTf+njEm43N4+CiBmGbE70dxJHVDI3VqaJADGcoMIWHX0juFHybIjNhg0NGd7/dRfUOirA5fzSffXwzGrzszm9bvAeChPk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF3C03858D28 X-SNCR-Rigid: 6722B00201A1DD09 X-Originating-IP: [81.152.101.74] X-OWM-Source-IP: 81.152.101.74 X-OWM-Env-Sender: jon DOT turney AT dronecode DOT org DOT uk X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeefuddrvddvgdejfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucenucfjughrpefkffggfgfuvfhfhfevjggtgfesthejredttddvjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepgfeghfdvvdeijeettdfgleetffetfedtuefgfeevhedthefgffelfeethfdvleffnecuffhomhgrihhnpegthihgfihinhdrtghomhenucfkphepkedurdduhedvrddutddurdejgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddruddtlegnpdhinhgvthepkedurdduhedvrddutddurdejgedpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhrvghvkffrpehhohhsthekuddqudehvddquddtuddqjeegrdhrrghnghgvkeduqdduhedvrdgsthgtvghnthhrrghlphhluhhsrdgtohhmpdgruhhthhgpuhhsvghrpehjohhnthhurhhnvgihsegsthhinhhtvghrnhgvthdrtghomhdpghgvohfkrfepifeupdfovfetjfhoshhtpegsthhprhgurhhgohdttdehpdhnsggprhgtphhtthhopedvpdhrtghpthhtoheptgihghifihhnsegthihgfihinhdrtghomhdprhgt phhtthhopehivhhrnhhtshhvseihrghnuggvgidrrhhu X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean X-VadeSecure-score: verdict=clean score=0/300, class=clean Message-ID: <34780a8c-2340-4696-8558-daf0315301cc@dronecode.org.uk> Date: Thu, 14 Nov 2024 15:10:34 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Configute option --without-cross-bootstrap works in opposite To: Ivan Vorontsov References: Content-Language: en-US Cc: cygwin AT cygwin DOT com In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Jon Turney via Cygwin Reply-To: Jon Turney Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On 10/11/2024 13:16, Ivan Vorontsov via Cygwin wrote: > I tried to build cygwin from sources. As FAQ suggests I used > --without-cross-bootstrap option to configure to build without using > mingw64-x86_64-gcc-g++. It turns out this option works in opposite. I used > --with-cross-bootstrap option and build went successfully. But that's a > bug, I think. > > In file winsup/configure.ac snippet below uses inverted logic: > > if test "x$with_cross_bootstrap" != "xyes"; then > AC_CHECK_PROGS(MINGW_CXX, ${target_cpu}-w64-mingw32-g++) > test -n "$MINGW_CXX" || AC_MSG_ERROR([no acceptable MinGW g++ found in \$PATH]) > AC_CHECK_PROGS(MINGW_CC, ${target_cpu}-w64-mingw32-gcc) > test -n "$MINGW_CC" || AC_MSG_ERROR([no acceptable MinGW gcc found in \$PATH]) > fi > AM_CONDITIONAL(CROSS_BOOTSTRAP, [test "x$with_cross_bootstrap" != "xyes"]) > > I think it should be: > > if test "x$with_cross_bootstrap" = "xyes"; then > ... > AM_CONDITIONAL(CROSS_BOOTSTRAP, [test "x$with_cross_bootstrap" = "xyes"]) > > And I think help message should be changed as well. > > AC_ARG_WITH([cross-bootstrap],[AS_HELP_STRING([--with-cross-bootstrap],[do not build programs using the MinGW toolchain or check for MinGW libraries (useful for bootstrapping a cross-compiler)])],[],[with_cross_bootstrap=no]) > > to: > > AC_ARG_WITH([cross-bootstrap],[AS_HELP_STRING([--without-cross-bootstrap],[do not build programs using the MinGW toolchain or check for MinGW libraries (useful for bootstrapping a cross-compiler)])],[],[with_cross_bootstrap=no]) > > Though, I'm not an expert. All this was found through experimentation. Thanks for reporting this. So, this actually looks like a mix-up in [1], where we inverted the meaning of the option, and it's default, but didn't change the help text. It is confusing, but I think after that commit, the default is "--without-cross-bootstrap", with the meaning "I am not doing a bootstrap, so check for and build everything". So the help text should probably be changed to read "build programs using the MinGW toolchain or check for MinGW libraries (disable if you are bootstrapping a Cygwin-targeted cross-compiler, or don't have a MinGW compiler available)" (Of course, in the meantime, the use of AC_WINDOWS_{HEADERS,LIBS} has been removed, so this option now only has the effects that '--without-mingw-progs' had.) So, I'm not entirely sure what to do here. [1] https://cygwin.com/cgit/newlib-cygwin/commit/?id=e7e6119241d02241c3d114cff037340c12245393 -- 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