From nobody Tue Feb 1 22:52:46 2022 X-Original-To: ports-bugs@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 B408A197E842 for ; Tue, 1 Feb 2022 22:52:46 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JpKvf2XF4z3nMs for ; Tue, 1 Feb 2022 22:52:46 +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 367C9192E1 for ; Tue, 1 Feb 2022 22:52:46 +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 211MqkCj036959 for ; Tue, 1 Feb 2022 22:52:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 211Mqk49036958 for ports-bugs@FreeBSD.org; Tue, 1 Feb 2022 22:52:46 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: ports-bugs@FreeBSD.org Subject: [Bug 261668] bsd.port.mk: Correct usage of -fuse-ld=bfd Date: Tue, 01 Feb 2022 22:52:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: eugen@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: 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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643755966; 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; bh=TK4AJthjjwBbtwSimnzZbhOXE1E8ej+7XIWIbsn4qDo=; b=icVpcSwBNP9MxfoTHu+D7NQ93Q7tdsx3u1lQATZ7unAqc5B6QczcTgzECyeAl7feaVD2wQ SfBZvPo6DDcrMeXQ01LGTcn7aUwYZn2R4CzRJ5GmjMXYrzUIW0b0yDHe6qfIXu59EO+Kcl irg9gAGsNc3f5PsBy9FWbzLEy7/BesFKQYjGoetBnqUWr/Bj/44Lph3cSNHfSgOoOXXm5b 6oLRVrGB2NFGvgfpjC+bMDWLNEZ2ygtsS4L0UHhzG/8UbCM2WIPp2JjfM/ZLRDSkMgRQiL Slj1HChhvYWZhwx9PprLTO/yO6UHOolBXojs1/+J6Zg4kjOBm7WeEQ9f8tTPvA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643755966; a=rsa-sha256; cv=none; b=gwJysKRr69sIHYPKk71IVPnLSA26PCnJxfM+TvMFc4jULih+/DIOqk7MYSdRrIcdlGWDLQ XQWIECs+kSdQjhV8G38nsr2ZlIUPDSUR/L2FN8bZnW5Hc0jDvGST6sMyFkzZyGNSikWwZU oCiYdqRZUpZWXb3BG8ZeZ7MJZpFRMJsSuhm8cfnl3wg3TKfVFtLcx0C8xGPZ8yBlF72b8+ 077OpZN+krWZcBRBX/KARVCs1Y8n+dW9djldUsZ3sUixAinZpKKsKGGWxK0A/mYBSg5wAX ayheIHvYWOXApsDfTStP2hn/zyfH4Ol5GDtyn8bmdMSMfH4iNPqUtiJu/9bvog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261668 Bug ID: 261668 Summary: bsd.port.mk: Correct usage of -fuse-ld=3Dbfd Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: eugen@freebsd.org CC: ports-bugs@FreeBSD.org Created attachment 231512 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231512&action= =3Dedit Correct usage of -fuse-ld=3Dbfd bsd.ports.mk has this: if defined(LLD_UNSAFE) && ${/usr/bin/ld:L:tA} =3D=3D /usr/bin/ld.lld LDFLAGS+=3D -fuse-ld=3Dbfd BINARY_ALIAS+=3D ld=3D${LD} . if !defined(USE_BINUTILS) ... The line with LDFLAGS should be moved just after ".if !defined(USE_BINUTILS= )" or else build fails for a software that defines USE_BINUTILS and LLD_UNSAFE= for sake of "-plugin" option of a linker not supported by ld.bfd. Actual example is the port editors/libreoffice version 7.2.5.2 built with non-default port option LTO enabled that is broken at the moment due to sev= eral issues. One of them is this problem in the bsd.ports.mk that cannot be solv= ed within port itself. Trivial fix is attached. --=20 You are receiving this mail because: You are on the CC list for the bug.=