From owner-freebsd-bugs@freebsd.org Tue May 8 01:39:28 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 189ABFC5D7B for ; Tue, 8 May 2018 01:39:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9F03770168 for ; Tue, 8 May 2018 01:39:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 58DBFFC5D7A; Tue, 8 May 2018 01:39:27 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 31878FC5D79 for ; Tue, 8 May 2018 01:39:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BCDBC70166 for ; Tue, 8 May 2018 01:39:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id CE80F1ED87 for ; Tue, 8 May 2018 01:39:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w481dPhQ069769 for ; Tue, 8 May 2018 01:39:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w481dPBP069767 for bugs@FreeBSD.org; Tue, 8 May 2018 01:39:25 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: bugs@FreeBSD.org Subject: [Bug 227918] [PATCH] remove exists check for CROSS_BINUTILS_PREFIX for external clang builds on secondary arches Date: Tue, 08 May 2018 01:39:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: patch 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: bugs@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-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 May 2018 01:39:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227918 --- Comment #5 from Mark Millard --- (In reply to Kenneth Salerno from comment #0) Quote: therefore requires BFLAGS+=3D -B/usr/local/bin/powerpc64-unknown-freebsd${O= SREL}- set in Makefile.inc1 End quote Why not something based more on something like: (the _altbinutils suffix is explained later) CROSS_TOOLCHAIN=3Dllvm60_altbinutils CROSS_BINUTILS_PREFIX=3D/usr/local/powerpc64-unknown-freebsd${OSREL}/bin # ls /usr/local/powerpc64-unknown-freebsd12.0/bin/ ar as ld ld.bfd nm objcopy objdump ranlib readelf siz= e=20=20=20 strip (So strings is missing and would need, say, /usr/local/bin/powerpc64-unknown-freebsd${OSREL}-strings via, say, XSTRINGS= .) Of course there are lines in /usr/local/share/toolchains/llvm60.mk that are a problem and need an alternative to avoid use of lld and such: # diff /usr/local/share/toolchains/llvm60.mk /usr/local/share/toolchains/llvm60_altbinutils.mk 4,5c4,5 < XLD=3D/usr/local/llvm60/bin/ld.lld < CROSS_BINUTILS_PREFIX=3D/var/empty --- > #XLD=3D/usr/local/llvm60/bin/ld.lld > #CROSS_BINUTILS_PREFIX=3D/var/empty I'll note that /usr/src/Makefile.inc1 already has logic for -B that applies absent those when CROSS_BINUTILS_PREFIX is defined and exists: .if defined(CROSS_BINUTILS_PREFIX) && exists(${CROSS_BINUTILS_PREFIX}) # In the case of xdev-build tools, CROSS_BINUTILS_PREFIX won't be a # directory, but the compiler will look in the right place for its # tools so we don't need to tell it where to look. BFLAGS+=3D -B${CROSS_BINUTILS_PREFIX} .endif (I've got such a cross-build in process to test. I've done this before but its been a while.) --=20 You are receiving this mail because: You are the assignee for the bug.=