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 B8F535D5 for ; Fri, 13 Dec 2019 21:19:04 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.69,311,1571695200"; d="scan'208";a="420210326" Received: from sympa.inria.fr ([193.51.193.213]) by mail2-relais-roc.national.inria.fr with ESMTP; 13 Dec 2019 22:19:03 +0100 Received: by sympa.inria.fr (Postfix, from userid 20132) id 810ED7F3A8; Fri, 13 Dec 2019 22:19:03 +0100 (CET) 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 E88F27F30F for ; Fri, 13 Dec 2019 22:18:58 +0100 (CET) Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=philippe@strauss-engineering.ch; spf=None smtp.mailfrom=philippe@strauss-engineering.ch; spf=None smtp.helo=postmaster@philippestrauss.vserver.nimag.net IronPort-PHdr: =?us-ascii?q?9a23=3AfUDx4R36qQRQc6Q4smDT+DRfVm0co7zxezQtwd8Z?= =?us-ascii?q?seMWKPad9pjvdHbS+e9qxAeQG9mCsLQd2rud6vy8EUU7or+5+EgYd5JNUxJXwe?= =?us-ascii?q?43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRp?= =?us-ascii?q?OOv1BpTSj8Oq3Oyu5pHfeQpFiCezbL9oMRm7qQHcusYLjYZtJas61wfErGZPd+?= =?us-ascii?q?lK321jOEidnwz75se+/Z5j9zpftvc8/MNeUqv0Yro1Q6VAADspL2466svrtQLe?= =?us-ascii?q?TQSU/XsTTn8WkhtTDAfb6hzxQ4r8vTH7tup53ymaINH2QLUpUjms86tnVBnlgz?= =?us-ascii?q?oBOjUk8m/Yl9Zwgbpbrh29qBJx3o3abo+LOvVxea3QZs8aRXNEXspNVyxNHoGx?= =?us-ascii?q?Yo0SBOQBJ+ZYqIz9qkMUoxu+BAmsAOLvyidQhnDowKY0zvghERvc0ww9BNIOq2?= =?us-ascii?q?nfodLtNKcSUOC1yKjIzS3bb/xIwjr985TIcgo7rvGRRrJwatPdxlcpFwPKj1WQ?= =?us-ascii?q?r5LqMC2P1uQMtWib4PBsWv6vi2M+rQx6vzahxsApiobTh4IVzEjJ9T5lwIYvP9?= =?us-ascii?q?K4VVV7YcW9HJROsSGaOIp2QsU8TG52oiY6y7sGuZGhcCcWyJQr3wbfa+Sdf4iN?= =?us-ascii?q?5hLuUvuaLzRghH99eb+zmQy+/Va+xuHgTMW4zVhHoytfntXRqnwByQTf5tWIR/?= =?us-ascii?q?Z85Eus1iyD2gHN5u1ePEw5l6XWJpg8ybAqjJUTq17MHirulUX2kqCWckIk9/Cw?= =?us-ascii?q?6+TnY7Xmop6cN5dsig7gKaQuhta/Dv4lMggVRGiX4/q81Kb98k3jXrVFkOc2nr?= =?us-ascii?q?PfsJDbIMQUvKG5DxVT0ok99xazFzam0NIGknkbNF9IeQyLg5L3N13QPPz0F+qz?= =?us-ascii?q?jlqtnTtx2vzKIqPtDo3ILnfZkbfhebh961RbyAo21d1f/5JUCrAFIPLyQk/xrM?= =?us-ascii?q?LXAwQiMwyo2eboEsh91pgFWW6WHKCZNqzSsV6O5u0xPeaMfo4VuDDyK/Q/+/Hu?= =?us-ascii?q?jWc1mUUBcqmxwZsXdHe4E+x6LEqDZHrshs4NEWMLvgolUOznk0aCUD5WZ3aqRa?= =?us-ascii?q?0w/DA7CIS8DYfCXI+hmrKB3D3oVqFRM2tPD1TJFXbza62FXe0NYWScOJxPiDsB?= =?us-ascii?q?AIChSosgzQmj/DTm0bN6NfGcrjUYtJbizMB4z/bPjxgv7icxAsKS0meAQnt1mG?= =?us-ascii?q?xOTD9gj/M3mlB01lrWifswuPdfD9EGv6oYADd/DobVyqlBM/63XwvAetmTT1P8?= =?us-ascii?q?Hoe9HSs4U8kqhtIIbEd7Fti4jxbMmSGqUedMyu67Qacs+6eZ5EDfYsZwz3Gdif?= =?us-ascii?q?s5j1giQ9NXOHa6nKdi7BOVGZXEiVuUjeCsdKEV02jL+XvRlTPS7nEdaxZ5VOD+?= =?us-ascii?q?ZV5aflHf94ir/V/YRqK1EvEqNARAz8OPMKpMZZvijQceSQ=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0D9BwBq//Nd/2aI3D5lHgELHIQebFUyK?= =?us-ascii?q?oQDjyWdPwkBAwErEAEBhlEcBgY0EwIQAQEEAQEBAgECAwQBbIU3DII7IoMrgQs?= =?us-ascii?q?CJgKEFAGCdwQLniaPAoEyhU+DMoFIgQ4ohRyGfBo+gUKBOCCCF4YJgkMygiwEr?= =?us-ascii?q?niBTG50hjSJXoUZeIF6i2CLdaVthTUigVgzGggwOyoBgkEJNRIRFJBdinxAM49?= =?us-ascii?q?PAQE?= X-IPAS-Result: =?us-ascii?q?A0D9BwBq//Nd/2aI3D5lHgELHIQebFUyKoQDjyWdPwkBAwE?= =?us-ascii?q?rEAEBhlEcBgY0EwIQAQEEAQEBAgECAwQBbIU3DII7IoMrgQsCJgKEFAGCdwQLn?= =?us-ascii?q?iaPAoEyhU+DMoFIgQ4ohRyGfBo+gUKBOCCCF4YJgkMygiwErniBTG50hjSJXoU?= =?us-ascii?q?ZeIF6i2CLdaVthTUigVgzGggwOyoBgkEJNRIRFJBdinxAM49PAQE?= X-IronPort-AV: E=Sophos;i="5.69,311,1571695200"; d="scan'208";a="420210316" X-MGA-submission: =?us-ascii?q?MDGJndUPrJkSyi8E1TAQKKyo5BO0dX+UldKcFn?= =?us-ascii?q?XO0jeLwUU+66PZQtFUDeGSwOg3Ky04R39pkOWOxhPFhDsyHB9tBaZry+?= =?us-ascii?q?yKcDyyD7l6+Vp3GXTyKbgjBVJRMzunzoE5VnvnFkFBD8L9jt+7sFYMCB?= =?us-ascii?q?S5rQ7ISy5XYNsZ7n09Q3L9ww=3D=3D?= Received: from philippestrauss.vserver.nimag.net ([62.220.136.102]) by mail2-smtp-roc.national.inria.fr with ESMTP; 13 Dec 2019 22:18:58 +0100 Received: from [192.168.160.196] (174.62.4.146.static.wline.lns.sme.cust.swisscom.ch [146.4.62.174]) by philippestrauss.vserver.nimag.net (Postfix) with ESMTPSA id 4F6771FD71 for ; Fri, 13 Dec 2019 22:18:57 +0100 (CET) From: Philippe Strauss Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <34AC0664-EE0C-40EF-AE0A-2E098FD2C8C9@strauss-engineering.ch> Date: Fri, 13 Dec 2019 22:18:55 +0100 To: caml-list@inria.fr Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) Subject: [Caml-list] dune or opam bug ?? Reply-To: Philippe Strauss X-Loop: caml-list@inria.fr X-Sequence: 17908 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: Hello the list, I have a strange behavior from my opam setup recently, I=E2=80=99ll = reproduce the steps that trigger this singularity : 1.a. it does happen at least when trying to compile examples of a = jane-street new package, the bonsai incremental web framework. 1.b. it shows only when trying the production profile with dune : =C2=AB = dune build --profile=3Drelease ./hello_world.bc.js =C2=BB 2. here we go with the command sequence : philou@air:~/mysrc/tmp/time$ dune build --profile=3Drelease = ./hello_world.bc.js (the build start, and fail before completion with the following err msg = :) File "_none_", line 1: Error: Error on dynamically loaded library: = /Users/philou/.opam/4.09.0/lib/stublibs/dllcore_kernel_stubs.so: = dlopen(/Users/philou/.opam/4.09.0/lib/stublibs/dllcore_kernel_stubs.so, = 10): Symbol not found: _caml_stat_heap_size Referenced from: = /Users/philou/.opam/4.02.3/lib/stublibs/dllcore_kernel_stubs.so Expected in: flat namespace in /Users/philou/.opam/4.02.3/lib/stublibs/dllcore_kernel_stubs.so (notice the opam switch complete mixing of switch 4.09.0 w 4.02.3) (jane-street support then asked me to try the following: open a bash = without profile or run-command execution, for compiling bonsai examples = later) philou@air:~/mysrc/tmp/time$ bash --noprofile --norc bash-3.2$ pwd /Users/philou/mysrc/tmp/time (let=E2=80=99s try it : ) bash-3.2$ dune build --profile=3Drelease ./hello_world.bc.js (and it builds to completion without a glitch :) bash-3.2$ ls -altr _build/default/ total 92752 drwxr-xr-x 3 philou staff 102 27 nov 21:33 .ppx -rw-r--r-- 1 philou staff 0 27 nov 21:33 .merlin-exists -rw-r--r-- 1 philou staff 7340 27 nov 21:33 .merlin -rw-r--r-- 1 philou staff 331 27 nov 21:33 hello_world.ml -rw-r--r-- 1 philou staff 867 27 nov 21:33 hello_world.pp.mli -rw-r--r-- 1 philou staff 2361 27 nov 21:33 hello_world.pp.ml -rw-r--r-- 1 philou staff 45 27 nov 21:33 hello_world.mli drwxr-xr-x 3 philou staff 238 27 nov 21:33 .hello_world.eobjs drwxr-xr-x 3 philou staff 272 27 nov 21:33 .. -rwxr-xr-x 1 philou staff 46513032 28 nov 13:55 hello_world.bc -rw-r--r-- 1 philou staff 946640 28 nov 13:56 hello_world.bc.js drwxr-xr-x 4 philou staff 408 28 nov 13:56 . bash-3.2$ ln -s _build/default/hello_world.bc.js hello_world.bc.js bash-3.2$ open index.html (works as expected!) Q: what happened to my opam setup, and is this a dune or opam =C2=AB bug = =C2=BB ? TIA. Regards=20 -- Philippe Strauss https://www.strauss-engineering.ch