package brotli

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

brotli 1.3.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 15 packages
  - install base-bytes        base
  - install brotli            1.3.0
  - install brozip            1.1
  - install cmdliner          1.3.0
  - install conf-brotli       0.0.1
  - install conf-pkg-config   4
  - install cppo              1.8.0
  - install csexp             1.5.2
  - install dune-configurator 3.17.2
  - install lwt               5.9.0
  - install oasis             0.4.11
  - install ocamlbuild        0.15.0
  - install ocamlify          0.0.1
  - install ocamlmod          0.0.9
  - install ocplib-endian     1.2

The following system packages will first need to be installed:
    libbrotli-dev 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" "libbrotli-dev" "pkg-config"
- debconf: delaying package configuration, since apt-utils is not installed
- Selecting previously unselected package libbrotli-dev: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 .../libbrotli-dev_1.0.9-2+b6_amd64.deb ...
- Unpacking libbrotli-dev:amd64 (1.0.9-2+b6) ...
- Selecting previously unselected package libpkgconf3:amd64.
- 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 libbrotli-dev:amd64 (1.0.9-2+b6) ...
- 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 <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed base-bytes.base
-> retrieved brotli.1.3.0  (cached)
-> installed conf-pkg-config.4
-> retrieved brozip.1.1  (cached)
-> retrieved cmdliner.1.3.0  (cached)
-> retrieved cppo.1.8.0  (cached)
-> installed conf-brotli.0.0.1
-> retrieved csexp.1.5.2  (cached)
-> retrieved lwt.5.9.0  (cached)
-> retrieved oasis.0.4.11  (cached)
-> retrieved ocamlbuild.0.15.0  (cached)
-> retrieved ocamlify.0.0.1  (cached)
-> retrieved ocamlmod.0.0.9  (cached)
-> retrieved ocplib-endian.1.2  (cached)
-> installed csexp.1.5.2
-> retrieved dune-configurator.3.17.2  (cached)
-> installed cmdliner.1.3.0
-> installed cppo.1.8.0
-> installed ocplib-endian.1.2
-> installed ocamlbuild.0.15.0
-> installed dune-configurator.3.17.2
-> installed ocamlify.0.0.1
-> installed lwt.5.9.0
-> installed ocamlmod.0.0.9
-> installed oasis.0.4.11
[ERROR] The compilation of brotli.1.3.0 failed at "ocaml setup.ml -build".

#=== ERROR while compiling brotli.1.3.0 =======================================#
# context              2.3.0 | linux/x86_64 | ocaml-base-compiler.4.09.1 | file:///src
# path                 ~/.opam/4.09/.opam-switch/build/brotli.1.3.0
# command              ~/.opam/4.09/bin/ocaml setup.ml -build
# exit-code            1
# env-file             ~/.opam/log/brotli-113-3e323a.env
# output-file          ~/.opam/log/brotli-113-3e323a.out
### output ###
# + ocamlfind ocamlopt unix.cmxa -I /home/opam/.opam/4.09/lib/ocamlbuild /home/opam/.opam/4.09/lib/ocamlbuild/ocamlbuildlib.cmxa -linkpkg myocamlbuild.ml /home/opam/.opam/4.09/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# + /home/opam/.opam/4.09/bin/ocamlfind ocamlc -g -ccopt -Wextra -ccopt -fno-omit-frame-pointer -ccopt -fsanitize-undefined-trap-on-error -ccopt -O2 -ccopt -fno-optimize-sibling-calls -ccopt '-std=c++14' -ccopt -x -ccopt c++ -ccopt -I/usr/local/include -package unix -c src/brotli_stubs.c
# + /home/opam/.opam/4.09/bin/ocamlfind ocamlc -g -ccopt -Wextra -ccopt -fno-omit-frame-pointer -ccopt -fsanitize-undefined-trap-on-error -ccopt -O2 -ccopt -fno-optimize-sibling-calls -ccopt '-std=c++14' -ccopt -x -ccopt c++ -ccopt -I/usr/local/include -package unix -c src/brotli_stubs.c
# src/brotli_stubs.c: In function 'value ml_brotli_compress(value, value, value, value)':
# src/brotli_stubs.c:88:5: error: 'BrotliEncoderSetCustomDictionary' was not declared in this scope
#    88 |     BrotliEncoderSetCustomDictionary(enc, custom_dictionary_length,
#       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# src/brotli_stubs.c: In function 'value ml_brotli_decompress(value, value, value)':
# src/brotli_stubs.c:151:5: error: 'BrotliDecoderSetCustomDictionary' was not declared in this scope
#   151 |     BrotliDecoderSetCustomDictionary(dec, custom_dictionary_length,
#       |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# src/brotli_stubs.c:160:17: warning: comparison between 'enum BrotliDecoderResult' and 'enum BrotliDecoderErrorCode' [-Wenum-compare]
#   160 |   while (result == BROTLI_DECODER_NEEDS_MORE_OUTPUT) {
#       |          ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# src/brotli_stubs.c:174:15: warning: comparison between 'enum BrotliDecoderResult' and 'enum BrotliDecoderErrorCode' [-Wenum-compare]
#   174 |   if ((result == BROTLI_DECODER_SUCCESS) == true) {
#       |        ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
# Command exited with code 2.
# E: Failure("Command ''/home/opam/.opam/4.09/bin/ocamlbuild' src/libbrotli_stubs.a src/dllbrotli_stubs.so src/brotli.cma src/brotli.cmxa src/brotli.a src/brotli.cmxs example/e.native -use-ocamlfind -tag debug' terminated with error code 10")



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build brotli 1.3.0
+- 
+- The following changes have been performed (the rest was aborted)
| - install base-bytes        base
| - install cmdliner          1.3.0
| - install conf-brotli       0.0.1
| - install conf-pkg-config   4
| - install cppo              1.8.0
| - install csexp             1.5.2
| - install dune-configurator 3.17.2
| - install lwt               5.9.0
| - install oasis             0.4.11
| - install ocamlbuild        0.15.0
| - install ocamlify          0.0.1
| - install ocamlmod          0.0.9
| - install ocplib-endian     1.2
+- 
# 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.09/.opam-switch/backup/state-20250206035907.export"
OCaml

Innovation. Community. Security.