I think dune needs additional fixes for OCaml 5.00
https://github.com/ocaml/dune/blob/2.9/src/dune_rules/findlib/meta.ml#L230
bigarray is defined as dummy but has been removed in OCaml 5.00
This causes issues for packages that use ocamlfind:
#=== ERROR while compiling topkg-care.1.0.5 ===================================#
# context 2.2.0~alpha~dev | linux/x86_64 | ocaml-variants.5.00.0+trunk | file:///home/opam/opam-repository
# path ~/.opam/5.00/.opam-switch/build/topkg-care.1.0.5
# command ~/.opam/opam-init/hooks/sandbox.sh build ocaml pkg/pkg.ml build --pkg-name topkg-care --dev-pkg false
# exit-code 1
# env-file ~/.opam/log/topkg-care-10-c10615.env
# output-file ~/.opam/log/topkg-care-10-c10615.out
### output ###
# ocamlfind ocamldep -package 'opam-format cmdliner fmt.cli logs.cli bos.setup' -package 'webbrowser webbrowser.cli' -modules src-care/topkg_care.ml > src-care/topkg_care.ml.depends
# + ocamlfind ocamldep -package 'opam-format cmdliner fmt.cli logs.cli bos.setup' -package 'webbrowser webbrowser.cli' -modules src-care/topkg_care.ml > src-care/topkg_care.ml.depends
# ocamlfind: Package `bigarray' not found - required by `opam-core'
# Command exited with code 2.
# pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
# '-build-dir' '_build' 'CHANGES.md' 'LICENSE.md' 'README.md'
# 'topkg-care.opam' 'src-care/topkg_care.a' 'src-care/topkg_care.cmxs'
# 'src-care/topkg_care.cmxa' 'src-care/topkg_care.cma'
# 'src-care/topkg_care_text.cmx' 'src-care/topkg_care_pkg.cmx'
# 'src-care/topkg_care_opam.cmx' 'src-care/topkg_care_ocamlfind.cmx'
# 'src-care/topkg_care_ocamlbuild.cmx' 'src-care/topkg_care_ipc.cmx'
# 'src-care/topkg_care_delegate.cmx' 'src-care/topkg_care_archive.cmx'
# 'src-care/topkg_care.cmx' 'src-care/topkg_care.cmi'
# 'src-care/topkg_care.mli' 'src-bin/topkg_bin.native'
# 'src-bin/toy_github_delegate.native' 'test/unsupportive-delegate'
# 'test/echo-delegate']: exited with 10
Where opam-core requires bigarray but isn’t notified that the library does not exist anymore, thus making any subsequent library fail.
I think dune needs additional fixes for OCaml 5.00
https://github.com/ocaml/dune/blob/2.9/src/dune_rules/findlib/meta.ml#L230
bigarrayis defined as dummy but has been removed in OCaml 5.00This causes issues for packages that use ocamlfind:
Where
opam-corerequiresbigarraybut isn’t notified that the library does not exist anymore, thus making any subsequent library fail.