Skip to content

cant get (special_builtin_support) to work with findlib.dynload #2595

@avsm

Description

@avsm

With the duniverse port of findlib, I can't get ppxfind to compile due to some interaction with the special handling of dynlink.

To repro:

$ opam source ppxfind
$ git clone git://github.com/dune-universe/lib-findlib -b duniverse-1.8.1 ppxfind.1.3/findlib
$ cd ppxfind.1.3
$ dune build --verbose
<snip>
$ (cd _build/default && /home/avsm2/.opam/407/bin/ocamlc.opt -bin-annot -I src/.ppxfind.eobjs/byte -I findlib/src/findlib/.findlib_public.objs/byte -I findlib/src/findlib/.findlib_public.objs/native -no-alias-deps -opaque -o src/.ppxfind.eobjs/byte/findlib_initl.cmo -c -impl src/.ppxfind.eobjs/findlib_initl.ml-gen)
File "src/.ppxfind.eobjs/findlib_initl.ml-gen", line 1, characters 0-22:
Error: Unbound module Findlib
Hint: Did you mean Stdlib?

The dune port of findlib has:

(library
  (name findlib_dynload)
  (public_name findlib.dynload)
  (wrapped false)
  (libraries findlib.internal dynlink)
  (special_builtin_support findlib_dynload)
  (modules fl_dynload))

in ppxfind, removing findlib.dynload from the dune file and commenting out the relevant line allows it to compile fine. But as soon as the findlib.dynload package is referenced, it fails despite the use of special_builtin_support

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