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

Can't load from toplevel with topfind #7

Open
nahoj opened this issue Apr 25, 2023 · 1 comment
Open

Can't load from toplevel with topfind #7

nahoj opened this issue Apr 25, 2023 · 1 comment

Comments

@nahoj
Copy link

nahoj commented Apr 25, 2023

[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?

@rr0gi
Copy link

rr0gi commented Jun 28, 2023

ref ocaml/dune#7470

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants