Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install Batsh on Linux debian11 #86

Open
me-kell opened this issue Nov 20, 2022 · 1 comment
Open

Unable to install Batsh on Linux debian11 #86

me-kell opened this issue Nov 20, 2022 · 1 comment

Comments

@me-kell
Copy link

me-kell commented Nov 20, 2022

Neither from OPAM nor build from source

$ uname -a
Linux debian11 5.10.0-19-amd64 #1 SMP Debian 5.10.149-1 (2022-10-17) x86_64 GNU/Linux
$ sudo apt-get install -y opam
$ opam --version
    2.0.8
$ ocaml --version
    The OCaml toplevel, version 4.11.1
$ opam init
[NOTE] Will configure from built-in defaults.
Checking for available remotes: rsync and local, git, mercurial, darcs. Perfect!

<><> Fetching repository information ><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised

<><> Required setup - please read <><><><><><><><><><><><><><><><><><><><><><><>

  In normal operation, opam only alters files within ~/.opam.

  However, to best integrate with your system, some environment variables
  should be set. If you allow it to, this initialisation step will update
  your bash configuration by adding the following line to ~/.profile:

    test -r /home/map/.opam/opam-init/init.sh && . /home/map/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true

  Otherwise, every time you want to access your opam installation, you will
  need to run:

    eval $(opam env)

  You can always re-run this setup with 'opam init' later.

Do you want opam to modify ~/.profile? [N/y/f]
(default is 'no', use 'f' to choose a different file) y
A hook can be added to opam's init scripts to ensure that the shell remains in sync with the opam environment when they are loaded. Set that up? [y/N] y

User configuration:
  ~/.profile is already up-to-date.
[NOTE] Make sure that ~/.profile is well sourced in your ~/.bashrc.


<><> Creating initial switch (ocaml-system>=4.02.3) <><><><><><><><><><><><><><>

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
∗ installed base-bigarray.base
∗ installed base-threads.base
∗ installed base-unix.base
∗ installed ocaml-system.4.11.1
∗ installed ocaml-config.1
∗ installed ocaml.4.11.1
Done.
$ eval $(opam env)
$ opam install ocp-build dune core_kernel ounit dlist cmdliner
[NOTE] Package cmdliner is already installed (current version is 1.0.4).
[NOTE] Package dlist is already installed (current version is 0.1.0).
[NOTE] Package ounit is already installed (current version is 2.2.6).
[NOTE] Package core_kernel is already installed (current version is v0.15.0).
[NOTE] Package dune is already installed (current version is 3.5.0).
[NOTE] Package ocp-build is already installed (current version is 1.99.21).

Install from OPAM doesn't work

$ opam install batsh
    Sorry, no solution found: there seems to be a problem with your request.

Neither Build from source

