From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 724E43858017; Wed, 27 Sep 2023 05:11:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 724E43858017 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695791512; bh=u6LtJsdnDdx295Luu6uomvEt8ELVpzEZSopOPLNTzXs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vympB9WhiYOZIeQ1xrkmi4qPBXo0zk93t0MldtawdnkbN+LpiOjwFnJhfoKJxRPDB hsBC5PEhJ6r37NlBpuVTk/wLp9zmrwInEHaM93+MIhm3RSEhokmb+KbZQ0vkc1kMMb aqIAk6MbWTGFXIzZJYCKm3XLfzEFTBRC1gMe6WQA= From: "pinskia 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: Wed, 27 Sep 2023 05:11:52 +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: unknown X-Bugzilla-Keywords: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111605 --- Comment #3 from Andrew Pinski --- (In reply to Rui Ueyama from comment #2) > I can make a change to the `make install` rule of the mold linker to inst= all > bunch of symbolic links, but can we enumerate all possible triples? For > example, I wasn't aware that `arm-none-eabi` was a valid triple. If I > enumerate _all_ possible triples, wouldn't I end up with installing hundr= eds > of symlinks? There are way too many (valid) triplets to list really and also the vendor could be different and still be valid. >=20 > And the tons of symbolic links wouldn't serve any meaningful purpose beca= use > mold just ignores argv[0]. More likely the scripts which build the full toolchains directories should = be creating the symbolic links instead of mold itself.=