From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A4CCA383D83F; Wed, 28 Jul 2021 03:29:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A4CCA383D83F From: "unlvsur at live dot com" 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:29:54 +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: unlvsur at live dot com 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:29:54 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101655 --- Comment #6 from cqwrteur --- (In reply to Andrew Pinski from comment #5) > Can you provide the exact steps you are doing? > Because I think you are misunderstanding how this works. >=20 > So if you use --host=3Dx86_64-w64-mingw32 . >=20 > 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 >=20 > But it uses the wrong compiler for the target libraries. >=20 > Also I see you had built the cross compiler in the src directory: > Configured with: ./configure --disable-libstdcxx-verbose --disable-multil= ib > --disable-nls --enable-fully-dynamic-string --enable-languages=3Dc,c++,lto > --enable-large-address-aware --enable-mingw-wildcard --enable-threads=3Dm= cf > --target=3Dx86_64-w64-mingw32 >=20 > Don't do that. I do not know actually, because i just reported that for my friend he does = not have an account. Can you just create an account for bootmgr@163.com?=