package vhd-format

  1. Overview
  2. Docs
On This Page
  1. Error log

vhd-format 0.12.0

Error log

The package failed to build. The error log from opam follows.

[NOTE] Package dune is already installed (current version is 3.17.2).
[NOTE] Package ocamlfind is already installed (current version is 1.9.8).
The following actions will be performed:
=== install 21 packages
  - install base                v0.15.1
  - install conf-pkg-config     4
  - install csexp               1.5.2
  - install cstruct             6.2.0
  - install dune-configurator   3.17.2
  - install fmt                 0.9.0
  - install io-page             3.0.0
  - install num                 1.5-1
  - install ocaml-compiler-libs v0.12.4
  - install ocamlbuild          0.15.0
  - install parsexp             v0.15.0
  - install ppx_cstruct         6.2.0
  - install ppx_derivers        1.2.1
  - install ppxlib              0.35.0
  - install rresult             0.7.0
  - install sexplib             v0.15.1
  - install sexplib0            v0.15.1
  - install stdlib-shims        0.3.0
  - install topkg               1.0.7
  - install uuidm               0.9.8
  - install vhd-format          0.12.0

The following system packages will first need to be installed:
    pkg-config

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><>

opam believes some required external dependencies are missing. opam can:
> 1. Run apt-get to install them (may need root/sudo access)
  2. Display the recommended apt-get command and wait while you run it manually (e.g. in another terminal)
  3. Continue anyway, and, upon success, permanently register that this external dependency is present, but not detectable
  4. Abort the installation

[1/2/3/4] 1

+ /usr/bin/sudo "apt-get" "install" "-qq" "-yy" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libpkgconf3:amd64.
- (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18745 files and directories currently installed.)
- Preparing to unpack .../libpkgconf3_1.8.1-1_amd64.deb ...
- Unpacking libpkgconf3:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkgconf-bin.
- Preparing to unpack .../pkgconf-bin_1.8.1-1_amd64.deb ...
- Unpacking pkgconf-bin (1.8.1-1) ...
- Selecting previously unselected package pkgconf:amd64.
- Preparing to unpack .../pkgconf_1.8.1-1_amd64.deb ...
- Unpacking pkgconf:amd64 (1.8.1-1) ...
- Selecting previously unselected package pkg-config:amd64.
- Preparing to unpack .../pkg-config_1.8.1-1_amd64.deb ...
- Unpacking pkg-config:amd64 (1.8.1-1) ...
- Setting up libpkgconf3:amd64 (1.8.1-1) ...
- Setting up pkgconf-bin (1.8.1-1) ...
- Setting up pkgconf:amd64 (1.8.1-1) ...
- Setting up pkg-config:amd64 (1.8.1-1) ...
- Processing triggers for libc-bin (2.36-9+deb12u9) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved csexp.1.5.2  (cached)
-> retrieved base.v0.15.1  (cached)
-> retrieved cstruct.6.2.0, ppx_cstruct.6.2.0  (cached)
-> installed conf-pkg-config.4
-> retrieved fmt.0.9.0  (cached)
-> retrieved io-page.3.0.0  (cached)
-> retrieved num.1.5-1  (cached)
-> retrieved ocaml-compiler-libs.v0.12.4  (cached)
-> retrieved ocamlbuild.0.15.0  (cached)
-> installed csexp.1.5.2
-> retrieved parsexp.v0.15.0  (cached)
-> retrieved ppx_derivers.1.2.1  (cached)
-> retrieved rresult.0.7.0  (cached)
-> retrieved sexplib.v0.15.1  (cached)
-> retrieved sexplib0.v0.15.1  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved topkg.1.0.7  (cached)
-> retrieved uuidm.0.9.8  (cached)
-> retrieved vhd-format.0.12.0  (cached)
-> retrieved ppxlib.0.35.0  (cached)
-> installed ppx_derivers.1.2.1
-> installed stdlib-shims.0.3.0
-> retrieved dune-configurator.3.17.2  (cached)
-> installed ocaml-compiler-libs.v0.12.4
-> installed num.1.5-1
-> installed sexplib0.v0.15.1
-> installed dune-configurator.3.17.2
-> installed ocamlbuild.0.15.0
-> installed topkg.1.0.7
-> installed uuidm.0.9.8
-> installed rresult.0.7.0
-> installed base.v0.15.1
-> installed fmt.0.9.0
-> installed cstruct.6.2.0
-> installed io-page.3.0.0
-> installed parsexp.v0.15.0
-> installed sexplib.v0.15.1
-> installed ppxlib.0.35.0
-> installed ppx_cstruct.6.2.0
[ERROR] The compilation of vhd-format.0.12.0 failed at "dune build -p vhd-format -j 31".

