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

[new release] dune (15 packages) (3.9.0~alpha1) #23989

Closed
wants to merge 1 commit into from

Conversation

emillon
Copy link
Contributor

@emillon emillon commented Jun 23, 2023

Fast, portable, and opinionated build system

CHANGES:

CHANGES:

- Validate file extension for `$ dune ocaml top-module`. (ocaml/dune#8005, fixes ocaml/dune#8004, @3Rafal)

- Include the time it takes to read/write state files when `--trace-file` is
  enabled (ocaml/dune#7960, @rgrinberg)

- Add `dune show` command group which is an alias of `dune describe`. (ocaml/dune#7946,
  @Alizter)

- Include source tree scans in the traces produced by `--trace-file` (ocaml/dune#7937,
  @rgrinberg)

- Cinaps: The promotion rules for cinaps would only offer one file at a time no
  matter how many promotions were available. Now we offer all the promotions at
  once (ocaml/dune#7901, @rgrinberg)

- Do not re-run OCaml syntax files on every iteration of the watch mode. This
  is too memory consuming. (ocaml/dune#7894, fix ocaml/dune#6900, @rgrinberg)

- Remove some compatibility code for old version of dune that generated
  `.merlin` files. Now dune will never remove `.merlin` files automatically
  (ocaml/dune#7562)

- Add `dune show env` command and make `dune printenv` an alias of it. (ocaml/dune#7985,
  @Alizter)

- Add additional metadata to the traces provided by `--trace-file` whenever
  `--trace-extended` is passed (ocaml/dune#7778, @rleshchinskiy)

- Extensions used in `(dialect)` can contain periods (e.g., `cppo.ml`). (ocaml/dune#7782,
  fixes ocaml/dune#7777, @nojb)

- Allow `(include_subdirs qualified)` to be used when libraries define a
  `(modules ...)` field (ocaml/dune#7797, fixes ocaml/dune#7597, @anmonteiro)

- `$ dune describe` is now a command group, so arguments to subcommands must be
  passed after subcommand itself. (ocaml/dune#7919, @Alizter)

- The `interface` and `implementation` fields of a `(dialect)` are now optional
  (ocaml/dune#7757, @gpetiot)

- Add commands `dune show targets` and `dune show aliases` that display all the
  available targets and aliases in a given directory respectively. (ocaml/dune#7770,
  grants ocaml/dune#265, @Alizter)

- Allow multiple globs in library's `(stdlib (internal_modules ..))`
  (@anmonteiro, ocaml/dune#7878)

- Attach melange rules to the default alias (ocaml/dune#7926, @haochenx)

- In opam constraints, reject `(and)` and `(or)` with no arguments at parse
  time (ocaml/dune#7730, @emillon)

- Compute digests and manage sandboxes in background threads (ocaml/dune#7947,
  @rgrinberg)

- Add `(build_if)` to the `(test)` stanza. When it evaluates to false, the
  executable is not built. (ocaml/dune#7899, fixes ocaml/dune#6938, @emillon)

- Add necessary parentheses in generated opam constraints (ocaml/dune#7682, fixes ocaml/dune#3431,
  @Lucccyo)
@emillon emillon marked this pull request as draft June 23, 2023 12:52
emillon added a commit to emillon/opam-repository that referenced this pull request Jun 26, 2023
In ocaml#23989:

    #=== ERROR while compiling mosquitto.0.1-0 ====================================#
    # context              2.2.0~alpha~dev | linux/x86_64 | ocaml-base-compiler.5.0.0 | file:///home/opam/opam-repository
    # path                 ~/.opam/5.0/.opam-switch/build/mosquitto.0.1-0
    # command              ~/.opam/opam-init/hooks/sandbox.sh build ocaml setup.ml -configure
    # exit-code            2
    # env-file             ~/.opam/log/mosquitto-8-f11d8d.env
    # output-file          ~/.opam/log/mosquitto-8-f11d8d.out
    ### output ###
    # File "./setup.ml", line 575, characters 4-15:
    # 575 |     Stream.from next
    #           ^^^^^^^^^^^
    # Error: Unbound module Stream
emillon added a commit to emillon/opam-repository that referenced this pull request Jun 26, 2023
In ocaml#23989:

    #=== ERROR while compiling ocsfml.2.0 =========================================#
    # context              2.2.0~alpha~dev | linux/x86_64 | ocaml-base-compiler.5.0.0 | file:///home/opam/opam-repository
    # path                 ~/.opam/5.0/.opam-switch/build/ocsfml.2.0
    # command              ~/.opam/opam-init/hooks/sandbox.sh build make
    # exit-code            2
    # env-file             ~/.opam/log/ocsfml-7-35c5e6.env
    # output-file          ~/.opam/log/ocsfml-7-35c5e6.out
    ### output ###
    # Scanning dependencies of target ocsfml
    # ocamlfind ocamlopt unix.cmxa -I /home/opam/.opam/5.0/lib/ocamlbuild /home/opam/.opam/5.0/lib/ocamlbuild/ocamlbuildlib.cmxa -linkpkg myocamlbuild.ml /home/opam/.opam/5.0/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
    # + ocamlfind ocamlopt unix.cmxa -I /home/opam/.opam/5.0/lib/ocamlbuild /home/opam/.opam/5.0/lib/ocamlbuild/ocamlbuildlib.cmxa -linkpkg myocamlbuild.ml /home/opam/.opam/5.0/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
    # File "myocamlbuild.ml", line 119, characters 14-31:
    # 119 |   "Ocsfml" ^ (String.capitalize s)
    #                     ^^^^^^^^^^^^^^^^^
    # Error: Unbound value String.capitalize
    # Command exited with code 2.
    # make[2]: *** [CMakeFiles/ocsfml.dir/build.make:76: CMakeFiles/ocsfml] Error 10
    # make[1]: *** [CMakeFiles/Makefile2:364: CMakeFiles/ocsfml.dir/all] Error 2
    # make: *** [Makefile:103: all] Error 2
emillon added a commit to emillon/opam-repository that referenced this pull request Jun 26, 2023
See ocaml#23989.

    #=== ERROR while compiling combine.0.6 ========================================#
    # context              2.2.0~alpha~dev | linux/x86_64 | ocaml-base-compiler.5.0.0 | file:///home/opam/opam-repository
    # path                 ~/.opam/5.0/.opam-switch/build/combine.0.6
    # command              ~/.opam/opam-init/hooks/sandbox.sh build ./configure --prefix=/home/opam/.opam/5.0
    # exit-code            2
    # env-file             ~/.opam/log/combine-7-6e39f2.env
    # output-file          ~/.opam/log/combine-7-6e39f2.out
    ### output ###
    # File "./setup.ml", line 318, characters 20-36:
    # 318 |     String.compare (String.lowercase s1) (String.lowercase s2)
    #                           ^^^^^^^^^^^^^^^^
    # Error: Unbound value String.lowercase
emillon added a commit to emillon/opam-repository that referenced this pull request Jun 26, 2023
See ocaml#23989

    #=== ERROR while compiling toplevel_expect_test.v0.15.0 =======================#
    # context              2.2.0~alpha~dev | linux/x86_64 | ocaml-base-compiler.5.0.0 | file:///home/opam/opam-repository
    # path                 ~/.opam/5.0/.opam-switch/build/toplevel_expect_test.v0.15.0
    # command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p toplevel_expect_test -j 47
    # exit-code            1
    # env-file             ~/.opam/log/toplevel_expect_test-7-8679e0.env
    # output-file          ~/.opam/log/toplevel_expect_test-7-8679e0.out
    ### output ###
    [...]
    # File "src/main.ml", line 526, characters 2-23:
    # 526 |   Clflags.unsafe_string   := Toplevel_backend.unsafe_string ();
    #         ^^^^^^^^^^^^^^^^^^^^^
    # Error: Unbound value Clflags.unsafe_string
@emillon
Copy link
Contributor Author

emillon commented Jun 26, 2023

I'll restart once #23990 is merged since it accounts for 700+ failures.

emillon added a commit to emillon/opam-repository that referenced this pull request Jun 27, 2023
In ocaml#23989:

    #=== ERROR while compiling ocamldot.1.1 =======================================#
    # context              2.2.0~alpha~dev | linux/x86_64 | ocaml-base-compiler.5.0.0 | file:///home/opam/opam-repository
    # path                 ~/.opam/5.0/.opam-switch/build/ocamldot.1.1
    # command              ~/.opam/opam-init/hooks/sandbox.sh build make all
    # exit-code            2
    # env-file             ~/.opam/log/ocamldot-7-fd3f72.env
    # output-file          ~/.opam/log/ocamldot-7-fd3f72.out
    ### output ###
    # /home/opam/.opam/5.0/bin/ocamlyacc -v odot_parser.mly
    # /home/opam/.opam/5.0/bin/ocamllex.opt odot_lexer.mll
    # 62 states, 621 transitions, table size 2856 bytes
    # rm -fr .depend
    # /home/opam/.opam/5.0/bin/ocamldep.opt *.ml *.mli > .depend
    # autoconf
    # make: autoconf: No such file or directory
    # make: *** [Makefile:103: configure] Error 127
@emillon emillon closed this Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment