caml-list - the Caml user's mailing list
 help / Atom feed
From: Jeremie Dimino <jdimino@janestreet.com>
To: Papa Tango <papatango.nyc@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] ocamlbuild(0.14) -> core(v0.12.0) -> fails at runtime
Date: Mon, 11 Mar 2019 11:18:11 +0000
Message-ID: <CANhEzE5deCmGd_mSUxZqme540oNht6RYMooOARj9QifFFPKhPg@mail.gmail.com> (raw)
In-Reply-To: <CABd0MudMO_Nh-UpxAVHHMuA7HdyKvagempSz8fvrh+K0d5Rb5w@mail.gmail.com>

Could you open a ticket on github.com/janestreet/core? That's the
right place to report such errors.

Additionally, could you try to reproduce the error with dune rather
than ocamlbuild? Building an application using Core with ocamlbuild
should work, however it is not being tested.

Thanks,

Jeremie

On Fri, Mar 8, 2019 at 11:09 PM Papa Tango <papatango.nyc@gmail.com> wrote:
>
> 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



-- 
Jeremie

      reply index

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

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=CANhEzE5deCmGd_mSUxZqme540oNht6RYMooOARj9QifFFPKhPg@mail.gmail.com \
    --to=jdimino@janestreet.com \
    --cc=caml-list@inria.fr \
    --cc=papatango.nyc@gmail.com \
    /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