From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by c5ff346549e7 (Postfix) with ESMTPS id D58902DF6 for ; Fri, 8 Mar 2019 23:09:05 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.58,456,1544482800"; d="scan'208,217";a="372586894" Received: from sympa.inria.fr ([193.51.193.213]) by mail2-relais-roc.national.inria.fr with ESMTP; 09 Mar 2019 00:09:04 +0100 Received: by sympa.inria.fr (Postfix, from userid 20132) id 79DE582603; Sat, 9 Mar 2019 00:09:04 +0100 (CET) Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 410E97F61F for ; Fri, 8 Mar 2019 22:56:41 +0100 (CET) Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=papatango.nyc@gmail.com; spf=Pass smtp.mailfrom=papatango.nyc@gmail.com; spf=None smtp.helo=postmaster@mail-lf1-f43.google.com IronPort-PHdr: =?us-ascii?q?9a23=3AiQLuTxz+cZ8hYzXXCy+O+j09IxM/srCxBDY+r6Qd?= =?us-ascii?q?1OoXIJqq85mqBkHD//Il1AaPAdyDraodw8Pt8InYEVQa5piAtH1QOLdtbDQizf?= =?us-ascii?q?ssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1?= =?us-ascii?q?JuPoEYLOksi7ze+/94DPbwlSmDaxfK55IQmrownWqsQYm5ZpJLwryhvOrHtIeu?= =?us-ascii?q?BWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbO?= =?us-ascii?q?SxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDwULs6Wymt771zRRDniC?= =?us-ascii?q?kJOT03/nzJhMNsl69Uug6tqgZlzoLIfI2YNvxzdb7dc9MAQmpBW95cWTZbDYOk?= =?us-ascii?q?dYQEEvQPMvxer4nyoFsFsByzBRG2C+P30DBImmX53as10+QmCw3G2gwhEM4VvX?= =?us-ascii?q?TbqdX6LqYSUeSvwKbUyjXDaupb1DHg44bLahAsue+AUa50fMbLykQiFxnJgkiR?= =?us-ascii?q?pIHnJT+Y2eoAvm6G5OR6T+2vkXQoqwRprziv2Mgsjo7Ji5oQyl/e9CV5xJ85Jd?= =?us-ascii?q?m2SEJmeNKkHpRdui+AO4t5RcMiRG5ouCIkxbEcpZG7ey0KxIwmxx7ZdfOHb5CF?= =?us-ascii?q?7gz/WOuVOzt1h3JodKiiixuz80Ws0OLxW8es3FZPtCVFk93Mtn4X1xzU78iKUu?= =?us-ascii?q?N98V252TmVywDc8OdEIU8zlabBLZ4gwqI/m4EcsUTGBCD2mUH2gLWKeUUj/+ik?= =?us-ascii?q?8/7nban+pp+AK490jRnzPbg0lcy6BeQ0KwwOX2mA+eSgz7Dj5k34QLBSjvIsiK?= =?us-ascii?q?XZsZbaJd4apqGjGQNV3JwjuF6DCGKt2dEc2H0GN05teRSdjoGvNUudDur/CKKH?= =?us-ascii?q?ikyl2Atiwf/Bdun5C43EMnHFn7Cne6d2w0FZwQs3i9tY4sQHWfk6PPvvVxqp55?= =?us-ascii?q?TjBRgjPlnsmre1OJBGzoobHFm3LOqcOaLWv0WP47t2ceaJbY4R/j36Lqp8vqK8?= =?us-ascii?q?vToCgVYYOJKR894PcnnhR6ZpJkyYZTznhdJTST5X7Dp7d/TjjRi5aRAWZ3u2WP?= =?us-ascii?q?hhtDQyCYbjCYmaA47x2/qO2yC0GpAQbWdDWAiB?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0BJAgBA5IJchiunVdFkhE6BRCeECYEdg?= =?us-ascii?q?l6PTYtPcYgAhgeBZw2JIxoHAQQ0EgEBAwEBBwEDAQEBEwEBAQgLCwgpIwyCOiK?= =?us-ascii?q?DGAQZARseAxIJBzcCJAERAQUBg1eBXQEDFZ1jgx88ix18FgUBF4J5BYQ5ChknD?= =?us-ascii?q?V+BNwIGEoEdiyyCFoNuhR6DIoJXApF2hgWMIwcCgkSQRRmTOJ1QDyGBPYF3Mxo?= =?us-ascii?q?jUDGCO4IWDgmDS4pxJDCQGAEB?= X-IPAS-Result: =?us-ascii?q?A0BJAgBA5IJchiunVdFkhE6BRCeECYEdgl6PTYtPcYgAhge?= =?us-ascii?q?BZw2JIxoHAQQ0EgEBAwEBBwEDAQEBEwEBAQgLCwgpIwyCOiKDGAQZARseAxIJB?= =?us-ascii?q?zcCJAERAQUBg1eBXQEDFZ1jgx88ix18FgUBF4J5BYQ5ChknDV+BNwIGEoEdiyy?= =?us-ascii?q?CFoNuhR6DIoJXApF2hgWMIwcCgkSQRRmTOJ1QDyGBPYF3MxojUDGCO4IWDgmDS?= =?us-ascii?q?4pxJDCQGAEB?= X-IronPort-AV: E=Sophos;i="5.58,456,1544482800"; d="scan'208,217";a="298620309" Received: from mail-lf1-f43.google.com ([209.85.167.43]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 08 Mar 2019 22:56:40 +0100 Received: by mail-lf1-f43.google.com with SMTP id a8so15311037lfi.7 for ; Fri, 08 Mar 2019 13:56:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YgMywi0VB3jXuDQ3UtQDrPLOekBzF/UyvFK7+3hbUBI=; b=Tcduqr7KNI1/1Gj6EosrJDLagAO04LpltHDxpoCA8snljlpRXUKRL/x9fO2vjJ7p15 8P0YQ2JsvadlgBUUZONDbYBxnoISvGOKnKvP1VYi4pcUNB0iHMKgSFFZ+ODmaw6Iq14+ RVm82GuI2bpFf75aBtvqWk/0KFClGg91L9DOfyXCBWD9PGl5a0Du/64Ldog24dWv1TN4 TQ+TNlFfKd5A8WuTFMqmLZuPXrp2neB2Wl9nZbnTy7EsydY5taOqx6Gz0EtGkSuVuMaI kZ6BGzAuigb9oCbrH8YZ1xlXsshattqyCi/2GCF8zICnBRCgqB1FewwWTb/BLCyoRyEP sOeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YgMywi0VB3jXuDQ3UtQDrPLOekBzF/UyvFK7+3hbUBI=; b=mSILMfVyZBWOekLymVYskkhhAdZdU3nVitimE3R6CDKUrwmew0akmEPYxLggVrdPus hX0OK0xhpzq7Ay5RVjBfetBqs45E9Mgef7BrqcBSwo2/KiXIwSFp0Q9GvedICfakRbaY bMb6HDlTjG13UXYH1tnr4yqfLOaQ0c3EXW3e8vP6qRL8O+ADxOBmDVwyMF6I1A3xnCYI 6lhQ+qfQfi6mFcGnEXWQ39M+shdS0vCKR7U8cNwlz+8HIqyQhzFf9wx8FcpHdwzZWl/N XkQP1+F/OzNRORRDqRZF2GH+UsuJkSoaC+kmDAo0DS0LXeAxljJZfnWGvsOAKSFy1UlM dFeQ== X-Gm-Message-State: APjAAAWpuzolU2gS8+vE6TCKWXkuA2eUJ3M48z3qLoO/SYlhVd/9iV2k TO6XYBs7VUhf3+Vln7BglcqsoOfrXuSfEUEBHZRh6QhS X-Google-Smtp-Source: APXvYqwNzy9Lhhu2yp++bmSWv1FbD3/99ZTqkYsjdZjAGCHFQ+QlIYQCnBOvsWhZ//67wQwhsPVx+8HfJB9Da5/EUJE= X-Received: by 2002:a19:f10d:: with SMTP id p13mr10295548lfh.52.1552082199076; Fri, 08 Mar 2019 13:56:39 -0800 (PST) MIME-Version: 1.0 From: Papa Tango Date: Fri, 8 Mar 2019 16:56:03 -0500 Message-ID: To: caml-list@inria.fr Content-Type: multipart/alternative; boundary="0000000000002364e305839c4c3b" X-Validation-by: papatango.nyc@gmail.com Subject: [Caml-list] ocamlbuild(0.14) -> core(v0.12.0) -> fails at runtime Reply-To: Papa Tango X-Loop: caml-list@inria.fr X-Sequence: 17391 Errors-to: caml-list-owner@inria.fr Precedence: list Precedence: bulk Sender: caml-list-request@inria.fr X-no-archive: yes List-Id: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --0000000000002364e305839c4c3b Content-Type: text/plain; charset="UTF-8" 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: //.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 --0000000000002364e305839c4c3b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I believe there may be a bug in ocam= lbuild when attempting to build projects that require Jane Street's Cor= e and related packages. Or perhaps the error lies with Core, but I am no ju= dge. Or perhaps my use of ocamlbuild is flawed.

I = started a simple project from scratch and with just 2 modules, and one of t= hem merely being dedicated to command line parsing, I could not get the pro= gram 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
Reas= on: /<home_path>/.opam/4.07.1/lib/stublibs/dllcore_stubs.so: undefine= d symbol: caml_exn_Invalid_argument

I double check= ed 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 exp= erimented with adding base and core_kernel, but that didn't help. I slo= wly stripped away dependencies of anything related to Core, but the error p= ersisted until I completely removed Core. I was not even using Core for com= mand line parsing, nor in the module dedicated to command line parsing. Com= pilation was always successful, however.=C2=A0=C2=A0

Finally, I gave up and downgraded to Ocaml 4.06.0 and Core 0.11.3 and th= e same project compiles and runs just fine while including Core. Considerin= g that my version of ocamlbuild did not downgrade, I suspect something chan= ged over at Core...but still...it would be nice to support building with Co= re even if the error lies there.=C2=A0 =C2=A0Has anyone else seen this issu= e?

Thank you.

-Paul
=
--0000000000002364e305839c4c3b--