From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id 1EAAA3858406 for ; Wed, 12 Jan 2022 19:09:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1EAAA3858406 Received: by mail-wr1-x435.google.com with SMTP id o3so5970033wrh.10 for ; Wed, 12 Jan 2022 11:09:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=uTF6L1xz3acVzGsj1ohxIqBcEm0mJz6rZKPFjsuUigA=; b=LC9ilYbEkMpapTALI4sukCfjamJer6ywmo8GnoYxTGVKYuebGIeFOJvxyOyLHpFXNg GKIfjW+CBoXP9QF3zY0p5yrEHOr0n+ikUuVSyI2okhoHJSSMKWY7k5IM7e2199RCNsHY ECMJWLoZzLvyP0eBK674n+VnBFLX0V5WgWvvQou2MuJGTz0F3SI0qopwLHzJk7lAiJY6 vHMeDEgKlwBiWwVvXSjtqKnzHrHGr4KlQu5o6Ee7867WLjdAnl80gL6zEdgzx2vknR/7 gCXm30CsFJJQa/PBEAmoD67LwrgAB7eIugrrXTh4cekCFplVMdGaJnITjbYuDuMODY9s /siw== X-Gm-Message-State: AOAM533bbNfSbuKFC1KdkNxaj/NxwCekOt6oNBZ0daNN4Pvz9Xl3fNsA Y4b/tpdbGWEw+qKwibsvomA1NUloYZRabWBrP/w= X-Google-Smtp-Source: ABdhPJybbWOzlJ206U9n8KDU/wmhkmsPJElSmZCg+nahc17cInSwMzgN5Lnxnujq6fCvakPV2zWqKzeFPtsxx9iqPdk= X-Received: by 2002:a5d:6e8b:: with SMTP id k11mr1009691wrz.102.1642014577157; Wed, 12 Jan 2022 11:09:37 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Wed, 12 Jan 2022 19:09:25 +0000 Message-ID: Subject: Re: [EXTERNAL] Re: Compiling GCC 11 for Windows targeting ARM on Linux To: Thomas Sobczynski Cc: Xi Ruoyao , "gcc-help@gcc.gnu.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2022 19:09:39 -0000 On Wed, 12 Jan 2022 at 18:39, Thomas Sobczynski wr= ote: > > Thanks much for the pointers thus far. I am now trying to take this in th= ree chunks: build native GCC11 on GNU/Linux, then use that to build GCC11 o= n/for GNU/Linux targeting ARM, then use the previous two to build GCC11 on = GNU/Linux for Windows targeting ARM. > > The first step completes, so I have an installed GCC 11 native toolchain = for Linux. > > The second step doesn't finish; getting hung up on configuring libstdc++. > > The tail of the build output leading up to the error: > > > > checking for ISO C99 support to TR1 in ... no > checking for ISO C99 support to TR1 in ... no > no > no > checking stdbool.h usability... no > checking stdbool.h presence... yes > configure: WARNING: stdbool.h: present but cannot be compiled > configure: WARNING: stdbool.h: check for missing prerequisite headers= ? > configure: WARNING: stdbool.h: see the Autoconf documentation > configure: WARNING: stdbool.h: section "Present But Cannot Be Compile= d" > configure: WARNING: stdbool.h: proceeding with the compiler's result > checking for stdbool.h... no > checking stdalign.h usability... no > checking stdalign.h presence... yes > configure: WARNING: stdalign.h: present but cannot be compiled > configure: WARNING: stdalign.h: check for missing prerequisite header= s? > configure: WARNING: stdalign.h: see the Autoconf documentation > configure: WARNING: stdalign.h: section "Present But Cannot Be Compil= ed" > configure: WARNING: stdalign.h: proceeding with the compiler's result > checking for stdalign.h... no > checking for the value of EOF... configure: error: computing EOF failed > make[2]: *** [Makefile:13316: configure-target-libstdc++-v3] Error 1 > make[2]: Leaving directory '/home/tsobczynski/Compiler/build-linux-cross' > make[1]: *** [Makefile:968: all] Error 2 > make[1]: Leaving directory '/home/tsobczynski/Compiler/build-linux-cross' This is fixed by the patch for PR 103866 that I already referred you to. Either build the Git master branch, or backport the fix to gcc-11. But I'm repeating myself now.