Skip to content

Can't load from toplevel with topfind #7

@nahoj

Description

@nahoj

[Edited for clarity]

Hi,

I'm trying to use Camomile 2.0 with OCaml 5.0.0 and I can't load it from the toplevel using Topfind, even though I am able to load other packages such as dolog and ubase that way.

#use "topfind";;
- : unit = ()
Findlib has been successfully loaded. [...]
- : unit = ()
Topfind.load_deeply ["camomile"];;
/home/jg/.opam/5.0.0/lib/camlp-streams: added to search path
/home/jg/.opam/5.0.0/lib/camlp-streams/camlp_streams.cma: loaded
/home/jg/.opam/5.0.0/lib/dune-private-libs/dune-section: added to search path
/home/jg/.opam/5.0.0/lib/dune-private-libs/dune-section/dune_section.cma: loaded
/home/jg/.opam/5.0.0/lib/dune-site/private: added to search path
/home/jg/.opam/5.0.0/lib/dune-site/private/dune_site_private.cma: loaded
/home/jg/.opam/5.0.0/lib/dune-site: added to search path
/home/jg/.opam/5.0.0/lib/dune-site/dune_site.cma: loaded
Exception: Symtable.Error _.

(I installed OCaml 5.0.0 and Camomile using opam.)

$ ls /home/jg/.opam/5.0.0/lib/camomile 
camomile.a  camomile.cma  camomile.cmi  camomile.cmt  camomile.cmx  camomile.cmxa  camomile.cmxs  camomile.ml  dune-package  internal  lib  META  opam  public

With Camomile 1.0.2 and OCaml 4.14.1, it loads successfully:

#use "topfind";;
- : unit = ()
Findlib has been successfully loaded. [...]
- : unit = ()
Topfind.load_deeply ["camomile"];;
/home/jg/.opam/4.14.1/lib/camomile/default_config: added to search path
/home/jg/.opam/4.14.1/lib/camomile/default_config/camomileDefaultConfig.cma: loaded
/home/jg/.opam/4.14.1/lib/ocaml/unix.cma: loaded
/home/jg/.opam/4.14.1/lib/ocaml/bigarray.cma: loaded
/home/jg/.opam/4.14.1/lib/camomile/library: added to search path
/home/jg/.opam/4.14.1/lib/camomile/library/camomileLibrary.cma: loaded
/home/jg/.opam/4.14.1/lib/camomile/lib_default: added to search path
/home/jg/.opam/4.14.1/lib/camomile/lib_default/camomileLibraryDefault.cma: loaded
/home/jg/.opam/4.14.1/lib/camomile/dyn: added to search path
/home/jg/.opam/4.14.1/lib/camomile/dyn/camomileLibraryDyn.cma: loaded
/home/jg/.opam/4.14.1/lib/camomile: added to search path
/home/jg/.opam/4.14.1/lib/camomile/camomile_yuge.cma: loaded
- : unit = ()

Should I do things differently with Camomile 2?

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