$ wget -O Batsh-0.0.6.tar.gz https://github.com/batsh-dev-team/Batsh/archive/refs/tags/v0.0.6.tar.gz
$ tar xzf Batsh-0.0.6.tar.gz
$ cd Batsh-0.0.6/
$ make
ocp-build init
Warning: file "/home/map/Batsh-0.0.6/_obuild/ocp-build.root" does not exist. Creating with default values.
ocp-build build batsh
Compiler: ocaml 4.11.1
----- 31 env warnings -----
Warning: inexistent package directory:
  "/home/map/.opam/default/lib/dune/configurator"
  Disabling package "dune.configurator".
    (from "/home/map/.opam/default/lib/dune/META")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4lib".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4Bin".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4OCamlRevisedParser".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4-pa-r".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4OCamlRevisedParserParser".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4-pa-rp".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4OCamlParser".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4-pa-o".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4OCamlParserParser".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4-pa-op".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4QuotationCommon".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4OCamlRevisedQuotationExpander".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4GrammarParser".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4AutoPrinter".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4-pr-p".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "pa_macro".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4o".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4fulllib".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: missing package "ppx_deriving":
  Disabling package "base_quickcheck.ppx_quickcheck".
    (from "/home/map/.opam/default/lib/base_quickcheck/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_bin_prot".
    (from "/home/map/.opam/default/lib/ppx_bin_prot/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_compare".
    (from "/home/map/.opam/default/lib/ppx_compare/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_enumerate".
    (from "/home/map/.opam/default/lib/ppx_enumerate/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_fields_conv".
    (from "/home/map/.opam/default/lib/ppx_fields_conv/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_hash".
    (from "/home/map/.opam/default/lib/ppx_hash/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_optcomp".
    (from "/home/map/.opam/default/lib/ppx_optcomp/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_sexp_conv".
    (from "/home/map/.opam/default/lib/ppx_sexp_conv/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_stable".
    (from "/home/map/.opam/default/lib/ppx_stable/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_typerep_conv".
    (from "/home/map/.opam/default/lib/ppx_typerep_conv/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_variants_conv".
    (from "/home/map/.opam/default/lib/ppx_variants_conv/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppxlib.traverse".
    (from "/home/map/.opam/default/lib/ppxlib/META")
----- 16 project warnings -----
Warning: missing package "batsh-lib":
  Disabling package "test".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Warning: missing package "pa_sexp_conv.syntax":
  Disabling package "sexplib-syntax".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Warning: missing package "batsh-lib":
  Disabling package "batsh".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Warning: missing package "sexplib-syntax":
  Disabling package "batsh-lib".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Warning: missing package "camlp4o":
  Disabling package "sexplib-syntax".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Warning: missing package "pa_sexp_conv":
  Disabling package "pa_sexp_conv.syntax".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Warning: missing package "pa_type_conv":
  Disabling package "pa_sexp_conv".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Choosing "threads".
Use the --disable-package PKG@DIR to disable one of them.
     (from /home/map/Batsh-0.0.6/src/batsh.ocp)
   second: threads@/usr/lib/ocaml/threads
     (from /home/map/.opam/default/lib/threads/META)
   first: threads@/usr/lib/ocaml
Warning: installed package "threads" has conflicting directories:
Warning: inexistent package directory:
  "%{type_conv_DST_DIR}%"
  Disabling package "pa_type_conv.syntax".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Warning: inexistent package directory:
  "%{type_conv_DST_DIR}%"
  Disabling package "pa_type_conv".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Error: Could not find target project batsh
make: *** [Makefile:2: build] Fehler 2
@XedinUnknown
Copy link

XedinUnknown commented Dec 16, 2022

Trying to install in a Docker image. There's no tag available lower than 4.02. Later tags didn't work for me.

FROM ocaml/opam:debian-ocaml-4.02

RUN opam install ocp-build dune core_kernel ounit dlist cmdliner batsh
WORKDIR /project

RUN opam init -q
RUN eval $(opam env)

ENTRYPOINT ["batsh"]

Keeps giving stuff like this:

 => ERROR [2/7] RUN opam install ocp-build dune core_kernel ounit dlist cmdliner batsh                                                                                                                                         370.8s
------
 > [2/7] RUN opam install ocp-build dune core_kernel ounit dlist cmdliner batsh:
#0 5.786 The following actions will be performed:
#0 5.787   - install ocamlfind           1.9.1     [required by ocp-build, cmdliner, batsh, etc.]
#0 5.787   - install ocamlbuild          0         [required by cmdliner, batsh, core_kernel]
#0 5.787   - install conf-which          1         [required by camlp4]
#0 5.787   - install ocamlfind-secondary 1.9.1     [required by dune]
#0 5.787   - install base-bytes          base      [required by ounit2]
#0 5.787   - install camlp4              4.02+7    [required by core_kernel]
#0 5.787   - install dune                3.6.1
#0 5.788   - install type_conv           113.00.02 [required by typerep, pa_bench, enumerate, etc.]
#0 5.788   - install pipebang            113.00.00 [required by core_kernel]
#0 5.788   - install herelib             112.35.00 [required by core_kernel]
#0 5.788   - install stdlib-shims        0.3.0     [required by ounit2]
#0 5.788   - install seq                 0.3.1     [required by ocp-build]
#0 5.788   - install result              1.4       [required by cmdliner]
#0 5.788   - install menhirSdk           20211012  [required by menhir]
#0 5.788   - install menhirLib           20211012  [required by menhir]
#0 5.788   - install variantslib         109.15.03 [required by core_kernel]
#0 5.788   - install sexplib             113.00.00 [required by core_kernel]
#0 5.788   - install fieldslib           113.00.00 [required by core_kernel]
#0 5.788   - install enumerate           111.08.00 [required by core_kernel]
#0 5.789   - install comparelib          113.00.00 [required by core_kernel]
#0 5.789   - install bin_prot            113.00.00 [required by core_kernel]
#0 5.789   - install ounit2              2.2.2     [required by ounit]
#0 5.789   - install re                  1.10.3    [required by ocp-build]
#0 5.789   - install topkg               1.0.0     [required by cmdliner]
#0 5.789   - install menhir              20211012  [required by batsh]
#0 5.789   - install pa_test             112.24.00 [required by core_kernel]
#0 5.789   - install typerep             113.00.00 [required by core_kernel]
#0 5.789   - install ounit               2.2.2
#0 5.789   - install cmdliner            1.0.2
#0 5.789   - install pa_ounit            113.00.00 [required by core_kernel]
#0 5.790   - install ocp-build           1.99.21
#0 5.790   - install pa_bench            113.00.00 [required by core_kernel]
#0 5.790   - install custom_printf       113.00.00 [required by core_kernel]
#0 5.790   - install dlist               0.1.0
#0 5.790   - install core_kernel         113.00.00
#0 5.790   - install batsh               0.0.4
#0 5.790 ===== 36 to install =====
#0 5.791
#0 5.791 <><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#0 7.042 [bin_prot.113.00.00] downloaded from https://ocaml.janestreet.com/ocaml-core/113.00/files/bin_prot-113.00.00.tar.gz
#0 7.452 [batsh.0.0.4] downloaded from https://github.com/BYVoid/Batsh/archive/v0.0.4.tar.gz
#0 7.926 [camlp4.4.02+7] downloaded from https://github.com/ocaml/camlp4/archive/4.02+7.tar.gz
#0 8.263 [cmdliner.1.0.2] downloaded from http://erratique.ch/software/cmdliner/releases/cmdliner-1.0.2.tbz
#0 8.570 [comparelib.113.00.00] downloaded from https://ocaml.janestreet.com/ocaml-core/113.00/files/comparelib-113.00.00.tar.gz
#0 9.328 [custom_printf.113.00.00] downloaded from https://ocaml.janestreet.com/ocaml-core/113.00/files/custom_printf-113.00.00.tar.gz
#0 9.781 [core_kernel.113.00.00] downloaded from https://ocaml.janestreet.com/ocaml-core/113.00/files/core_kernel-113.00.00.tar.gz
#0 9.868 [dlist.0.1.0] downloaded from https://github.com/BYVoid/Dlist/archive/v0.1.0.tar.gz
#0 10.77 [enumerate.111.08.00] downloaded from https://ocaml.janestreet.com/ocaml-core/111.08.00/individual/enumerate-111.08.00.tar.gz
#0 10.99 [fieldslib.113.00.00] downloaded from https://ocaml.janestreet.com/ocaml-core/113.00/files/fieldslib-113.00.00.tar.gz
#0 11.83 [dune.3.6.1] downloaded from https://github.com/ocaml/dune/releases/download/3.6.1/dune-3.6.1.tbz
#0 11.85 [herelib.112.35.00] downloaded from https://ocaml.janestreet.com/ocaml-core/112.35/files/herelib-112.35.00.tar.gz
#0 13.08 [menhir.20211012] downloaded from https://gitlab.inria.fr/fpottier/menhir/-/archive/20211012/archive.tar.gz
#0 13.10 [menhirLib.20211012] downloaded from https://gitlab.inria.fr/fpottier/menhir/-/archive/20211012/archive.tar.gz
#0 14.13 [ocamlfind-secondary.1.9.1] downloaded from http://download.camlcity.org/download/findlib-1.9.1.tar.gz
#0 14.16 [ocamlfind.1.9.1] downloaded from http://download.camlcity.org/download/findlib-1.9.1.tar.gz
#0 14.23 [menhirSdk.20211012] downloaded from https://gitlab.inria.fr/fpottier/menhir/-/archive/20211012/archive.tar.gz
#0 15.87 [ounit.2.2.2] downloaded from https://github.com/gildor478/ounit/releases/download/v2.2.2/ounit-v2.2.2.tbz
#0 15.88 [ocp-build.1.99.21] downloaded from https://github.com/OCamlPro/ocp-build/archive/v1.99.21.tar.gz
#0 15.92 [ounit2.2.2.2] downloaded from https://github.com/gildor478/ounit/releases/download/v2.2.2/ounit-v2.2.2.tbz
#0 17.08 [pa_ounit.113.00.00] downloaded from https://ocaml.janestreet.com/ocaml-core/113.00/files/pa_ounit-113.00.00.tar.gz
#0 17.09 [pa_bench.113.00.00] downloaded from https://ocaml.janestreet.com/ocaml-core/113.00/files/pa_bench-113.00.00.tar.gz
#0 17.10 [pa_test.112.24.00] downloaded from https://ocaml.janestreet.com/ocaml-core/112.24/files/pa_test-112.24.tar.gz
#0 18.15 [pipebang.113.00.00] downloaded from https://ocaml.janestreet.com/ocaml-core/113.00/files/pipebang-113.00.00.tar.gz
#0 18.20 [result.1.4] downloaded from https://github.com/janestreet/result/archive/1.4.tar.gz
#0 19.16 [re.1.10.3] downloaded from https://github.com/ocaml/ocaml-re/releases/download/1.10.3/re-1.10.3.tbz
#0 19.27 [seq.0.3.1] downloaded from https://github.com/c-cube/seq/archive/v0.3.1.tar.gz
#0 19.59 [sexplib.113.00.00] downloaded from https://ocaml.janestreet.com/ocaml-core/113.00/files/sexplib-113.00.00.tar.gz
#0 20.22 [topkg.1.0.0] downloaded from http://erratique.ch/software/topkg/releases/topkg-1.0.0.tbz
#0 20.50 [stdlib-shims.0.3.0] downloaded from https://github.com/ocaml/stdlib-shims/releases/download/0.3.0/stdlib-shims-0.3.0.tbz
#0 20.76 [type_conv.113.00.02] downloaded from https://ocaml.janestreet.com/ocaml-core/113.00/files/type_conv-113.00.02.tar.gz
#0 21.48 [typerep.113.00.00] downloaded from https://ocaml.janestreet.com/ocaml-core/113.00/files/typerep-113.00.00.tar.gz
#0 21.52 [variantslib.109.15.03] downloaded from https://ocaml.janestreet.com/ocaml-core/109.15.00/individual/variantslib-109.15.03.tar.gz
#0 21.55
#0 21.55 <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#0 24.69 -> installed ocamlbuild.0
#0 24.73 -> installed conf-which.1
#0 31.75 -> installed ocamlfind.1.9.1
#0 31.86 -> installed base-bytes.base
#0 32.20 -> installed ocamlfind-secondary.1.9.1
#0 48.88 -> installed dune.3.6.1
#0 49.32 -> installed result.1.4
#0 49.49 -> installed menhirSdk.20211012
#0 49.56 -> installed menhirLib.20211012
#0 49.75 -> installed seq.0.3.1
#0 49.90 -> installed stdlib-shims.0.3.0
#0 52.12 -> installed re.1.10.3
#0 52.70 -> installed ounit2.2.2.2
#0 52.81 -> installed ounit.2.2.2
#0 52.95 -> installed topkg.1.0.0
#0 54.00 -> installed cmdliner.1.0.2
#0 57.78 -> installed menhir.20211012
#0 63.60 -> installed ocp-build.1.99.21
#0 64.02 -> installed dlist.0.1.0
#0 102.4 -> installed camlp4.4.02+7
#0 104.3 -> installed pipebang.113.00.00
#0 104.5 -> installed herelib.112.35.00
#0 106.4 -> installed type_conv.113.00.02
#0 108.9 -> installed pa_ounit.113.00.00
#0 109.2 -> installed comparelib.113.00.00
#0 109.3 -> installed variantslib.109.15.03
#0 109.6 -> installed fieldslib.113.00.00
#0 110.1 -> installed enumerate.111.08.00
#0 110.7 -> installed pa_bench.113.00.00
#0 112.1 -> installed bin_prot.113.00.00
#0 114.6 -> installed sexplib.113.00.00
#0 116.5 -> installed pa_test.112.24.00
#0 117.1 -> installed custom_printf.113.00.00
#0 119.4 -> installed typerep.113.00.00
#0 365.9 -> installed core_kernel.113.00.00
#0 368.6 [ERROR] The compilation of batsh failed at "/home/opam/.opam/4.02/bin/ocaml setup.ml -build".
#0 368.6
#0 368.6 #=== ERROR while compiling batsh.0.0.4 ========================================#
#0 368.6 # context              2.0.10 | linux/x86_64 | ocaml-base-compiler.4.02.3 | file:///home/opam/opam-repository
#0 368.6 # path                 ~/.opam/4.02/.opam-switch/build/batsh.0.0.4
#0 368.6 # command              ~/.opam/4.02/bin/ocaml setup.ml -build
#0 368.6 # exit-code            1
#0 368.6 # env-file             ~/.opam/log/batsh-7-7f4fef.env
#0 368.6 # output-file          ~/.opam/log/batsh-7-7f4fef.out
#0 368.6 ### output ###
#0 368.6 # File "setup.ml", line 213, characters 8-26:
#0 368.6 # Warning 3: deprecated: String.set
#0 368.6 # Use Bytes.set instead.
#0 368.6 # File "setup.ml", line 1793, characters 6-24:
#0 368.6 # Warning 3: deprecated: Lazy.lazy_from_fun
#0 368.6 # Use Lazy.from_fun instead.
#0 368.6 # /home/opam/.opam/4.02/bin/ocamlopt.opt unix.cmxa -I /home/opam/.opam/4.02/lib/ocaml/ocamlbuild /home/opam/.opam/4.02/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /home/opam/.opam/4.02/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
#0 368.6 # File "_tags", line 47, characters 17-26:
#0 368.6 # Warning: the tag "pkg_ounit" is not used in any flag or dependency declaration, so it will have no effect; it may be a typo. Otherwise you can use `mark_tag_used` in your myocamlbuild.ml to disable this warning.        
#0 368.6 # File "_tags", line 48, characters 17-25:
#0 368.6 # Warning: the tag "pkg_core" is not used in any flag or dependency declaration, so it will have no effect; it may be a typo. Otherwise you can use `mark_tag_used` in your myocamlbuild.ml to disable this warning.
#0 368.6 # File "_tags", line 54, characters 16-25:
#0 368.6 # Warning: the tag "pkg_ounit" is not used in any flag or dependency declaration, so it will have no effect; it may be a typo. Otherwise you can use `mark_tag_used` in your myocamlbuild.ml to disable this warning.        
#0 368.6 # File "_tags", line 55, characters 16-24:
#0 368.6 # Warning: the tag "pkg_core" is not used in any flag or dependency declaration, so it will have no effect; it may be a typo. Otherwise you can use `mark_tag_used` in your myocamlbuild.ml to disable this warning.
#0 368.6 # ocamlfind ocamldep -package threads -package sexplib.syntax -package dlist -package core_kernel -package cmdliner -modules src/parser.mli > src/parser.mli.depends
#0 368.6 # ocamlfind ocamldep -package threads -package sexplib.syntax -package dlist -package core_kernel -package cmdliner -syntax camlp4o -modules src/batsh_ast.ml > src/batsh_ast.ml.depends
#0 368.6 # ocamlfind ocamldep -package threads -package sexplib.syntax -package dlist -package core_kernel -package cmdliner -modules src/symbol_table.mli > src/symbol_table.mli.depends
#0 368.6 # ocamlfind ocamlc -c -g -I src -package threads -package sexplib.syntax -package dlist -package core_kernel -package cmdliner -syntax camlp4o -thread -I src -o src/batsh_ast.cmo src/batsh_ast.ml
#0 368.6 # ocamlfind ocamlc -c -g -I src -package threads -package sexplib.syntax -package dlist -package core_kernel -package cmdliner -thread -I src -o src/symbol_table.cmi src/symbol_table.mli
#0 368.6 # ocamlfind ocamlc -c -g -I src -package threads -package sexplib.syntax -package dlist -package core_kernel -package cmdliner -thread -I src -o src/parser.cmi src/parser.mli
#0 368.6 # ocamlfind ocamldep -package threads -package sexplib.syntax -package dlist -package core_kernel -package cmdliner -modules src/parser.ml > src/parser.ml.depends
#0 368.6 # ocamlfind ocamldep -package threads -package sexplib.syntax -package dlist -package core_kernel -package cmdliner -modules src/batsh_format.ml > src/batsh_format.ml.depends
#0 368.6 # ocamlfind ocamldep -package threads -package sexplib.syntax -package dlist -package core_kernel -package cmdliner -modules src/formatutil.ml > src/formatutil.ml.depends
#0 368.6 # ocamlfind ocamlc -c -g -I src -package threads -package sexplib.syntax -package dlist -package core_kernel -package cmdliner -thread -I src -o src/formatutil.cmo src/formatutil.ml
#0 368.6 # /home/opam/.opam/4.02/bin/ocamllex.opt -q src/lexer.mll
#0 368.6 # ocamlfind ocamldep -package threads -package sexplib.syntax -package dlist -package core_kernel -package cmdliner -modules src/lexer.ml > src/lexer.ml.depends
#0 368.6 # menhir --raw-depend --ocamldep 'ocamlfind ocamldep -modules' src/parser_yacc.mly > src/parser_yacc.mly.depends
#0 368.6 # + menhir --raw-depend --ocamldep 'ocamlfind ocamldep -modules' src/parser_yacc.mly > src/parser_yacc.mly.depends
#0 368.6 # File "src/parser_yacc.mly", line 102, characters 14-15:
#0 368.6 # Error: syntax error after 'IF' and before ';'.
#0 368.6 # Ill-formed rule.
#0 368.6 # Either a semantic action '{' ... '}'
#0 368.6 # or another production '|' ...
#0 368.6 # is expected at this point.
#0 368.6 # Examples of well-formed rules:
#0 368.6 #   expr: MINUS e = expr %prec UMINUS { -e }
#0 368.6 # Command exited with code 1.
#0 368.6 # E: Failure("Command ''/home/opam/.opam/4.02/bin/ocamlbuild' src/batsh.cma src/batsh.cmxa src/batsh.a src/batsh.cmxs src/main.byte -tag debug' terminated with error code 10")
#0 368.6
#0 369.2
#0 369.2
#0 369.2 <><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#0 369.2 +- The following actions failed
#0 369.2 | - build batsh 0.0.4
#0 369.2 +-
#0 369.2 +- The following changes have been performed
#0 369.2 | - install base-bytes          base
#0 369.2 | - install bin_prot            113.00.00
#0 369.2 | - install camlp4              4.02+7
#0 369.2 | - install cmdliner            1.0.2
#0 369.2 | - install comparelib          113.00.00
#0 369.2 | - install conf-which          1
#0 369.2 | - install core_kernel         113.00.00
#0 369.2 | - install custom_printf       113.00.00
#0 369.2 | - install dlist               0.1.0
#0 369.2 | - install dune                3.6.1
#0 369.2 | - install enumerate           111.08.00
#0 369.2 | - install fieldslib           113.00.00
#0 369.2 | - install herelib             112.35.00
#0 369.2 | - install menhir              20211012
#0 369.2 | - install menhirLib           20211012
#0 369.2 | - install menhirSdk           20211012
#0 369.2 | - install ocamlbuild          0
#0 369.2 | - install ocamlfind           1.9.1
#0 369.2 | - install ocamlfind-secondary 1.9.1
#0 369.2 | - install ocp-build           1.99.21
#0 369.2 | - install ounit               2.2.2
#0 369.2 | - install ounit2              2.2.2
#0 369.2 | - install pa_bench            113.00.00
#0 369.2 | - install pa_ounit            113.00.00
#0 369.2 | - install pa_test             112.24.00
#0 369.2 | - install pipebang            113.00.00
#0 369.2 | - install re                  1.10.3
#0 369.2 | - install result              1.4
#0 369.2 | - install seq                 0.3.1
#0 369.2 | - install sexplib             113.00.00
#0 369.2 | - install stdlib-shims        0.3.0
#0 369.2 | - install topkg               1.0.0
#0 369.2 | - install type_conv           113.00.02
#0 369.2 | - install typerep             113.00.00
#0 369.2 | - install variantslib         109.15.03
#0 369.2 +-
#0 369.2 # Run eval $(opam env) to update the current shell environment
#0 369.2
#0 369.2 The former state can be restored with:
#0 369.2     opam switch import "/home/opam/.opam/4.02/.opam-switch/backup/state-20221216065836.export"
------
failed to solve: executor failed running [/bin/sh -c opam install ocp-build dune core_kernel ounit dlist cmdliner batsh]: exit code: 31

I dunno what OPAM or OCaml is, to be honest. I just wanna build my Batsh script on my machine. I have no idea how to resolve dependency issues here. It would be awesome to have a binary, or at least a pre-built Docker image to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants