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 sympa.inria.fr (Postfix) with ESMTPS id 3D79D7F332 for ; Fri, 6 Dec 2019 22:05:26 +0100 (CET) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=helmut.brandl@gmx.net; spf=Pass smtp.mailfrom=helmut.brandl@gmx.net; spf=None smtp.helo=postmaster@mout.gmx.net Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of helmut.brandl@gmx.net) identity=pra; client-ip=212.227.17.21; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="helmut.brandl@gmx.net"; x-sender="helmut.brandl@gmx.net"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of helmut.brandl@gmx.net designates 212.227.17.21 as permitted sender) identity=mailfrom; client-ip=212.227.17.21; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="helmut.brandl@gmx.net"; x-sender="helmut.brandl@gmx.net"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@mout.gmx.net) identity=helo; client-ip=212.227.17.21; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="helmut.brandl@gmx.net"; x-sender="postmaster@mout.gmx.net"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3AdFheMRKhD0V5Ygj20dmcpTZWNBhigK39O0sv0rFi?= =?us-ascii?q?tYgRKPnxwZ3uMQTl6Ol3ixeRBMOHsqkC0rqN+Pm7CSQp2tWoiDg6aptCVhsI24?= =?us-ascii?q?09vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7?= =?us-ascii?q?Ovr6GpLIj8Swyuu+54Dfbx9HiTagb75+Ngi6oAbfu8UZnIdvJKU8wQbVr3VVfO?= =?us-ascii?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dDWwKDFGeucYiYCa4B?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0D0BQDRwepdhxUR49RlHgELHIMagkUyK?= =?us-ascii?q?oQsjxeBbIQRhgCRQgkBAwEMBScBAgEBhlccBwEENBMCEAEBBAEBAQIBAgMEARM?= =?us-ascii?q?BAQEIDQkIKYU+DII7IoMfHQEBOBhEAoQUgkYBAzACkRGQTosmgTKCfgEBBYJKg?= =?us-ascii?q?gABSgNtgT8JgTaFHIZ8D4FMP4E4DBSKYzKCLJdCiAOPFgeCIBEDawSVDo5Oi2M?= =?us-ascii?q?tpFxKg0mBaYF6MxouRSoBgkE+EhEUjGYaiDKGGSIzgQUBAY1xAQE?= X-IPAS-Result: =?us-ascii?q?A0D0BQDRwepdhxUR49RlHgELHIMagkUyKoQsjxeBbIQRhgC?= =?us-ascii?q?RQgkBAwEMBScBAgEBhlccBwEENBMCEAEBBAEBAQIBAgMEARMBAQEIDQkIKYU+D?= =?us-ascii?q?II7IoMfHQEBOBhEAoQUgkYBAzACkRGQTosmgTKCfgEBBYJKggABSgNtgT8JgTa?= =?us-ascii?q?FHIZ8D4FMP4E4DBSKYzKCLJdCiAOPFgeCIBEDawSVDo5Oi2MtpFxKg0mBaYF6M?= =?us-ascii?q?xouRSoBgkE+EhEUjGYaiDKGGSIzgQUBAY1xAQE?= X-IronPort-AV: E=Sophos;i="5.69,286,1571695200"; d="scan'208,217";a="419146219" X-MGA-submission: =?us-ascii?q?MDHIgM1RR0uNH48zPoBc4bUuS+CxyvehNBOOMT?= =?us-ascii?q?u3YqdIrDOpnHj3o6WfWWPsT+GiWQSMbjhExw0AJaG70EgV3Q0yvV9dj2?= =?us-ascii?q?rH9x4myrIwLkhsmaeTbQjNNlJnLMMm5kkvA/0ak4CbYhSI1W1e1/diyq?= =?us-ascii?q?jwdzjdbNSGFtiVoEt/GRr2lg=3D=3D?= Received: from mout.gmx.net ([212.227.17.21]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-GCM-SHA256; 06 Dec 2019 22:05:25 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1575666324; bh=xDmyuZ9fBHw1dkjUKhLjl8tfEE7l3yENS29ehC83elY=; h=X-UI-Sender-Class:From:Subject:Date:To; b=OUUqHJLp9wbE9J8aEGaQojlhvwkTjZfrA04dknm1x2fR7QMTfZje5tZ2x9+Q37q6A X6eKEU4oM/sm9GuVGT6mb7vTayEMQlF3k4Ju1KFYzGPZgNWHPIvq7rVxkY+Usrjuyr LW8WBNWoRjabJ2u3C5GzAaid4iXXkfIkoctxF9rM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.69] ([201.114.141.62]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MeCpb-1i4pJj07l9-00bKgo for ; Fri, 06 Dec 2019 22:05:24 +0100 From: Helmut Brandl Content-Type: multipart/alternative; boundary="Apple-Mail=_607BF19B-1A97-475D-A3D9-C6C9A5FF2C9A" Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3601.0.10\)) Message-Id: <5E22BE69-349B-4612-93CC-FAE5F2F4AFD6@gmx.net> Date: Fri, 6 Dec 2019 15:05:22 -0600 To: caml-list@inria.fr X-Mailer: Apple Mail (2.3601.0.10) X-Provags-ID: V03:K1:QrpDNpS0JqEWM1/bt9YpjeGaAiqo7bf7orcwdbEiooOb6/2Qbbq Q6Qslns0GHc87f+75CZYrG9EFvaB9MpIV4qUt6ONWa8X+fdDmA1jFDy/+vKGb2kYnxIOvAz Ox98OdYqG1B7f0lju36Ybq83tsJtZo7S06e2wSWwSy5jLb//MrrYXIOSTsCHdicGWAx8G3t irvaDbiQVxJklZYfp/C7Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:HO4st2D8V/I=:v5Kk531IyPr9qEIofbzuR7 x22njyD6EnRRF2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LJ5 oX27WpeSs/WqbBdhWVAnKP/MOXJ2UKN/pt7tB59tjo1AoG9JDAgJboWBQv5sCBRvAOu5Sesgi yEGWyb3MvIyfSCh0zTi9l+1PmBPu+sByFqFVy7xk8fa7Wp6EsYP5D+C1Gz2bmfdX4disPBRpc Z7txoPaB6cVoWtClK1pqdtG9Gnh+7g4eigm9SLaV6QXeWC1EyZD3Ku+o0j5k= Subject: [Caml-list] Dune compilation problems using js_of_ocaml with libraries --Apple-Mail=_607BF19B-1A97-475D-A3D9-C6C9A5FF2C9A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello list. I have a project with various libraries which I compile using dune. One of = the executable is a javascript executable (executable under nodejs). For the javascript executable I encounter the following problem: - If I build with =E2=80=98=E2=80=94profile release=E2=80=99 everything wor= ks fine, except that I get a warning that some primitives are missing. But = the program works fine i.e. the missing primitives are obviously not used. There are some missing primitives Dummy implementations (raising 'Failure' exception) will be used if they ar= e not available at runtime. You can prevent the generation of dummy implementations with the commandlin= e option '--disable genprim' Missing primitives provided by +dynlink.js: caml_add_debug_info caml_dynlink_add_primitive caml_dynlink_get_current_libs caml_dynlink_lookup_symbol caml_dynlink_open_lib caml_register_code_fragment Missing primitives provided by +toplevel.js: caml_get_section_table caml_realloc_global caml_reify_bytecode caml_static_alloc - If I build with the default profile (i.e. =E2=80=94 profile dev), then st= arting the program I get the error message /Users/helmut/myprogs/alba/program/_build/default/ocaml/alba-node/alba_node= .bc.js:51209 runtime.ml_setup_bridges(0); ^ TypeError: runtime.ml_setup_bridges is not a function at /Users/helmut/myprogs/alba/program/_build/default/ocaml/alba-node/al= ba_node.bc.js:51209:13 at Object. (/Users/helmut/myprogs/alba/program/_build/defaul= t/ocaml/alba-node/alba_node.bc.js:51243:3) at Module._compile (internal/modules/cjs/loader.js:721:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:560:12) at Function.Module._load (internal/modules/cjs/loader.js:552:3) at Function.Module.runMain (internal/modules/cjs/loader.js:774:12) at executeUserCode (internal/bootstrap/node.js:342:17) at startExecution (internal/bootstrap/node.js:276:5) I assume that there is something missing to load the libraries. Using the release profile is no principal problem, but compile times are mu= ch longer than compiling with the development profile. Does anybody have an idea how to get the build with development profile wor= king? Should I report the problem to another forum? Thanks for any hints. Helmut= --Apple-Mail=_607BF19B-1A97-475D-A3D9-C6C9A5FF2C9A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hello list.

