Skip to content

dune-build-info transitively used from ppx rewriter #3336

@xclerc

Description

@xclerc

(note: I am not sure the use case below is supposed to be supported, as the documentation states that build info can be embedded in executables, but does not explicitly mention whether it can be embedded in libraries.)

Expected Behavior

Define a library depending on dune-build-info and have a ppx rewriter depending on said library.

Actual Behavior

Dune fails with:

File ".ppx/98cd9c27bc47def1a842c7a721af4e6b/_ppx.ml", line 1:
Error: No implementations provided for the following modules:
         Build_info__Build_info_data referenced from /Users/xclerc/.opam/4.10.0/lib/dune-build-info/build_info.cmxa(Build_info)

Reproduction

repro.zip

Specifications

  • Version of dune (output of dune --version): 2.4.0
  • Version of ocaml (output of ocamlc --version): 4.10.0
  • Operating system (distribution and version): macOS

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