caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Quaker Quickoats <quakerquickoats@gmail.com>
To: asai@is.ocha.ac.jp
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] How can I use a library in a toplevel created by js_of_ocaml?
Date: Mon, 27 May 2019 14:34:52 -0400	[thread overview]
Message-ID: <CA+65gyd-=L3XF4grhQSS5feyrUmbs6BGwSTz8a-jefO2gEM+4g@mail.gmail.com> (raw)

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

Looking to solve your problem in 2-toplevel.tar.gz code, I've proceeded to
notice that out of all the js_of_ocaml libraries installed here, there is
missing js_of_ocaml-toplevel -- here is what happened when I try to
download and install it with OPAM (2.0.4~):

~/Downloads/p/toplevel $ opam install js_of_ocaml-toplevel
The following actions will be performed:
  ∗ install js_of_ocaml-toplevel 3.4.0

<><> Gathering sources
><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[js_of_ocaml-toplevel.3.4.0] found in cache

<><> Processing actions
<><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of js_of_ocaml-toplevel failed at
"/home/user/.opam/opam-init/hooks/sandbox.sh build dune build -p
js_of_ocaml-toplevel -j
        1".

#=== ERROR while compiling js_of_ocaml-toplevel.3.4.0
=========================#
# context              2.0.4 | linux/x86_64 | ocaml-base-compiler.4.07.1 |
https://opam.ocaml.org#a7ba7031
# path
~/.opam/default/.opam-switch/build/js_of_ocaml-toplevel.3.4.0
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build
-p js_of_ocaml-toplevel -j 1
# exit-code            1
# env-file             ~/.opam/log/js_of_ocaml-toplevel-3670-05296d.env
# output-file          ~/.opam/log/js_of_ocaml-toplevel-3670-05296d.out
### output ###
# Error: Unbound module Js_of_ocaml_compiler.Stdlib
# [...]
# (cd _build/default && /home/user/.opam/default/bin/ocamlc.opt -w -40 -g
-bin-annot -I toplevel/lib/.js_of_ocaml_toplevel.objs/byte -I
/home/user/.opam/default/lib/biniou -I /home/user/.opam/default/lib/bytes
-I /home/user/.opam/default/lib/easy-format -I
/home/user/.opam/default/lib/js_of_ocaml -I
/home/user/.opam/default/lib/js_of_ocaml-compiler -I
/home/user/.opam/default/lib/[...]
# File "toplevel/lib/jsooTopPpx.ml", line 20, characters 5-32:
# Error: Unbound module Js_of_ocaml_compiler.Stdlib
#       ocamlc
toplevel/lib/.js_of_ocaml_toplevel.objs/byte/js_of_ocaml_toplevel__JsooTop.{cmo,cmt}
(exit 2)
# (cd _build/default && /home/user/.opam/default/bin/ocamlc.opt -w -40 -g
-bin-annot -I toplevel/lib/.js_of_ocaml_toplevel.objs/byte -I
/home/user/.opam/default/lib/biniou -I /home/user/.opam/default/lib/bytes
-I /home/user/.opam/default/lib/easy-format -I
/home/user/.opam/default/lib/js_of_ocaml -I
/home/user/.opam/default/lib/js_of_ocaml-compiler -I
/home/user/.opam/default/lib/[...]
# File "toplevel/lib/jsooTop.ml", line 22, characters 5-32:
# Error: Unbound module Js_of_ocaml_compiler.Stdlib
#     ocamlopt
toplevel/lib/.js_of_ocaml_toplevel.objs/native/js_of_ocaml_toplevel__JsooTopPpx.{cmx,o}
(exit 2)
# (cd _build/default && /home/user/.opam/default/bin/ocamlopt.opt -w -40 -g
-I toplevel/lib/.js_of_ocaml_toplevel.objs/byte -I
toplevel/lib/.js_of_ocaml_toplevel.objs/native -I
/home/user/.opam/default/lib/biniou -I /home/user/.opam/default/lib/bytes
-I /home/user/.opam/default/lib/easy-format -I
/home/user/.opam/default/lib/js_of_ocaml -I
/home/user/.opam/default/lib/js_of_ocaml-co[...]
# File "toplevel/lib/jsooTopPpx.ml", line 20, characters 5-32:
# Error: Unbound module Js_of_ocaml_compiler.Stdlib



<><> Error report
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build js_of_ocaml-toplevel 3.4.0
└─
╶─ No changes have been performed
~/Downloads/p/toplevel $ opam install js_of_ocaml-compiler
[NOTE] Package js_of_ocaml-compiler is already installed (current version
is 3.3.0).

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

             reply	other threads:[~2019-05-27 18:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-27 18:34 Quaker Quickoats [this message]
2019-05-29  0:39 ` Kenichi Asai
2019-05-29 20:27   ` Quaker Quickoats
2019-05-30  0:45     ` hugo
  -- strict thread matches above, loose matches on Subject: below --
2019-05-26  6:26 Kenichi Asai
2019-05-28  0:41 ` hugo
2019-05-30 14:19   ` Kenichi Asai
2019-06-01  1:00     ` Kenichi Asai
2019-06-06  1:05       ` hugo

Reply instructions:

You may reply publicly 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='CA+65gyd-=L3XF4grhQSS5feyrUmbs6BGwSTz8a-jefO2gEM+4g@mail.gmail.com' \
    --to=quakerquickoats@gmail.com \
    --cc=asai@is.ocha.ac.jp \
    --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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).