From owner-freebsd-arm@FreeBSD.ORG Tue Jun 2 17:17:10 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF82E1065725 for ; Tue, 2 Jun 2009 17:17:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 9090A8FC14 for ; Tue, 2 Jun 2009 17:17:10 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id n52GdaVt059241 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 2 Jun 2009 09:39:36 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <4A2555C8.8040405@freebsd.org> Date: Tue, 02 Jun 2009 09:39:36 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.21 (X11/20090411) MIME-Version: 1.0 To: Vassilis Laganakos References: <77926.36276.qm@web59405.mail.ac4.yahoo.com> In-Reply-To: <77926.36276.qm@web59405.mail.ac4.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-Misty-Metrics: ebb.errno.com; whitelist Cc: freebsd-arm@freebsd.org Subject: Re: ARMv7 - EABI - Cross Compiler X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2009 17:17:11 -0000 Vassilis Laganakos wrote: > Hello, > > I recently started working on getting a later version of GCC as a cross-compiler for FreeBSD. > The main reason is that I'm interested in having support for the "new" ARM EABI that will give > the benefits of ARMv5TE onwards, to all the boards that use it (Mistral EVM, BeagleBoard, etc) > > I've built gcc 4.4.1 (rev 147925) and binutils (2.19.51.20090527), using the 7-STABLE headers where appropriate. > I'm now trying to built libc from the same branch. I'm trying to pull out libc from the building tree, and > build it with the above toolchain so that it will be available to use it with that (once done, I'll commit a port for this); > at the same time I'm try to drop the GCC 4.4.1 in the build tree to be able to use it for building the world. > > Please let me know whether I'm going down the wrong path or not :o) Tips and advice pointers towards > the right direction would be more than helpful! > > I don't know if someone else is working on something similar, but if the answer is "yes" I would be quite > happy to be of help. If not, any kind of help would be most appreciated :o) > > Your basic approach sounds fine. I believe you will find many small changes to base code required by the later version of gcc (depending on compile options). If you work with HEAD instead of RELENG_7 then these changes can likely be merged and will simplify your effort in the future. Ideally you should be able to install the gcc port, pull freebsd code, and then use the xdev build mechanism to cross-build w/ the toolchain. Sam