I have a project with various librari= es which I compile using dune. One of the executable is a javascript execut= able (executable under nodejs).

<= div class=3D"">For the javascript executable I encounter the following prob= lem:

- If I build= with =E2=80=98=E2=80=94profile release=E2=80=99 everything works fine, exc= ept that I get a warning that some primitives are missing. But the program = works fine i.e. the missing primitives are obviously not used.

There are some missing primitives
Dummy implementations (raising 'Failure' exception) w= ill be used if they are not available at runtime.
You can prevent the generation of dummy implemen= tations with the commandline option '--disable genprim'
Missing primitives provided by +dynlink.js= :
  caml_add_debug= _info
  caml_dyn= link_add_primitive
= &nbs= p; caml_dynlink_get_current_libs
  caml_dynlink_lookup_symbol
  caml_dynlink_open_lib
  caml_register_code_fragment
<= div style=3D"margin: 0px; font-stretch: normal; font-size: 11px; line-heigh= t: normal; font-family: Menlo;" class=3D"">Missing primitives provided by +topl= evel.js:
  caml_ge= t_section_table
  = caml_realloc_global
&nb= sp; caml_reify_bytecode
  caml_static_alloc


- If I build= with the default profile (i.e. =E2=80=94 profile dev), then starting the p= rogram I get the error message

/Users/helmut/myprogs= /alba/program/_build/default/ocaml/alba-node/alba_node.bc.js:51209
    runtime.ml_setup_= bridges(0);
  &nbs= p;         ^

TypeError: runtime.ml_setup_bridges is not a function<= /span>
    at /Users= /helmut/myprogs/alba/program/_build/default/ocaml/alba-node/alba_node.bc.js= :51209:13
   = at Object.<anonymous> (/Users/helmut/myprogs/alba/program/_build/def= ault/ocaml/alba-node/alba_node.bc.js:51243:3)
    at Module._compile (internal/modules/c= js/loader.js:721:30)
&n= bsp;   at Object.Module._extensions..js (internal/modules/cjs/loader.j= s:732:10)
   = at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/m= odules/cjs/loader.js:560:12)
    at Function.Module._load (internal/modules/cjs/loader.j= s:552:3)
    = at Function.Module.runMain (internal/modules/cjs/loader.js:774:12)
    at executeUserCod= e (internal/bootstrap/node.js:342:17)
    at startExecution (internal/bootstrap/node.js:= 276:5)

I assume that there is something missing to load the libraries.
=

Using the release prof= ile is no principal problem, but compile times are much longer than compili= ng with the development profile.

=
Does anybody have an idea how to get the build with develop= ment profile working? Should I report the problem to another forum?

Thanks for any hints.
Helmut
= --Apple-Mail=_607BF19B-1A97-475D-A3D9-C6C9A5FF2C9A--