caml-list - the Caml user's mailing list
 help / Atom feed
From: Papa Tango <papatango.nyc@gmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] ocamlbuild(0.14) -> core(v0.12.0) -> fails at runtime
Date: Fri, 8 Mar 2019 16:56:03 -0500
Message-ID: <CABd0MudMO_Nh-UpxAVHHMuA7HdyKvagempSz8fvrh+K0d5Rb5w@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1641 bytes --]

I believe there may be a bug in ocamlbuild when attempting to build
projects that require Jane Street's Core and related packages. Or perhaps
the error lies with Core, but I am no judge. Or perhaps my use of
ocamlbuild is flawed.

I started a simple project from scratch and with just 2 modules, and one of
them merely being dedicated to command line parsing, I could not get the
program to work with the most recent versions of OCaml (4.07.1), Core
(v.0.12.0), and ocamlbuild (0.14) available through opam (v2.0.0), all on a
Debian box. The project compiles but at runtime I get an error:

Fatal error: cannot load shared library dllcore_stubs
Reason: /<home_path>/.opam/4.07.1/lib/stublibs/dllcore_stubs.so: undefined
symbol: caml_exn_Invalid_argument

I double checked my environment variables. And this was not within an emacs
shell. In my Makefile I was passing -pkgs to ocamlbuild a list including
core, and I experimented with adding base and core_kernel, but that didn't
help. I slowly stripped away dependencies of anything related to Core, but
the error persisted until I completely removed Core. I was not even using
Core for command line parsing, nor in the module dedicated to command line
parsing. Compilation was always successful, however.

Finally, I gave up and downgraded to Ocaml 4.06.0 and Core 0.11.3 and the
same project compiles and runs just fine while including Core. Considering
that my version of ocamlbuild did not downgrade, I suspect something
changed over at Core...but still...it would be nice to support building
with Core even if the error lies there.   Has anyone else seen this issue?

Thank you.

-Paul

[-- Attachment #2: Type: text/html, Size: 1869 bytes --]

             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-08 23:09 Papa Tango [this message]
2019-03-11 11:18 ` Jeremie Dimino

Reply instructions:

You may reply publically 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=CABd0MudMO_Nh-UpxAVHHMuA7HdyKvagempSz8fvrh+K0d5Rb5w@mail.gmail.com \
    --to=papatango.nyc@gmail.com \
    --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

caml-list - the Caml user's mailing list

Archives are clonable: git clone --mirror https://inbox.ocaml.org/caml-list

AGPL code for this site: git clone https://public-inbox.org/ public-inbox