From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 689DFBBC4 for ; Wed, 1 Apr 2009 16:12:25 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.39,306,1235948400"; d="scan'208";a="23733827" Received: from unknown (HELO mp-57040.rocqadm.inria.fr) ([128.93.57.40]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 01 Apr 2009 16:12:25 +0200 Message-Id: From: xclerc To: caml-list@yquem.inria.fr In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: [Caml-list] PowerPC 405 Date: Wed, 1 Apr 2009 16:12:25 +0200 References: <49CD0AB7.8000200@inria.fr> X-Mailer: Apple Mail (2.930.3) X-Spam: no; 0.00; powerpc:01 cross-:01 cross-:01 ocaml:01 makefile:01 makefiles:01 wiki:01 config:01 config:01 binaries:01 experimental:01 caml-list:01 kegel:01 emulate:01 behaviour:01 Le 30 mars 09 =E0 15:45, xclerc a =E9crit : (...) > I have built a MacOS-to-Linux cross-compiler last week. > I do confirm that the hard part is getting a cross-[g]cc up and =20 > running. > In fact, this is so tedious that I strongly encourage to resort to =20 > either > a prepackaged cross-[g]cc (from binaries, from a Linux packaging > system, whatever), or to the excellent "crosstool" available at : > http://www.kegel.com/crosstool/ > > On the OCaml side, there are very few things to do and they are > quite straightforward. First, you have to emulate the behaviour of > "./configure" by producing "config/m.h", "config/s.h", and "config/=20 > Makefile" > by hand. This is easier than it may sound, just start from "config/m-=20= > templ.h", > "config/s-temp.h", and "config/Makefile-templ" (these are =20 > comprehensively > commented). > Then, you will have to slightly patch some Makefiles, and you are =20 > done. > > I will setup a webpage with all the necessary steps and patches as =20 > soon > as I get my notes organized. This will allow us to share knowledge =20 > on the subject. The build process I followed along with its accompagnying patch are available on the Gallium wiki at the following URL: http://brion.inria.fr/gallium/index.php/CrossCompiler This is clearly a very experimental draft that is still a bit hackish. All reports, both positive and negative are hence very welcome, in order to polish it up. Hope this helps, Xavier Clerc =09