From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 31 11:46:04 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7296C1065672; Sun, 31 Jul 2011 11:46:04 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id D21458FC0C; Sun, 31 Jul 2011 11:46:03 +0000 (UTC) Received: by wwe6 with SMTP id 6so4679448wwe.31 for ; Sun, 31 Jul 2011 04:46:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=unO+XKNcGdxQTNWdA/7cjZuAcWEYwHbI8q8+eYVpht0=; b=t1+3kpjPS+7tAQNEt2tItrnjgjyKaWf3XEtURLYw1m40tvrwarhRhpaGmiHBDfsU1g KLGd0H8ukN/4f6ulr/oJcuX2lzh8LeOd7t2LeQc1LeVuhgC2esfPymI902flYKSHqLWV cNxE3GrU3kIjwOXbHOcPMKM0Gn87vrOMoj2dQ= MIME-Version: 1.0 Received: by 10.227.195.197 with SMTP id ed5mr4794709wbb.104.1312111342518; Sun, 31 Jul 2011 04:22:22 -0700 (PDT) Sender: c.jayachandran@gmail.com Received: by 10.216.186.11 with HTTP; Sun, 31 Jul 2011 04:22:22 -0700 (PDT) In-Reply-To: References: <565C98BA-9B92-4F07-A747-DDA5DC3D7703@freedomnet.co.nz> Date: Sun, 31 Jul 2011 16:52:22 +0530 X-Google-Sender-Auth: tnX2P4xC5fYsj1BhXrtsxJeBebs Message-ID: From: "Jayachandran C." To: Robert Watson Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-hackers@freebsd.org" , James Jones Subject: Re: MIPS toolchain X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jul 2011 11:46:04 -0000 On Sun, Jul 31, 2011 at 2:33 PM, Robert Watson wrote: > > On Fri, 29 Jul 2011, James Jones wrote: > >> Does anyone have a prebuilt MIPS tool chain? > > For FreeBSD-related MIPS work, I generally use the FreeBSD "toolchain" > target followed by the "buildenv" environment, but that requires first > building a cross-toolchain using TARGET_ARCH and TARGET. =A0However, the > result is a pretty sane compiler, linker, etc, setup for the MIPS of your > choice (we tend to use mips64eb). > > We also use the MIPS-provided SDE toolchain for Linux at the CL, but that > appears to be out of maintenance, and I haven't found its bug density to = be > any lower, really, than the even more ageing FreeBSD versions of the tool= s. Yes, the FreeBSD MIPS tool-chain is pretty good in both the cross compile and native compile setup. For Linux, the CodeSourcery G++ Lite version of GCC is pretty good and easy to setup, if you want a relatively newer version. > In fact, there are some toolchain bugs I'm running into that manifest onl= y > in the SDE toolchain and not the FreeBSD toolchain. =A0(Mind you, Philip = has > commented that in building Uboot for MIPS, he's found FreeBSD bugs that > don't appear in the SDE toolchain, so mileage varies). Any idea what the bugs where? If there are fixes that can be backported without license issues, we take take a look at this. > We're greatly looking forward to MIPS support for LLVM, which currently > appears very premature indeed. =A0Someone from MIPS appears to be contrib= uting > to it, however, and we (cl.cam.ac.uk) hope to provide some implementation > support for that effort in the immediate future. JC.