package ahrocksdb

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

ahrocksdb 0.2.2

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 12 packages
  - install ahrocksdb         0.2.2
  - install astring           0.8.5
  - install bigarray-compat   1.1.0
  - install conf-rocksdb      1
  - install csexp             1.5.2
  - install ctypes            0.23.0
  - install dune-configurator 3.17.2
  - install integers          0.7.0
  - install ocamlbuild        0.15.0
  - install rresult           0.7.0
  - install stdlib-shims      0.3.0
  - install topkg             1.0.7

The following system packages will first need to be installed:
    librocksdb-dev

<><> 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" "librocksdb-dev"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package bzip2-doc.
- (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 ... 18776 files and directories currently installed.)
- Preparing to unpack .../0-bzip2-doc_1.0.8-5_all.deb ...
- Unpacking bzip2-doc (1.0.8-5) ...
- Selecting previously unselected package libbz2-dev:amd64.
- Preparing to unpack .../1-libbz2-dev_1.0.8-5+b1_amd64.deb ...
- Unpacking libbz2-dev:amd64 (1.0.8-5+b1) ...
- Selecting previously unselected package libgflags2.2.
- Preparing to unpack .../2-libgflags2.2_2.2.2-2_amd64.deb ...
- Unpacking libgflags2.2 (2.2.2-2) ...
- Selecting previously unselected package libgflags-dev.
- Preparing to unpack .../3-libgflags-dev_2.2.2-2_amd64.deb ...
- Unpacking libgflags-dev (2.2.2-2) ...
- Selecting previously unselected package liblz4-dev:amd64.
- Preparing to unpack .../4-liblz4-dev_1.9.4-1_amd64.deb ...
- Unpacking liblz4-dev:amd64 (1.9.4-1) ...
- Selecting previously unselected package libsnappy1v5:amd64.
- Preparing to unpack .../5-libsnappy1v5_1.1.9-3_amd64.deb ...
- Unpacking libsnappy1v5:amd64 (1.1.9-3) ...
- Selecting previously unselected package librocksdb7.8.
- Preparing to unpack .../6-librocksdb7.8_7.8.3-2_amd64.deb ...
- Unpacking librocksdb7.8 (7.8.3-2) ...
- Selecting previously unselected package libsnappy-dev:amd64.
- Preparing to unpack .../7-libsnappy-dev_1.1.9-3_amd64.deb ...
- Unpacking libsnappy-dev:amd64 (1.1.9-3) ...
- Selecting previously unselected package zlib1g-dev:amd64.
- Preparing to unpack .../8-zlib1g-dev_1%3a1.2.13.dfsg-1_amd64.deb ...
- Unpacking zlib1g-dev:amd64 (1:1.2.13.dfsg-1) ...
- Selecting previously unselected package librocksdb-dev.
- Preparing to unpack .../9-librocksdb-dev_7.8.3-2_amd64.deb ...
- Unpacking librocksdb-dev (7.8.3-2) ...
- Setting up bzip2-doc (1.0.8-5) ...
- Setting up libsnappy1v5:amd64 (1.1.9-3) ...
- Setting up liblz4-dev:amd64 (1.9.4-1) ...
- Setting up zlib1g-dev:amd64 (1:1.2.13.dfsg-1) ...
- Setting up libgflags2.2 (2.2.2-2) ...
- Setting up libbz2-dev:amd64 (1.0.8-5+b1) ...
- Setting up libsnappy-dev:amd64 (1.1.9-3) ...
- Setting up librocksdb7.8 (7.8.3-2) ...
- Setting up libgflags-dev (2.2.2-2) ...
- Setting up librocksdb-dev (7.8.3-2) ...
- Processing triggers for libc-bin (2.36-9+deb12u9) ...

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved ahrocksdb.0.2.2  (cached)
-> retrieved conf-rocksdb.1  (cached)
-> retrieved bigarray-compat.1.1.0  (cached)
-> retrieved astring.0.8.5  (cached)
-> retrieved csexp.1.5.2  (cached)
-> installed conf-rocksdb.1
-> retrieved ctypes.0.23.0  (cached)
-> retrieved integers.0.7.0  (cached)
-> retrieved rresult.0.7.0  (cached)
-> retrieved stdlib-shims.0.3.0  (cached)
-> retrieved ocamlbuild.0.15.0  (cached)
-> retrieved topkg.1.0.7  (cached)
-> installed bigarray-compat.1.1.0
-> installed csexp.1.5.2
-> installed stdlib-shims.0.3.0
-> retrieved dune-configurator.3.17.2  (cached)
-> installed integers.0.7.0
-> installed dune-configurator.3.17.2
-> installed ocamlbuild.0.15.0
-> installed ctypes.0.23.0
-> installed topkg.1.0.7
-> installed rresult.0.7.0
-> installed astring.0.8.5
[ERROR] The compilation of ahrocksdb.0.2.2 failed at "dune build -p ahrocksdb -j 31".

