package stdcompat

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

stdcompat 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 stdcompat.0 ocamlfind.1.9.6 dune.3.16.0 cppo.1.7.0" 

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.
[NOTE] Package dune is already installed (current version is 3.16.0).
[NOTE] Package ocamlfind is already installed (current version is 1.9.6).
The following actions will be performed:
  - install cppo      1.7.0
  - install stdcompat 0
===== 2 to install =====

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Processing  1/6:
Processing  2/6:
-> retrieved cppo.1.7.0  (cached)
Processing  3/6: [cppo: dune build]
-> retrieved stdcompat.0  (cached)
+ /home/opam/.opam/5.1/bin/dune "build" "-p" "cppo" "-j" "39" "@install" (CWD=/home/opam/.opam/5.1/.opam-switch/build/cppo.1.7.0)
-> compiled  cppo.1.7.0
-> installed cppo.1.7.0
Processing  5/6: [stdcompat: make all]
+ /usr/bin/make "all" "PREFIX=/home/opam/.opam/5.1" (CWD=/home/opam/.opam/5.1/.opam-switch/build/stdcompat.0)
- cppo -D 'OCAMLVERSION 51.' stdcompat.mlp >stdcompat.ml || rm stdcompat.ml
- Error: File "stdcompat.mlp", line 1, characters 4-16
- Error: Variable OCAMLVERSION found in cppo boolean expression must expand
- into an int literal, into a tuple of int literals,
- or into a variable with the same properties.
- cppo -D 'OCAMLVERSION 51.' stdcompat.mlip >stdcompat.mli || rm stdcompat.mli
- Error: File "stdcompat.mlip", line 7, characters 4-16
- Error: Variable OCAMLVERSION found in cppo boolean expression must expand
- into an int literal, into a tuple of int literals,
- or into a variable with the same properties.
- ocamlfind ocamlc -c stdcompat.mli
- File "stdcompat.mli", line 1:
- Error: I/O error: stdcompat.mli: No such file or directory
- make: *** [Makefile:97: stdcompat.cmi] Error 2
[ERROR] The compilation of stdcompat.0 failed at "make all PREFIX=/home/opam/.opam/5.1".

#=== ERROR while compiling stdcompat.0 ========================================#
# context              2.1.6 | linux/x86_64 | ocaml-base-compiler.5.1.1 | file:///src
# path                 ~/.opam/5.1/.opam-switch/build/stdcompat.0
# command              /usr/bin/make all PREFIX=/home/opam/.opam/5.1
# exit-code            2
# env-file             ~/.opam/log/stdcompat-115-fe6266.env
# output-file          ~/.opam/log/stdcompat-115-fe6266.out
### output ###
# cppo -D 'OCAMLVERSION 51.' stdcompat.mlp >stdcompat.ml || rm stdcompat.ml
# Error: File "stdcompat.mlp", line 1, characters 4-16
# Error: Variable OCAMLVERSION found in cppo boolean expression must expand
# into an int literal, into a tuple of int literals,
# or into a variable with the same properties.
# cppo -D 'OCAMLVERSION 51.' stdcompat.mlip >stdcompat.mli || rm stdcompat.mli
# Error: File "stdcompat.mlip", line 7, characters 4-16
# Error: Variable OCAMLVERSION found in cppo boolean expression must expand
# into an int literal, into a tuple of int literals,
# or into a variable with the same properties.
# ocamlfind ocamlc -c stdcompat.mli
# File "stdcompat.mli", line 1:
# Error: I/O error: stdcompat.mli: No such file or directory
# make: *** [Makefile:97: stdcompat.cmi] Error 2



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build stdcompat 0
+- 
+- The following changes have been performed
| - install cppo 1.7.0
+- 
# 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/5.1/.opam-switch/backup/state-20240912094422.export"
'opam --cli=2.1 install stdcompat.0 ocamlfind.1.9.6 dune.3.16.0 cppo.1.7.0 --verbose --yes --confirm-level=unsafe-yes' failed.
OCaml

Innovation. Community. Security.