From nobody Fri Dec 06 18:26:52 2024 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Y4fqJ4stbz5gfgt for ; Fri, 06 Dec 2024 18:26:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y4fqJ3K1lz4v42 for ; Fri, 6 Dec 2024 18:26:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733509612; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YAB7OJezkTdM52a0zJrI74bXK0MfskEGP0etAKcNtqU=; b=CxiH7YVwLsotg5/dyYpaTQD90NSj6RhHtt2FCrZpgxDv+eKuZlFLPBkx14iToQid/LoG84 Ira6Cc2KFr/TfnaysOgQ8KbrrTbk5k95rfvo9LUSuYuM7IMIA0WRXMHSqPl30bJHX3IedE lncmyIDGwj7KAdDswjyLWi4FWJOdqHl4tPg1nnDRakIPGBdlWk87AHo5gVxQqkC+U5ixtQ dA1YHRhuAjm02hFSaW59UXFybMXpqD+rddfoBTdbKARwWbvoPMjXoZZ6eVcAepE8Tz+Gpj O/m/anjqL7aB0f/q01SIN7/jLKKisyZIai751ZxHAFUKVir0iXyD3bY7vVsolQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733509612; a=rsa-sha256; cv=none; b=L94woNMoXOEUDgpa2xscYsWX2huUBjbjNVUhR2zbSkbo2Y0MpXcl2xswWYMb2fzJEGBOew Rhw8aY8pNovIbIZfEXKj0lgXQwo404zoULkoJpMZq+6tQiAmX+miOb13Wt5BnSTwHqum8j dRQWAsRfP7HDlb1F18LEQhD4pP/Io2ahxUWdk5GY6/Qe+wSYSSQyeKmmRfwt32J55nUs0a 5oUPjee6E/RRZIOgWI1bQq3Nn2q+O5mJ+PgFaLK1sTcO6hvpSnwJeChnkWNBJJObqxIxyD SaNFD04UL4Ed6yZlT3aFSOWb/jib9dcK7OA0s0X25QSpGLqxEVb3J3sZea+57g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Y4fqJ2pgLzpKY for ; Fri, 6 Dec 2024 18:26:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4B6IQqTv044346 for ; Fri, 6 Dec 2024 18:26:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4B6IQqpi044345 for toolchain@FreeBSD.org; Fri, 6 Dec 2024 18:26:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 283155] Link fails with -flto: error loading plugin: Cannot open "/usr/bin/../lib/LLVMgold.so" (port multimedia/kew) Date: Fri, 06 Dec 2024 18:26:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 14.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org 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: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-toolchain@freebsd.org Sender: owner-freebsd-toolchain@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283155 --- Comment #12 from Mark Millard --- (In reply to John Baldwin from comment #11) One type of handling that avoids the likes of use of x86_64-unknown-freebsd14.1-ld is to use, say, -fuse-ld=3Dlld on the command line. (Avoids adjusting LLVM source.) But that is very specific to ld.lld and the clang code for finding tools is more general: const ToolChain::path_list &List =3D TC.getProgramPaths(); for (const auto &TargetSpecificExecutable : TargetSpecificExecutables) { // For each possible name of the tool look for it in // program paths first, then the path. // Higher priority names will be first, meaning that // a higher priority name in the path will be found // instead of a lower priority name in the program path. // E.g. -gcc on the path will be found instead // of gcc in the program path for (const auto &Path : List) { SmallString<128> P(Path); if (ScanDirForExecutable(P, TargetSpecificExecutable)) return std::string(P); } Does FreeBSD's built-in toolchain have any intended-to-be-supported potential use of -TOOL overriding TOOL from earlier in the path? Any deliberate use of such already? --=20 You are receiving this mail because: You are the assignee for the bug.=