Skip to content

New contributor getting an error from make dev #6757

@petr-tik

Description

@petr-tik

Hey, I wanted to start hacking on dune and following instructions here
https://github.com/ocaml/dune/blob/main/doc/hacking.rst#bootstrapping

I thought it would be easy to setup, but got a build error due to a missing dep.

Expected Behavior

Running make dev as documented in doc/hacking.rst builds successfully

Actual Behavior

petr_tik@merluzon:~/Coding/dune main
git show --pretty=oneline | head -1
f27f63e95450b2d8f08053da316c2c881b26b23f Fix for issue #6486 "Inconsistent ppx reporting by dune describe" (#6727)
petr_tik@merluzon:~/Coding/dune main
make dev
ocamlc -output-complete-exe -w -24 -g -o .duneboot.exe -I boot unix.cma boot/libs.ml boot/duneboot.ml
./.duneboot.exe
./_boot/dune.exe build @install
File "otherlibs/dune-rpc-lwt/src/dune", line 4, characters 38-46:
4 |  (libraries result csexp dune_rpc lwt lwt.unix unix)
                                          ^^^^^^^^
Error: Library "lwt.unix" not found.
-> required by library "dune-rpc-lwt" in
   _build/default/otherlibs/dune-rpc-lwt/src
-> required by _build/default/META.dune-rpc-lwt
-> required by _build/install/default/lib/dune-rpc-lwt/META
-> required by _build/default/dune-rpc-lwt.install
-> required by alias install
Makefile:53: recipe for target 'dev' failed          
make: *** [dev] Error 1

Reproduction

  1. git clone
  2. checkout the SHA above git checkout f27f63e95450b2d8f08053da316c2c881b26b23f
  3. Run make dev

Specifications

  • Version of dune
    Not installed
dune --version

Command 'dune' not found, but can be installed with:

sudo apt install whitedune
  • Version of ocaml (output of ocamlc --version)
ocamlc --version
4.14.0
petr_tik@merluzon:~/Coding/dune main
which ocamlc
/home/petr_tik/.opam/4.14.0/bin/ocamlc
  • Operating system (distribution and version):
lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.5 LTS
Release:	18.04
Codename:	bionic

Additional info

Might be cool to automate build error reporting with a Makefile target that runs make dev and then collects everything needed for a bug report (listed above) and helps open an issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions