From owner-freebsd-ports-bugs@freebsd.org Sat Aug 10 04:48:40 2019 Return-Path: Delivered-To: freebsd-ports-bugs@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 5905DB2330 for ; Sat, 10 Aug 2019 04:48:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4658kw1f8Pz4PV5 for ; Sat, 10 Aug 2019 04:48:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 38527B232F; Sat, 10 Aug 2019 04:48:40 +0000 (UTC) Delivered-To: ports-bugs@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 38130B232D for ; Sat, 10 Aug 2019 04:48:40 +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) server-signature RSA-PSS (4096 bits) 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 4658kw0mQlz4PV4 for ; Sat, 10 Aug 2019 04:48:40 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E959C20AB8 for ; Sat, 10 Aug 2019 04:48:39 +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 x7A4md4k006588 for ; Sat, 10 Aug 2019 04:48:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x7A4mdUJ006587 for ports-bugs@FreeBSD.org; Sat, 10 Aug 2019 04:48:39 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 239743] Mk/bsd.port.mk: don't switch to ld.bfd on powerpc64 with clang Date: Sat, 10 Aug 2019 04:48:33 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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 Many People X-Bugzilla-Who: jbeich@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: attachments.isobsolete cc attachments.created 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-ports-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Aug 2019 04:48:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239743 Jan Beich changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #206395|0 |1 is obsolete| | CC| |jbeich@FreeBSD.org --- Comment #13 from Jan Beich --- Created attachment 206411 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D206411&action= =3Dedit patch Antoine, does this work for you? It worked for pkubaj@. I'm not sure if my commit message/inline comment are correct, though. - Only one extra conditional (easy to understand) - Comment why there (easy to refactor) - Drop OSVERSION to avoid redundancy with ld =3D=3D lld conditional - Add -B${LOCALBASE}/bin because USE_BINUTILS alone doesn't (In reply to Piotr Kubaj from comment #4) > Regarding why powerpc64 needs special treatment: > when it switches to clang, ld.bfd will still be installed. > The reason is that lld currently doesn't support linking powerpc (32-bit)= binaries. > We will use lld for 64-bit binaries, however. Do you mean -m64 uses ELFv2 while -m32 uses ELFv1? If so either review D202= 61 or review D20383 needs to make Clang default to BFD linker when -m32 is pas= sed e.g., via getDefaultLinker(). --=20 You are receiving this mail because: You are on the CC list for the bug.=