From: John Whitington <john@coherentgraphics.co.uk>
To: caml-list@inria.fr
Subject: Compiling OCaml under OS X 10.6
Date: Tue, 1 Sep 2009 17:32:32 +0100 [thread overview]
Message-ID: <57A1F725-CDB5-4361-8E8C-FE99732338BB@coherentgraphics.co.uk> (raw)
Hi Folks,
Has anyone managed this? Bytecode seems fine, native not so.
I've tried just ./configure and ./configure -cc "gcc -m64" with the
source bzip of 3.11.1 as suggested in INSTALL. Both compile fine, but
give:
feast:trunk john$ ocamlopt -c a.ml
feast:trunk john$ ocamlopt -o a a.cmx
ld: warning: in libasmrun.a, file is not of required architecture
Undefined symbols:
"_caml_ml_set_binary_mode", referenced from:
.L139 in stdlib.a(pervasives.o)
.L157 in stdlib.a(pervasives.o)
_camlPervasives__102 in stdlib.a(pervasives.o)
_camlPervasives__102 in stdlib.a(pervasives.o)
... (several hundred more lines)
This is with XCode 3.2 64-bit (from the Snow Leopard DVD), the gcc is
i686-apple-darwin10-gcc-4.2.1.
lipo -info libasmrun.a gives:
input file /usr/local/lib/ocaml/libasmrun.a is not a fat file
Non-fat file: /usr/local/lib/ocaml/libasmrun.a is architecture: x86_64
One possibly-salient error from the build:
ld: warning: -read_only_relocs cannot be used with x86_64
Configure log: http://www.coherentpdf.com/configure.txt
make world.opt log: http://www.coherentpdf.com/build.txt
Another question: Can I build a version of OCaml from these sources
which isn't 64-bit so I can build code which will run on 10.5/10.4?
Cheers,
--
John Whitington
Coherent Graphics Ltd
http://www.coherentpdf.com/
next reply other threads:[~2009-09-01 16:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-01 16:32 John Whitington [this message]
2009-09-02 16:12 ` [Caml-list] " Markus Mottl
2009-09-03 2:28 ` Andres Varon
2009-09-08 12:25 ` John Whitington
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=57A1F725-CDB5-4361-8E8C-FE99732338BB@coherentgraphics.co.uk \
--to=john@coherentgraphics.co.uk \
--cc=caml-list@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