From owner-freebsd-hackers@freebsd.org Tue Aug 11 19:57:24 2015 Return-Path: Delivered-To: freebsd-hackers@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 052BB99F3BC for ; Tue, 11 Aug 2015 19:57:24 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D36A1E5B; Tue, 11 Aug 2015 19:57:23 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (75-48-78-19.lightspeed.cncrca.sbcglobal.net [75.48.78.19]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id E9DE2B98E; Tue, 11 Aug 2015 15:57:22 -0400 (EDT) From: John Baldwin To: Baptiste Daroussin Cc: Adrian Chadd , "freebsd-hackers@freebsd.org" , Bill Sorenson Subject: Re: Sparc64 support Date: Tue, 11 Aug 2015 11:02:03 -0700 Message-ID: <3293168.mJnTOSukKj@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-PRERELEASE; KDE/4.14.3; amd64; ; ) In-Reply-To: <20150808015610.GL43782@ivaldir.etoilebsd.net> References: <20150808015610.GL43782@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 11 Aug 2015 15:57:23 -0400 (EDT) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Aug 2015 19:57:24 -0000 On Saturday, August 08, 2015 03:56:10 AM Baptiste Daroussin wrote: > On Fri, Aug 07, 2015 at 04:54:46PM -0700, Adrian Chadd wrote: > > Hi, > > > > I've tested it with mips/mips64. It works out mostly okay. There are > > still rough edges, because in the mips world we have different > > defaults in our base system gcc to what the current toolchain expects. > > But at least for mips/mips64 it spits out a kernel and binaries that > > work. > > > > What I did to make the MIPS bits call the external toolchain: > > > > make NO_WERROR=1 CROSS_TOOLCHAIN=mips-gcc buildworld > > > > .. so in theory the sparc64 stuff may just be: > > > > pkg install sparc64-gcc sparc64-xtoolchain-gcc > > make NO_WERROR=1 CROSS_TOOLCHAIN=sparc64-gcc buildworld > > > When I added the cross toolchain it was first tested on sparc64 and people > reported that it built and run fine with it. > > This was with gcc 4.9, I haven't tested with 5.2 Should we perhaps looking at switching the default toolchain for sparc64 to external similar to how we require external binutils for aarch64? (Require some sort of explicit make variable on HEAD to permit building with GCC 4.2.1?) -- John Baldwin