package srs

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

srs 2.0.0

Error log

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

Opam plugin "depext" may require upgrading/reinstalling. Reinstall the plugin on the current switch? [Y/n] y
The following actions will be performed:
  - recompile opam-depext 1.2.3

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved opam-depext.1.2.3  (cached)
-> removed   opam-depext.1.2.3
-> installed opam-depext.1.2.3
Done.

<><> opam-depext.1.2.3 installed successfully <><><><><><><><><><><><><><><><><>
=> opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead
# Run eval $(opam env) to update the current shell environment

<><> Carrying on to "opam depext -viy srs.2.0.0 jbuilder.1.0+beta20.2" ><><><><>

Since version 2.1, opam now handles external dependencies alongside OCaml ones, and the `depext` plugin interface is provided for backwards compatibility only. Consider using your usual `opam install` command to install both OCaml and system dependencies, or `opam install <pkg> --depext-only` if you want to only install external dependencies.
# Detecting depexts using vars: arch=x86_64, os=linux, os-distribution=debian, os-family=debian
# No extra OS packages requirements found.
The following actions will be performed:
  - install jbuilder 1.0+beta20.2
  - install srs      2.0.0
===== 2 to install =====

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/6:
Processing  2/6:
-> retrieved srs.2.0.0  (cached)
-> retrieved jbuilder.1.0+beta20.2  (cached)
Processing  3/6: [jbuilder: ocaml configure.ml]
+ /home/opam/.opam/4.14/bin/ocaml "configure.ml" "--libdir" "/home/opam/.opam/4.14/lib" (CWD=/home/opam/.opam/4.14/.opam-switch/build/jbuilder.1.0+beta20.2)
Processing  3/6: [jbuilder: ocaml bootstrap.ml]
+ /home/opam/.opam/4.14/bin/ocaml "bootstrap.ml" (CWD=/home/opam/.opam/4.14/.opam-switch/build/jbuilder.1.0+beta20.2)
- File "./bootstrap.ml", line 185, characters 29-41:
- 185 |              let base, ext = String.break base i in
-                                    ^^^^^^^^^^^^
- Warning 6 [labels-omitted]: label pos was omitted in the application of this function.
- File "./bootstrap.ml", line 190, characters 28-40:
- 190 |                  let a, b = String.break ext i in
-                                   ^^^^^^^^^^^^
- Warning 6 [labels-omitted]: label pos was omitted in the application of this function.
- '/home/opam/.opam/4.14/bin/ocamllex.opt' -q src/meta_lexer.mll
- '/home/opam/.opam/4.14/bin/ocamldep.opt' -modules src/action.ml src/action_intf.ml src/arg_spec.ml src/artifacts.ml src/bin.ml src/binary_kind.ml src/build.ml src/build_interpret.ml src/build_system.ml src/clflags.ml src/cm_kind.ml src/colors.ml src/config.ml src/context.ml src/dep_path.ml src/env.ml src/errors.ml src/exe.ml src/file_tree.ml src/findlib.ml src/gen_meta.ml src/gen_rules.ml src/glob_lexer.boot.ml src/import.ml src/inline_tests.ml src/install.ml src/install_rules.ml src/installed_dune_file.ml src/interned.ml src/jbuild.ml src/jbuild_load.ml vendor/boot/jbuilder_opam_file_format.ml vendor/boot/jbuilder_re.ml src/js_of_ocaml_rules.ml src/lib.ml src/loc.ml src/log.ml src/main.ml src/menhir.ml src/merlin.ml src/meta.ml src/meta_lexer.ml src/ml_kind.ml src/mode.ml src/module.ml src/module_compilation.ml src/modules_partitioner.ml src/ocaml_flags.ml src/ocamldep.ml src/odoc.boot.ml src/opam_file.ml src/ordered_set_lang.ml src/package.ml src/path.ml src/per_item.ml src/preprocessing.ml src/print_diff.ml src/process.ml src/report_error.ml src/scheduler.ml src/scope.ml src/setup.boot.ml src/sexp.ml src/string_with_vars.ml src/sub_system.ml src/sub_system_intf.ml src/sub_system_name.ml src/super_context.ml src/syntax.ml src/top_closure.ml src/utils.ml src/utop.ml src/variant.ml src/vfile_kind.ml src/watermarks.ml src/workspace.ml > boot-depends.txt
- '/home/opam/.opam/4.14/bin/ocamldep.opt' -modules src/stdune/caml/caml.ml src/stdune/caml/result.ml src/stdune/caml/result_compat.ml > boot-depends.txt
- '/home/opam/.opam/4.14/bin/ocamldep.opt' -modules src/fiber/fiber.ml > boot-depends.txt
- '/home/opam/.opam/4.14/bin/ocamldep.opt' -modules src/ocaml-config/ocaml_config.ml > boot-depends.txt
- '/home/opam/.opam/4.14/bin/ocamldep.opt' -modules src/stdune/stdune.ml src/stdune/ansi_color.ml src/stdune/array.ml src/stdune/char.ml src/stdune/common.ml src/stdune/comparable.ml src/stdune/either.ml src/stdune/exn.ml src/stdune/filename.ml src/stdune/hashtbl.ml src/stdune/import.ml src/stdune/int.ml src/stdune/io.ml src/stdune/list.ml src/stdune/map.ml src/stdune/map_intf.ml src/stdune/option.ml src/stdune/or_exn.ml src/stdune/ordering.ml src/stdune/pp.ml src/stdune/result.ml src/stdune/set.ml src/stdune/set_intf.ml src/stdune/staged.ml src/stdune/string.ml > boot-depends.txt
- '/home/opam/.opam/4.14/bin/ocamldep.opt' -modules src/usexp/usexp.ml src/usexp/parser_automaton_internal.ml src/usexp/sexp_ast.ml src/usexp/table.ml > boot-depends.txt
- '/home/opam/.opam/4.14/bin/ocamldep.opt' -modules src/xdg/xdg.ml > boot-depends.txt
- '/home/opam/.opam/4.14/bin/ocamlc.opt' -g -w -40 -o boot.exe unix.cma boot.ml
- File "src/stdune/caml/result.ml", line 4, characters 7-17:
- Alert deprecated: module Stdlib.Pervasives
- Use Stdlib instead.
- 
- If you need to stay compatible with OCaml < 4.07, you can use the 
- stdlib-shims library: https://github.com/ocaml/stdlib-shims
- File "src/stdune/caml/result.mli", line 6, characters 7-17:
- Alert deprecated: module Stdlib.Pervasives
- Use Stdlib instead.
- 
- If you need to stay compatible with OCaml < 4.07, you can use the 
- stdlib-shims library: https://github.com/ocaml/stdlib-shims
- File "src/stdune/pp.ml", line 98, characters 7-18:
- Alert deprecated: Stdlib.Format.pp_open_tag
- Use Format.pp_open_stag.
- File "src/stdune/pp.ml", line 100, characters 7-19:
- Alert deprecated: Stdlib.Format.pp_close_tag
- Use Format.pp_close_stag.
- File "src/stdune/pp.ml", line 103, characters 18-48:
- Alert deprecated: Stdlib.Format.pp_get_formatter_tag_functions
- Use Format.pp_get_formatter_stag_functions.
- File "src/stdune/pp.ml", line 105, characters 6-36:
- Alert deprecated: Stdlib.Format.pp_set_formatter_tag_functions
- This function will erase non-string tag formatting functions. Use Format.pp_set_formatter_stag_functions.
- File "src/stdune/io.ml", line 1, characters 11-21:
- Alert deprecated: module Stdlib.Pervasives
- Use Stdlib instead.
- 
- If you need to stay compatible with OCaml < 4.07, you can use the 
- stdlib-shims library: https://github.com/ocaml/stdlib-shims
- File "src/usexp/usexp.ml", line 209, characters 15-52:
- Alert deprecated: Stdlib.Format.pp_get_formatter_tag_functions
- Use Format.pp_get_formatter_stag_functions.
- File "src/usexp/usexp.ml", line 210, characters 2-39:
- Alert deprecated: Stdlib.Format.pp_set_formatter_tag_functions
- This function will erase non-string tag formatting functions. Use Format.pp_set_formatter_stag_functions.
- File "src/colors.ml", line 105, characters 18-48:
- Alert deprecated: Stdlib.Format.pp_get_formatter_tag_functions
- Use Format.pp_get_formatter_stag_functions.
- File "src/colors.ml", line 107, characters 6-36:
- Alert deprecated: Stdlib.Format.pp_set_formatter_tag_functions
- This function will erase non-string tag formatting functions. Use Format.pp_set_formatter_stag_functions.
- File "src/super_context.ml", line 72, characters 7-11:
- Warning 16 [unerasable-optional-argument]: this optional argument cannot be erased.
Processing  3/6: [jbuilder: ./boot.exe 39]
+ /home/opam/.opam/4.14/.opam-switch/build/jbuilder.1.0+beta20.2/./boot.exe "-j" "39" (CWD=/home/opam/.opam/4.14/.opam-switch/build/jbuilder.1.0+beta20.2)
-       ocamlc src/stdune/caml/.caml.objs/caml__Result.{cmi,cmti}
- File "src/stdune/caml/result.mli", line 6, characters 7-17:
- 6 |   open Pervasives
-            ^^^^^^^^^^
- Alert deprecated: module Stdlib.Pervasives
- Use Stdlib instead.
- 
- If you need to stay compatible with OCaml < 4.07, you can use the 
- stdlib-shims library: https://github.com/ocaml/stdlib-shims
-     ocamlopt src/stdune/caml/.caml.objs/caml__Result.{cmx,o}
- File "src/stdune/caml/result.ml", line 4, characters 7-17:
- 4 |   open Pervasives
-            ^^^^^^^^^^
- Alert deprecated: module Stdlib.Pervasives
- Use Stdlib instead.
- 
- If you need to stay compatible with OCaml < 4.07, you can use the 
- stdlib-shims library: https://github.com/ocaml/stdlib-shims
-     ocamlopt src/stdune/.stdune.objs/stdune__Io.{cmx,o}
- File "src/stdune/io.ml", line 1, characters 11-21:
- 1 | module P = Pervasives
-                ^^^^^^^^^^
- Alert deprecated: module Stdlib.Pervasives
- Use Stdlib instead.
- 
- If you need to stay compatible with OCaml < 4.07, you can use the 
- stdlib-shims library: https://github.com/ocaml/stdlib-shims
-     ocamlopt src/stdune/.stdune.objs/stdune__Pp.{cmx,o}
- File "src/stdune/pp.ml", line 98, characters 7-18:
- 98 |        pp_open_tag ppf (embed_tag ~opening ~closing);
-             ^^^^^^^^^^^
- Alert deprecated: Stdlib.Format.pp_open_tag
- Use Format.pp_open_stag.
- File "src/stdune/pp.ml", line 100, characters 7-19:
- 100 |        pp_close_tag ppf ()
-              ^^^^^^^^^^^^
- Alert deprecated: Stdlib.Format.pp_close_tag
- Use Format.pp_close_stag.
- File "src/stdune/pp.ml", line 103, characters 18-48:
- 103 |       let funcs = pp_get_formatter_tag_functions ppf () in
-                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: Stdlib.Format.pp_get_formatter_tag_functions
- Use Format.pp_get_formatter_stag_functions.
- File "src/stdune/pp.ml", line 105, characters 6-36:
- 105 |       pp_set_formatter_tag_functions ppf
-             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: Stdlib.Format.pp_set_formatter_tag_functions
- This function will erase non-string tag formatting functions. Use Format.pp_set_formatter_stag_functions.
-     ocamlopt src/usexp/.usexp.objs/usexp.{cmx,o}
- File "src/usexp/usexp.ml", line 209, characters 15-52:
- 209 |   let tfuncs = Format.pp_get_formatter_tag_functions ppf () in
-                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: Stdlib.Format.pp_get_formatter_tag_functions
- Use Format.pp_get_formatter_stag_functions.
- File "src/usexp/usexp.ml", line 210, characters 2-39:
- 210 |   Format.pp_set_formatter_tag_functions ppf
-         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: Stdlib.Format.pp_set_formatter_tag_functions
- This function will erase non-string tag formatting functions. Use Format.pp_set_formatter_stag_functions.
-     ocamlopt src/.jbuilder.objs/jbuilder__Colors.{cmx,o}
- File "src/colors.ml", line 105, characters 18-48:
- 105 |       let funcs = pp_get_formatter_tag_functions ppf () in
-                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: Stdlib.Format.pp_get_formatter_tag_functions
- Use Format.pp_get_formatter_stag_functions.
- File "src/colors.ml", line 107, characters 6-36:
- 107 |       pp_set_formatter_tag_functions ppf
-             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: Stdlib.Format.pp_set_formatter_tag_functions
- This function will erase non-string tag formatting functions. Use Format.pp_set_formatter_stag_functions.
-     ocamlopt src/.jbuilder.objs/jbuilder__Super_context.{cmx,o}
- File "src/super_context.ml", line 72, characters 7-11:
- 72 |       ?host
-             ^^^^
- Warning 16 [unerasable-optional-argument]: this optional argument cannot be erased.
-> compiled  jbuilder.1.0+beta20.2
-> installed jbuilder.1.0+beta20.2
Processing  5/6: [srs: jbuilder build]
+ /home/opam/.opam/4.14/bin/jbuilder "build" "-p" "srs" "-j" "39" (CWD=/home/opam/.opam/4.14/.opam-switch/build/srs.2.0.0)
-       ocamlc src/srs_stubs.o (exit 2)
- (cd _build/default/src && /home/opam/.opam/4.14/bin/ocamlc.opt -g -ccopt -Wall -ccopt -Werror -o srs_stubs.o srs_stubs.c)
- srs_stubs.c:4:10: fatal error: srs2.h: No such file or directory
-     4 | #include <srs2.h>
-       |          ^~~~~~~~
- compilation terminated.
[ERROR] The compilation of srs.2.0.0 failed at "jbuilder build -p srs -j 39".