#=== ERROR while compiling ahrocksdb.0.2.2 ====================================#
# context              2.3.0 | linux/x86_64 | ocaml-base-compiler.5.1.1 | file:///src
# path                 ~/.opam/5.1/.opam-switch/build/ahrocksdb.0.2.2
# command              ~/.opam/5.1/bin/dune build -p ahrocksdb -j 31
# exit-code            1
# env-file             ~/.opam/log/ahrocksdb-113-1e1dfe.env
# output-file          ~/.opam/log/ahrocksdb-113-1e1dfe.out
### output ###
# (cd _build/default && /home/opam/.opam/5.1/bin/ocamlc.opt -w -40 -w no-unused-parameter -g -bin-annot -I ffi/bindings/.rocksdb_bindings.objs/byte -I /home/opam/.opam/5.1/lib/bigarray-compat -I /home/opam/.opam/5.1/lib/ctypes -I /home/opam/.opam/5.1/lib/ctypes/stubs -I /home/opam/.opam/5.1/lib/integers -I /home/opam/.opam/5.1/lib/ocaml/str -I /home/opam/.opam/5.1/lib/stdlib-shims -I ffi/structs/.rocksdb_types.objs/byte -no-alias-deps -open Rocksdb_bindings__ -o ffi/bindings/.rocksdb_bindings.objs/byte/rocksdb_bindings__Views.cmo -c -impl ffi/bindings/views.ml)
# File "_none_", line 1:
# Alert ocaml_deprecated_cli: Setting a warning with a sequence of lowercase or uppercase letters,
# like 'arameter', is deprecated.
# Use the equivalent signed form: -n-o-u-n-u-s-e-d-p-a-r-a-m-e-t-e-r.
# Hint: Enabling or disabling a warning by its mnemonic name requires a + or - prefix.
# Hint: Did you make a spelling mistake when using a mnemonic name?
# (cd _build/default && /home/opam/.opam/5.1/bin/ocamlopt.opt -w -40 -w no-unused-parameter -g -I ffi/bindings/.rocksdb_bindings.objs/byte -I ffi/bindings/.rocksdb_bindings.objs/native -I /home/opam/.opam/5.1/lib/bigarray-compat -I /home/opam/.opam/5.1/lib/ctypes -I /home/opam/.opam/5.1/lib/ctypes/stubs -I /home/opam/.opam/5.1/lib/integers -I /home/opam/.opam/5.1/lib/ocaml/str -I /home/opam/.opam/5.1/lib/stdlib-shims -I ffi/structs/.rocksdb_types.objs/byte -I ffi/structs/.rocksdb_types.objs/native -intf-suffix .ml -no-alias-deps -open Rocksdb_bindings__ -o ffi/bindings/.rocksdb_bindings.objs/native/rocksdb_bindings__Views.cmx -c -impl ffi/bindings/views.ml)
# File "_none_", line 1:
# Alert ocaml_deprecated_cli: Setting a warning with a sequence of lowercase or uppercase letters,
# like 'arameter', is deprecated.
# Use the equivalent signed form: -n-o-u-n-u-s-e-d-p-a-r-a-m-e-t-e-r.
# Hint: Enabling or disabling a warning by its mnemonic name requires a + or - prefix.
# Hint: Did you make a spelling mistake when using a mnemonic name?
# File "ffi/lib/dune", lines 23-26, characters 0-155:
# 23 | (rule
# 24 |  (targets c_flags.sexp c_library_flags.sexp c_flags.txt c_library_flags.txt)
# 25 |  (deps    (:discover config/discover.exe))
# 26 |  (action  (run %{discover})))
# (cd _build/default/ffi/lib && config/discover.exe)
# failed to find an include path for RocksDB: are development headers installed on your system ?
# tested paths: /usr/local/include/rocksdb /usr/include/rocksdb
# compiling c program:
#  | 
#  | 
#  | #include <c.h>
#  | #include <version.h>
#  | 
#  | int main() {
#  |   rocksdb_options_t* opt = rocksdb_options_create();
#  |   rocksdb_options_destroy(opt);
#  |   return 0;
#  | };
#  | 
# run: gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC  -I/usr/local/include/rocksdb -I /home/opam/.opam/5.1/lib/ocaml -o /tmp/build_94ec1f_dune/ocaml-configuratora09bf8/c-test-0/test.exe /tmp/build_94ec1f_dune/ocaml-configuratora09bf8/c-test-0/test.c -lm -lpthread -lrocksdb
# -> process exited with code 1
# -> stdout:
# -> stderr:
#  | /tmp/build_94ec1f_dune/ocaml-configuratora09bf8/c-test-0/test.c:3:10: fatal error: c.h: No such file or directory
#  |     3 | #include <c.h>
#  |       |          ^~~~~
#  | compilation terminated.
# compiling c program:
#  | 
#  | 
#  | #include <c.h>
#  | #include <version.h>
#  | 
#  | int main() {
#  |   rocksdb_options_t* opt = rocksdb_options_create();
#  |   rocksdb_options_destroy(opt);
#  |   return 0;
#  | };
#  | 
# run: gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC  -I/usr/include/rocksdb -I /home/opam/.opam/5.1/lib/ocaml -o /tmp/build_94ec1f_dune/ocaml-configuratora09bf8/c-test-2/test.exe /tmp/build_94ec1f_dune/ocaml-configuratora09bf8/c-test-2/test.c -lm -lpthread -lrocksdb
# -> process exited with code 1
# -> stdout:
# -> stderr:
#  | In file included from /tmp/build_94ec1f_dune/ocaml-configuratora09bf8/c-test-2/test.c:4:
#  | /usr/include/rocksdb/version.h:7:10: fatal error: string: No such file or directory
#  |     7 | #include <string>
#  |       |          ^~~~~~~~
#  | compilation terminated.
# Error: discover error



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build ahrocksdb 0.2.2
+- 
+- The following changes have been performed
| - install astring           0.8.5
| - install bigarray-compat   1.1.0
| - install conf-rocksdb      1
| - install csexp             1.5.2
| - install ctypes            0.23.0
| - install dune-configurator 3.17.2
| - install integers          0.7.0
| - install ocamlbuild        0.15.0
| - install rresult           0.7.0
| - install stdlib-shims      0.3.0
| - install topkg             1.0.7
+- 
# 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/5.1/.opam-switch/backup/state-20250206040605.export"
OCaml

Innovation. Community. Security.