Skip to content

dune runtest fails on OCaml 4.12.0 #3766

@kit-ty-kate

Description

@kit-ty-kate

I ran opam-health-check on 4.12 overnight and I'm seeing lots of failures on OCaml 4.12.0 that all seem to be related to dune:

#=== ERROR while compiling re.1.9.0 ===========================================#
# context              2.1.0~beta2 | linux/x86_64 | ocaml-variants.4.12.0+trunk | file:///home/opam/opam-repository
# path                 ~/.opam/4.12.0+trunk/.opam-switch/build/re.1.9.0
# command              ~/.opam/4.12.0+trunk/bin/dune runtest -p re -j 71
# exit-code            1
# env-file             ~/.opam/log/re-1802-b1a82b.env
# output-file          ~/.opam/log/re-1802-b1a82b.out
### output ###
# File "lib_test/dune", line 4, characters 47-56:
# 4 |  (names test_easy test_re test_perl test_emacs test_glob test_pcre))
#                                                    ^^^^^^^^^
# Error: File unavailable:
# /home/opam/.opam/4.12.0+trunk/lib/stdlib-shims/stdlib_shims.a

They all seem to fail when dune runtest or dune build @runtest is called and only appears on 4.12.0.
#3576 and ocaml/opam-repository#16983 seem to be related issues (cc @dra27)

Reproduction

  1. Install ocaml 4.12.0+trunk
  2. call opam install -t re.1.9.0

Specifications

  • Version of dune (output of dune --version): 2.7.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions