From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5E9EC3835C23; Wed, 28 Jul 2021 03:22:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E9EC3835C23 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/101655] canadian compile of libgcc uses native cc as the compiler instead of the target cross compiler Date: Wed, 28 Jul 2021 03:22:56 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Version: 11.1.1 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jul 2021 03:22:56 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101655 --- Comment #5 from Andrew Pinski --- Can you provide the exact steps you are doing? Because I think you are misunderstanding how this works. So if you use --host=3Dx86_64-w64-mingw32 . configure:2358: checking build system type configure:2372: result: x86_64-pc-linux-gnu configure:2419: checking host system type configure:2432: result: x86_64-w64-mingw32 configure:2452: checking target system type configure:2465: result: x86_64-w64-mingw32 But it uses the wrong compiler for the target libraries. Also I see you had built the cross compiler in the src directory: Configured with: ./configure --disable-libstdcxx-verbose --disable-multilib --disable-nls --enable-fully-dynamic-string --enable-languages=3Dc,c++,lto --enable-large-address-aware --enable-mingw-wildcard --enable-threads=3Dmcf --target=3Dx86_64-w64-mingw32 Don't do that.=