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=3.4 required=5.0 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_SOFTFAIL autolearn=disabled version=3.1.3 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 12EAEBC69 for ; Sat, 15 Sep 2007 19:28:16 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAALSz60ZBNvZti2dsb2JhbACNA4EPAQEBCAQEEREF X-IronPort-AV: E=Sophos;i="4.20,259,1186351200"; d="scan'208";a="1238622" Received: from bay0-omc1-s37.bay0.hotmail.com ([65.54.246.109]) by mail2-smtp-roc.national.inria.fr with ESMTP; 15 Sep 2007 19:28:58 +0200 Received: from hotmail.com ([207.46.10.246]) by bay0-omc1-s37.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Sat, 15 Sep 2007 10:28:56 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 15 Sep 2007 10:28:56 -0700 Message-ID: Received: from 207.46.10.254 by by122fd.bay122.hotmail.msn.com with HTTP; Sat, 15 Sep 2007 17:28:51 GMT X-Originating-IP: [88.172.96.66] X-Originating-Email: [pascal_cuoq@hotmail.com] X-Sender: pascal_cuoq@hotmail.com From: "Pascal Cuoq" To: caml-list@yquem.inria.fr Subject: Compilation of ocaml 3.10.0/64bit on Mac Os X Intel Date: Sat, 15 Sep 2007 17:28:51 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 15 Sep 2007 17:28:56.0116 (UTC) FILETIME=[E4B2EF40:01C7F7BD] X-Spam: no; 0.00; cuoq:01 cuoq:01 compilation:01 ocaml:01 ocaml:01 bytecode:01 compiler:01 wget:01 ocaml-:01 gcc:01 -prefix:01 usr:01 bytecode:01 compiler:01 makefile:01 Hello everyone! I didn't see anyone report success compiling the 64bit version of Ocaml on Mac Os X Intel, so I had a go at it today. Here is where I stopped, perhaps someone more knowledgable can continue from there. I got the bytecode and native compiler to compile, and to compile some big projects successfully, but I didn't have any success at bootstrapping. Here is the recipe I suggest: - get patch (warning: this patch does not try to preserve the possibility to compile with any other architecture, including Mac Os X/32): wget http://steviafrance.com/pascal/ocaml_macosx_amd64.diff - apply patch: cd ocaml-3.10.0 patch -p0 < ../ocaml_macosx_amd64.diff - configure: ./configure -host x86_64-apple-darwin -cc "gcc -m64" -prefix /usr/local/64 - make bytecode compiler: make world - edit config/Makefile, replace the line ASPPFLAGS=-c -DSYS_$(SYSTEM) by: ASPPFLAGS=-c -arch x86_64 -DSYS_$(SYSTEM) - make native compiler: make opt Pascal _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/