From owner-freebsd-ports-bugs@freebsd.org Fri Aug 9 18:45:29 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 98C2CCED77 for ; Fri, 9 Aug 2019 18:45:29 +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 464vLx2n1Bz3NfJ for ; Fri, 9 Aug 2019 18:45:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 5EC22CED75; Fri, 9 Aug 2019 18:45:29 +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 5E767CED74 for ; Fri, 9 Aug 2019 18:45:29 +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 464vLx1tT3z3NfH for ; Fri, 9 Aug 2019 18:45:29 +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 2348019F1E for ; Fri, 9 Aug 2019 18:45:29 +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 x79IjTJl039155 for ; Fri, 9 Aug 2019 18:45:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x79IjTaP039154 for ports-bugs@FreeBSD.org; Fri, 9 Aug 2019 18:45:29 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: Fri, 09 Aug 2019 18:45:29 +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: pkubaj@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: 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: Fri, 09 Aug 2019 18:45:29 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239743 --- Comment #5 from Piotr Kubaj --- (In reply to Piotr Kubaj from comment #4) This is still not enough (my patch works). misc/e2fsprogs-libuuid fails to configure: 1187 configure:3325: cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=3Dgnu99=20 -I/tmp/usr/ports/misc/e2fsprogs-libuuid/work/e2fsprogs-1.45.3/lib -I/usr/local/include -fstack-protector-strong -fuse-ld=3Dbfd conftest.c >&5 1188 /usr/bin/ld.bfd: Dwarf Error: found dwarf version '4', this reader = only handles version 2 information. 1189 /usr/lib/crt1.o: In function `_start': 1190 crt1.c:(.text+0x2): undefined reference to `.TOC.' The reason is that ld.bfd is used, which doesn't even know about elfv2. We = need to either use lld (which works for this port on CURRENT but not on 12.0-RELEASE/amd64) or ld.bfd from ports. Since -fuse-ld allows for passing= the whole patch to the linker, this is what we must do. --=20 You are receiving this mail because: You are on the CC list for the bug.=