From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 31 13:05:07 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 9B6DA106564A for ; Sun, 31 Jul 2011 13:05:07 +0000 (UTC) (envelope-from james@freedomnet.co.nz) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 491128FC15 for ; Sun, 31 Jul 2011 13:05:06 +0000 (UTC) Received: by vxg33 with SMTP id 33so5057092vxg.13 for ; Sun, 31 Jul 2011 06:05:06 -0700 (PDT) Received: by 10.52.173.45 with SMTP id bh13mr54442vdc.3.1312117506422; Sun, 31 Jul 2011 06:05:06 -0700 (PDT) Received: from [192.168.1.4] (pool-108-7-70-195.bstnma.fios.verizon.net [108.7.70.195]) by mx.google.com with ESMTPS id ca9sm826672vdc.27.2011.07.31.06.05.04 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 31 Jul 2011 06:05:05 -0700 (PDT) References: <565C98BA-9B92-4F07-A747-DDA5DC3D7703@freedomnet.co.nz> In-Reply-To: Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <01E9E7A6-8043-4E8E-9F06-1818F67CB0C1@freedomnet.co.nz> X-Mailer: iPhone Mail (9A5220p) From: James Jones Date: Sun, 31 Jul 2011 09:05:00 -0400 To: Robert Watson Cc: "freebsd-hackers@freebsd.org" 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 13:05:07 -0000 Could you provide steps for building cross tool chain. I have not done it so= long. I have tried many different versions of howtos but all have fallen sh= ort or I am not understanding. I need a toolchain for target 'mips-unknown-e= lf'.=20 Sent from my iPhone On Jul 31, 2011, at 5:03 AM, Robert Watson wrote: >=20 > On Fri, 29 Jul 2011, James Jones wrote: >=20 >> Does anyone have a prebuilt MIPS tool chain? >=20 > For FreeBSD-related MIPS work, I generally use the FreeBSD "toolchain" tar= get followed by the "buildenv" environment, but that requires first building= a cross-toolchain using TARGET_ARCH and TARGET. However, the result is a p= retty sane compiler, linker, etc, setup for the MIPS of your choice (we tend= to use mips64eb). >=20 > We also use the MIPS-provided SDE toolchain for Linux at the CL, but that a= ppears to be out of maintenance, and I haven't found its bug density to be a= ny lower, really, than the even more ageing FreeBSD versions of the tools. I= n fact, there are some toolchain bugs I'm running into that manifest only in= the SDE toolchain and not the FreeBSD toolchain. (Mind you, Philip has com= mented that in building Uboot for MIPS, he's found FreeBSD bugs that don't a= ppear in the SDE toolchain, so mileage varies). >=20 > We're greatly looking forward to MIPS support for LLVM, which currently ap= pears very premature indeed. Someone from MIPS appears to be contributing t= o it, however, and we (cl.cam.ac.uk) hope to provide some implementation sup= port for that effort in the immediate future. >=20 > Robert