#=== ERROR while compiling vhd-format.0.12.0 ==================================#
# context              2.3.0 | linux/x86_64 | ocaml-base-compiler.4.12.1 | file:///src
# path                 ~/.opam/4.12/.opam-switch/build/vhd-format.0.12.0
# command              ~/.opam/4.12/bin/dune build -p vhd-format -j 31
# exit-code            1
# env-file             ~/.opam/log/vhd-format-113-fd09c9.env
# output-file          ~/.opam/log/vhd-format-113-fd09c9.out
### output ###
# (cd _build/default && /home/opam/.opam/4.12/bin/ocamlopt.opt -w -40 -w -32-34-37 -g -I vhd_format/.vhd_format.objs/byte -I vhd_format/.vhd_format.objs/native -I /home/opam/.opam/4.12/lib/bytes -I /home/opam/.opam/4.12/lib/cstruct -I /home/opam/.opam/4.12/lib/io-page -I /home/opam/.opam/4.12/lib/rresult -I /home/opam/.opam/4.12/lib/uuidm -intf-suffix .ml -no-alias-deps -open Vhd_format -o vhd_format/.vhd_format.objs/native/vhd_format__Element.cmx -c -impl vhd_format/element.pp.ml)
# File "vhd_format/element.ml", line 30, characters 7-18:
# 30 |     if Cstruct.len x = sector_size
#             ^^^^^^^^^^^
# Error: Unbound value Cstruct.len
# Hint: Did you mean lenv?
# (cd _build/default && /home/opam/.opam/4.12/bin/ocamlc.opt -w -40 -w -32-34-37 -g -bin-annot -I vhd_format/.vhd_format.objs/byte -I /home/opam/.opam/4.12/lib/bytes -I /home/opam/.opam/4.12/lib/cstruct -I /home/opam/.opam/4.12/lib/io-page -I /home/opam/.opam/4.12/lib/rresult -I /home/opam/.opam/4.12/lib/uuidm -intf-suffix .ml -no-alias-deps -open Vhd_format -o vhd_format/.vhd_format.objs/byte/vhd_format__Element.cmo -c -impl vhd_format/element.pp.ml)
# File "vhd_format/element.ml", line 30, characters 7-18:
# 30 |     if Cstruct.len x = sector_size
#             ^^^^^^^^^^^
# Error: Unbound value Cstruct.len
# Hint: Did you mean lenv?
# (cd _build/default && /home/opam/.opam/4.12/bin/ocamlc.opt -w -40 -w -32-34-37 -g -bin-annot -I vhd_format/.vhd_format.objs/byte -I /home/opam/.opam/4.12/lib/bytes -I /home/opam/.opam/4.12/lib/cstruct -I /home/opam/.opam/4.12/lib/io-page -I /home/opam/.opam/4.12/lib/rresult -I /home/opam/.opam/4.12/lib/uuidm -intf-suffix .ml -no-alias-deps -open Vhd_format -o vhd_format/.vhd_format.objs/byte/vhd_format__F.cmo -c -impl vhd_format/f.pp.ml)
# File "vhd_format/f.ml", line 26, characters 19-30:
# 26 |       for i = 0 to Cstruct.len a - 1 do
#                         ^^^^^^^^^^^
# Error: Unbound value Cstruct.len
# Hint: Did you mean lenv?



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build vhd-format 0.12.0
+- 
+- The following changes have been performed
| - install base                v0.15.1
| - install conf-pkg-config     4
| - install csexp               1.5.2
| - install cstruct             6.2.0
| - install dune-configurator   3.17.2
| - install fmt                 0.9.0
| - install io-page             3.0.0
| - install num                 1.5-1
| - install ocaml-compiler-libs v0.12.4
| - install ocamlbuild          0.15.0
| - install parsexp             v0.15.0
| - install ppx_cstruct         6.2.0
| - install ppx_derivers        1.2.1
| - install ppxlib              0.35.0
| - install rresult             0.7.0
| - install sexplib             v0.15.1
| - install sexplib0            v0.15.1
| - install stdlib-shims        0.3.0
| - install topkg               1.0.7
| - install uuidm               0.9.8
+- 
# To update the current shell environment, run: eval $(opam env)

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/4.12/.opam-switch/backup/state-20250206033603.export"
OCaml

Innovation. Community. Security.