[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MirageOS-devel] Question about Mirage-www



Hello everyone,
  ÂI'm a beginner in Mirage and Ocaml. I have followed the installation instructions on the website and run several simple unikernel examples successfully. However, when I tried to build the Mirage-www unikernel, an odd error happened to me. Here is the error report:

#=== ERROR while installing hex.0.2.0 =========================================#
# opam-version 1.2.1~rc2
# os      linux
# command   Âmake
# path     /root/.opam/4.01.0/build/hex.0.2.0
# compiler   4.01.0
# exit-code  Â2
# env-file   /root/.opam/4.01.0/build/hex.0.2.0/hex-3961-1872ec.env
# stdout-file Â/root/.opam/4.01.0/build/hex.0.2.0/hex-3961-1872ec.out
# stderr-file Â/root/.opam/4.01.0/build/hex.0.2.0/hex-3961-1872ec.err
### stdout ###
# [...]
# ocaml setup.ml -buildÂ
# /root/.opam/4.01.0/bin/ocamlopt.opt unix.cmxa -I /root/.opam/4.01.0/lib/ocaml/ocamlbuild /root/.opam/4.01.0/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /root/.opam/4.01.0/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# /root/.opam/4.01.0/bin/ocamlfind ocamldep -package cstruct -modules lib/hex.mli > lib/hex.mli.depends
# /root/.opam/4.01.0/bin/ocamlfind ocamlc -c -g -annot -bin-annot -package cstruct -I lib -o lib/hex.cmi lib/hex.mli
# /root/.opam/4.01.0/bin/ocamlfind ocamldep -package cstruct -modules lib/hex.ml > lib/hex.ml.depends
# /root/.opam/4.01.0/bin/ocamlfind ocamlc -c -g -annot -bin-annot -package cstruct -I lib -o lib/hex.cmo lib/hex.ml
# + /root/.opam/4.01.0/bin/ocamlfind ocamlc -c -g -annot -bin-annot -package cstruct -I lib -o lib/hex.cmo lib/hex.ml
# File "lib/hex.ml", line 75, characters 12-26:
# Error: Unbound module Bytes
# Command exited with code 2.
### stderr ###
# E: Failure("Command ''/root/.opam/4.01.0/bin/ocamlbuild' lib/hex.cma lib/hex.cmxa lib/hex.a lib/hex.cmxs lib_test/test.native -tag debug -tag tests' terminated with error code 10")
# make: *** [build] Error 1

Actually, I have installed the Bytes module. Here is "opam list":

# Installed packages for 4.01.0:
asn1-combinators    Â0.1.2 ÂCombinators for expressing ASN.1 grammars in OCaml
base-bigarray      Âbase ÂBigarray library distributed with the OCaml compiler
base-bytes       legacy ÂBytes compatibility library distributed with ocamlfind
base-no-ppx       Âbase ÂA pseudo-library to indicate lack of extension points support

I think base-bytes is supposed to be the Bytes module. I googled this problem and nothing helped. Could anyone help me out of this?ÂI'm truly grateful for your time!


Sa Wang
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.