From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 184593856974; Thu, 9 Nov 2023 13:06:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 184593856974 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699535208; bh=2acbuyqGa7RYs3zwbo1BrGMbh9Xy6UWdyB5DjcIHl5o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=H4/VfjwEwBZckb4z/CIQMZBGEFJjMK5d9Nm7qx2zozfqroleVigeku3ehVVXiGiSH dXTGtyJn/AHBU/FT3Dx/4CNr95hKQ20ok83jNfVkJ/djffZeYcqunz5EAaafDc6X7X XfAOQR/aZNvvU7afKZcZmXF/Y0zo28bhePI6Z714= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/111605] Cross compilation doesn't work with `-fuse-ld=mold` Date: Thu, 09 Nov 2023 13:06:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111605 --- Comment #13 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:1c6d6b34b112b52566ebde49afef3e6eb747ef90 commit r14-5281-g1c6d6b34b112b52566ebde49afef3e6eb747ef90 Author: Tatsuyuki Ishi Date: Mon Oct 16 14:04:12 2023 +0900 Do not prepend target triple to -fuse-ld=3Dlld,mold. lld and mold are platform-agnostic and not prefixed with target triple. Prepending the target triple makes it less likely to find the intended linker executable. A potential breaking change is that we no longer try to search for triple-prefixed lld/mold binaries anymore. However, since there doesn't seem to be support to build LLVM or mold with triple-prefixed executable names, it seems better to just not bother with that case. PR driver/111605 * collect2.cc (main): Do not prepend target triple to -fuse-ld=3Dlld,mold.=