From owner-freebsd-x11@freebsd.org Wed Oct 14 16:53:07 2020 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 47E6343E2B8 for ; Wed, 14 Oct 2020 16:53:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4CBJPv1GqRz4Fdk for ; Wed, 14 Oct 2020 16:53:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 2B8C643E1E4; Wed, 14 Oct 2020 16:53:07 +0000 (UTC) Delivered-To: x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2B4F143E30F for ; Wed, 14 Oct 2020 16:53:07 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CBJPv0Rb0z4Fdj for ; Wed, 14 Oct 2020 16:53:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 E7C80112EF for ; Wed, 14 Oct 2020 16:53:06 +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 09EGr6qn011372 for ; Wed, 14 Oct 2020 16:53:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 09EGr683011371 for x11@FreeBSD.org; Wed, 14 Oct 2020 16:53:06 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: x11@FreeBSD.org Subject: [Bug 250336] lang/clover: link failure after update to 20.2 Date: Wed, 14 Oct 2020 16:53:06 +0000 X-Bugzilla-Reason: AssignedTo CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jcfyecrayz@liamekaens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: x11@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? 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 MIME-Version: 1.0 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Oct 2020 16:53:07 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250336 --- Comment #4 from John Hein --- (In reply to John Hein from comment #3) Let me amend that last comment. I don't think it hurts to add -fuse-ld=3Dl= ld even if the default linker is lld already. It may be better than adding conditional logic. In other words, I think (a) might be better than (b) for simplicity. -fuse= -ld is certainly less expensive than a dependency on devel/binutils, so the largest(?) advantage of using the conditional logic is diminished. (a) LDFLAGS+=3D -fuse-ld=3Dlld (b) .if ${/usr/bin/ld:L:tA} !=3D /usr/bin/ld.lld LDFLAGS+=3D -fuse-ld=3Dlld .endif But (b) might be easier to grep for when 11.x goes away. An OSVERSION test would have that advantage as well. Either of the above can benefit from a comment and maybe even a USES=3Dlld = which can be pruned after 11.x goes away: # The base ld(1) in 11.x has troubles for a number of ports # where --as-needed and --start-group/--end-group is used # with a mix of shared and static libraries. Getting the # order of libraries on the command line can sometimes # work around ld(1)'s troubles. But using the lld linker # handles this issue more simply. # After 11.x is no longer supported, this can be removed # as the default linker on 12.x+ works fine in these cases. A handful of other ports are having troubles with 11.x ld(1) after the rece= nt update of various gnome related ports to use meson. These have been failing for a couple weeks now in the freebsd package builder. These bugs suggest the -fuse-ld=3Dlld fix for some of them: bug 249418 bug 249974 bug 249990 --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=