From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: "Jérémie Dimino" <jeremie@dimino.org>
Cc: Gabriel Scherer <gabriel.scherer@gmail.com>,
caml-list list <caml-list@inria.fr>
Subject: Re: [Caml-list] state of native dynlink on os x
Date: Thu, 8 Mar 2012 17:31:58 +0100 [thread overview]
Message-ID: <57418AA2-BC39-480E-B702-98F4528BF334@polytechnique.org> (raw)
In-Reply-To: <20120308172558.4eb849c9@caladan.esterel-technologies.com>
On 8 mars 2012, at 17:25, Jérémie Dimino wrote:
> Le Thu, 8 Mar 2012 17:16:30 +0100,
> Gabriel Scherer <gabriel.scherer@gmail.com> a écrit :
>
>> This error is not Mac-related (I can reproduce it on my Debian).
>> I believe it is a result from the "link-by-need" semantics of the .cma
>> and .cmxa: loader.ml does not explicitly depend on test, so when
>> producing the executable test.cmxa isn't linked (modules included
>> .cm{x,}a, contrarily to .cm{x,o}, are only linked when they are a
>> runtime dependency of one of the other modules).
>>
>> I can remove the error by either:
>> - compiling to "test.cmx" instead of "test.cmxa"
>> - or adding a dummy dependency in loader.ml:
>> let () = ignore (Test.f)
>
> You can also use -linkall for building loader.native. In fact -linkall
> should always be used when you are using dynlink plugins.
That was it. Thanks a lot!
Alan
prev parent reply other threads:[~2012-03-08 16:32 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-15 11:17 Alan Schmitt
2012-02-15 12:34 ` Daniel Bünzli
2012-02-15 14:16 ` Alan Schmitt
2012-02-17 6:47 ` Alan Schmitt
2012-02-27 15:43 ` Damien Doligez
2012-02-27 17:49 ` Pierre-Alexandre Voye
2012-02-28 10:15 ` David MENTRE
2012-02-28 10:32 ` Pierre-Alexandre Voye
2012-02-28 15:34 ` Alan Schmitt
2012-02-29 8:33 ` Alan Schmitt
2012-03-07 10:55 ` Damien Doligez
2012-03-07 15:14 ` Alan Schmitt
2012-03-08 11:13 ` Alan Schmitt
2012-03-08 14:16 ` Alan Schmitt
2012-03-08 14:23 ` Pierre-Alexandre Voye
2012-03-08 14:35 ` Alan Schmitt
2012-03-08 15:50 ` Pierre-Alexandre Voye
2012-03-08 16:19 ` Jérémie Dimino
2012-03-08 16:16 ` Gabriel Scherer
2012-03-08 16:25 ` Jérémie Dimino
2012-03-08 16:31 ` Alan Schmitt [this message]
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=57418AA2-BC39-480E-B702-98F4528BF334@polytechnique.org \
--to=alan.schmitt@polytechnique.org \
--cc=caml-list@inria.fr \
--cc=gabriel.scherer@gmail.com \
--cc=jeremie@dimino.org \
/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