Skip to content

Unable to install dune.3.17.2 on a fresh opam switch #11491

@mariusgoyet

Description

@mariusgoyet

Expected Behavior

Install dune without any errors with opam install dune

Actual Behavior

[ERROR] The compilation of dune.3.17.2 failed at "ocaml boot/bootstrap.ml -j 7".

#=== ERROR while compiling dune.3.17.2 ========================================#
# context     2.1.5 | linux/x86_64 | ocaml.5.4.0 | https://opam.ocaml.org#36f4d2d5ceb882a79fd7d7f956b490201da67226
# path        ~/.opam/test/.opam-switch/build/dune.3.17.2
# command     ~/.opam/opam-init/hooks/sandbox.sh build ocaml boot/bootstrap.ml -j 7
# exit-code   2
# env-file    ~/.opam/log/dune-7182-07e9c3.env
# output-file ~/.opam/log/dune-7182-07e9c3.out
### output ###
# ocamlc -output-complete-exe -w -24 -g -o .duneboot.exe -I boot -I +unix unix.cma boot/libs.ml boot/duneboot.ml
# ./.duneboot.exe -j 7
# cd _boot && /home/marius/.opam/test/bin/ocamlopt.opt -c -g -no-alias-deps -w -49-6 -alert -unstable -I +unix -I +threads ocamlc_loc.mli
# File "otherlibs/ocamlc-loc/src/ocamlc_loc.mli", line 1, characters 4-9:
# Warning 53 [misplaced-attribute]: the alert attribute cannot appear in this context
# cd _boot && /home/marius/.opam/test/bin/ocamlopt.opt -c -g -no-alias-deps -w -49-6 -alert -unstable -I +unix -I +threads notty.ml
# File "vendor/notty/src/notty.ml", lines 387-397, characters 43-7:
# Error: Some record fields are undefined: out_width
# 

Specifications

  • Version of dune (output of dune --version): Not installed
  • Version of ocaml (output of ocamlc --version): 5.4.0+dev0-2024-08-25
  • Version of opam (output of opam --version): 2.1.5
  • Operating system (distribution and version): Ubuntu 24.04.2 LTS x86_64

Additional information

I've tried on a fresh opam switch created with opam switch create test ocaml.5.4.0.
I am able to install dune.3.7.1 with no errors, but not dune.8.0., but I'd like to have the last version of dune.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions