From: Roberto Bagnara <bagnara@cs.unipr.it>
To: caml-list@yquem.inria.fr
Subject: ocamlc problem on Mac OS X
Date: Tue, 13 Mar 2007 06:44:42 +0100 [thread overview]
Message-ID: <45F63A4A.9090009@cs.unipr.it> (raw)
Dear all,
I have a problem compiling mlgmp (http://www.di.ens.fr/~monniaux/programmes.html.en)
under Mac OS X. At some stage, the make process invokes
ocamlc -g -custom gmp.cma test_suite.cmo -o test_suite
which results into
gcc -o 'test_suite' -I'/opt/local/lib/ocaml' /tmp/camlprimd07b82.c '-L/opt/local/lib/ocaml' '-lmlgmp' '-L.' \
'-L' '-Wl,-rpath' '-lmpfr' '-lgmp' '-L/opt/local/lib/ocaml/gmp' -lcamlrun -lcurses -lpthread
and thus in the error
/usr/bin/ld: -L: directory name missing
For comparison, under Linux the ocamlc command above results into
gcc -Wl,-E -o 'test_suite' -I'/usr/lib/ocaml' /tmp/camlprim8c1318.c '-L/usr/lib/ocaml' '-lmlgmp' '-L.' \
'-L/usr/lib' '-Wl,-rpath' '/usr/lib' '-lmpfr' '-lgmp' '-L/usr/lib/ocaml/gmp' -lcamlrun -lm -ldl -lcurses -lpthread
which seems to suggest there is a bug in ocamlc (at least in the Mac OS X version).
Notice that using Objective Caml version 3.09.3 from Fink or version 3.09.2
from DarwinPorts does not make any difference.
Does anyone know what the problem might be?
All the best,
Roberto
--
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:bagnara@cs.unipr.it
next reply other threads:[~2007-03-13 5:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-13 5:44 Roberto Bagnara [this message]
2007-03-13 13:46 ` [Caml-list] " Xavier Leroy
2007-03-13 16:12 ` Roberto Bagnara
-- strict thread matches above, loose matches on Subject: below --
2007-02-14 20:01 Roberto Bagnara
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=45F63A4A.9090009@cs.unipr.it \
--to=bagnara@cs.unipr.it \
--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