Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Pascal Cuoq" <pascal_cuoq@hotmail.com>
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	[thread overview]
Message-ID: <BAY122-F38DAB3025B180C98C9CC0D94BD0@phx.gbl> (raw)

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/


                 reply	other threads:[~2007-09-15 17:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BAY122-F38DAB3025B180C98C9CC0D94BD0@phx.gbl \
    --to=pascal_cuoq@hotmail.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox