From owner-freebsd-sparc64@freebsd.org Mon Nov 9 02:20:43 2015 Return-Path: Delivered-To: freebsd-sparc64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4D56FA24EBC for ; Mon, 9 Nov 2015 02:20:43 +0000 (UTC) (envelope-from craig001@lerwick.hopto.org) Received: from mx.bsdtec.net (bsdtec.plus.com [84.92.41.141]) by mx1.freebsd.org (Postfix) with ESMTP id CF5F01ADE for ; Mon, 9 Nov 2015 02:20:42 +0000 (UTC) (envelope-from craig001@lerwick.hopto.org) Received: from localhost (mx.bsdtec.net [172.16.32.2]) by mx.bsdtec.net (Postfix) with ESMTP id 508951B57A for ; Mon, 9 Nov 2015 02:14:53 +0000 (UTC) Received: from mx.bsdtec.net ([172.16.32.2]) by localhost (mx.bsdtec.net [172.16.32.2]) (amavisd-new, port 10032) with ESMTP id 4r4pZSw-K658 for ; Mon, 9 Nov 2015 02:14:49 +0000 (UTC) Received: from localhost (mx.bsdtec.net [172.16.32.2]) by mx.bsdtec.net (Postfix) with ESMTP id 18BC81B573 for ; Mon, 9 Nov 2015 02:14:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at bsdtec.net Received: from mx.bsdtec.net ([172.16.32.2]) by localhost (mx.bsdtec.net [172.16.32.2]) (amavisd-new, port 10026) with ESMTP id d52UC3J8z9rG for ; Mon, 9 Nov 2015 02:14:48 +0000 (UTC) Received: from zbox.lerwick.hopto.org (unknown [192.168.1.1]) by mx.bsdtec.net (Postfix) with ESMTPSA id B6C221B569 for ; Mon, 9 Nov 2015 02:14:45 +0000 (UTC) Date: Mon, 9 Nov 2015 02:18:29 +0000 From: Craig Butler To: freebsd-sparc64@freebsd.org Subject: Re: Sparc64 doesn't care about you, and you shouldn't care about Sparc64 Message-ID: <20151109021829.626222b1@zbox.lerwick.hopto.org> In-Reply-To: References: <563A5893.1030607@freebsd.org> <2AAC0EF3-528B-476F-BA9C-CDC3004465D0@bsdimp.com> <20151108155501.GA1901@alchemy.franken.de> X-Mailer: Claws Mail 3.13.0 (GTK+ 2.24.28; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Nov 2015 02:20:43 -0000 On Sun, 8 Nov 2015 18:43:39 -0700 Warner Losh wrote: > On Sun, Nov 8, 2015 at 2:45 PM, Ed Maste wrote: > > > On 8 November 2015 at 20:46, Justin Hibbits > > wrote: > > > > > > I 100% agree with you on this. If we can update binutils to the > > > latest and greatest, I believe powerpc64 would be able to work > > > with clang. I've backported several patches, with IBM's > > > permission, to binutils for handling new relocations, etc. > > > However, not all patches are straight forward, and currently > > > we're missing something, which is causing odd segfaults in ld(1), > > > when linking as(1). No other binary, only as(1). I've tried > > > looking through it, but the binutils code is a mess. I'm sure > > > the bug that's getting hit was fixed with newer binutils, but > > > have had a very hard time trying to test with it. > > > > We have support in the tree to use an external binutils > > automatically > > - we use this on arm64, which is completely unsupported by the > > in-tree binutils. External binutils is enabled by setting > > CROSS_BINUTILS_PREFIX=/usr/local/${TARGET_ARCH}-freebsd/bin/ > > > > This happens automatically if the target specifies > > BINUTILS_BOOTSTRAP in BROKEN_OPTIONS -- for example, arm64 sets > > BROKEN_OPTIONS+=BINUTILS BINUTILS_BOOTSTRAP GCC GCC_BOOTSTRAP GDB > > > > I'd suggest that the first step in any of these discussions is to > > use this to test building with the binutils port. We know it won't > > work for mips today because upstream bintuils lacks FreeBSD/mips > > support. It may work for other targets though. Even if it doesn't > > the same work needs to be done regardless of whether the target > > uses an up-to-date binutils from ports or from the src tree. > > > Speaking of CROSS_BINUTILS_PREFIX, we need to unify CROSS*PREFIX stuff > with the CROSS_TOOLCHAIN stuff. Two different ways to specify thing. > > Warner > _______________________________________________ > freebsd-sparc64@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-sparc64 > To unsubscribe, send any mail to > "freebsd-sparc64-unsubscribe@freebsd.org" Hi Folks I am available to do the dogs work... test patches, compile etc etc. The last clang venture did not end well. Would like to help get a modern binutils and co going for sparc64. Kind Regards Craig Butler