#=== ERROR while compiling srs.2.0.0 ==========================================#
# context              2.1.6 | linux/x86_64 | ocaml-base-compiler.4.14.2 | file:///src
# path                 ~/.opam/4.14/.opam-switch/build/srs.2.0.0
# command              ~/.opam/4.14/bin/jbuilder build -p srs -j 39
# exit-code            1
# env-file             ~/.opam/log/srs-116-d75e10.env
# output-file          ~/.opam/log/srs-116-d75e10.out
### output ###
#       ocamlc src/srs_stubs.o (exit 2)
# (cd _build/default/src && /home/opam/.opam/4.14/bin/ocamlc.opt -g -ccopt -Wall -ccopt -Werror -o srs_stubs.o srs_stubs.c)
# srs_stubs.c:4:10: fatal error: srs2.h: No such file or directory
#     4 | #include <srs2.h>
#       |          ^~~~~~~~
# compilation terminated.



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build srs 2.0.0
+- 
+- The following changes have been performed
| - install jbuilder 1.0+beta20.2
+- 
# Run eval $(opam env) to update the current shell environment

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/4.14/.opam-switch/backup/state-20240912214859.export"
'opam --cli=2.1 install srs.2.0.0 jbuilder.1.0+beta20.2 --verbose --yes --confirm-level=unsafe-yes' failed.
OCaml

Innovation. Community. Security.