delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/11/10/08:17:07

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4AADH6rt3462883
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 4AADH6rt3462883
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=omWsVDBq
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 839F43858408
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1731244624;
bh=C8P4DSWxeGESL4BU1pMl1+2O7Ro2cMTsnRgxr0azUl0=;
h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=omWsVDBqnhmnfjxdI2obpRZUbDE+4mLJPbcRecd/pY95On0jFWLHGPpL9CQtEn/1X
huOge/3eznxAgyVFYe5jHr6DnqvQB4FCAIgCOp3i/r8sTaUzDoPwjqhpXa5UzBVLWo
5LW/rJ/y0SqmPI9kMkUDsh8Ckc08gZe6CGUBVDy0=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 72A0C3858D21
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 72A0C3858D21
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731244603; cv=none;
b=UUVL0aUhjiwv72wj2y3i3Qhj5Ni5QwrZ9itKk47xABJGGbZcLxY1PxUefyIq4C0Z9+Rdj0lF6SkUEgd/PVmbX5tChb3Hy9nDMbRS36exuME9W4DF0oG5/IShLS0jww8SkPECn+sMHia6gizfEpzaY+S/aAtaMO2zcutWZt0UTQY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1731244603; c=relaxed/simple;
bh=rWG2uYpHHXP3thVeB1ry4DJW+iy4FepARPoTO0CjI98=;
h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;
b=pmtOhSBNRA7qJMKntCRI4eYUqspcxzierPuvkMPl9qeIWJcM0WxnPfkLM/RYmNUMhXMaLFv1Mwb70wCwE9bInYKcD7k3P/SxIcBUGX2DrRKa2wcIZZjbtvq/JTK/BztrAraCz8K4bQ0GsYLuSpzzwYtbsp5pErufeTjp9DTZeZw=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Yandex-Fwd: 1
Date: Sun, 10 Nov 2024 16:16:37 +0300
To: cygwin AT cygwin DOT com
Subject: Configute option --without-cross-bootstrap works in opposite
Message-ID: <ZzCyNSMO_ni4oap3@DESKTOP-97PAREG>
MIME-Version: 1.0
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: Ivan Vorontsov via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Ivan Vorontsov <ivrntsv AT yandex DOT ru>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

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.

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