I am wondering whether my ocamlnat was built with right configuration options or it had missing ones. Running #use "topfind" is raising an undefined symbol error and one additional warning:
$ ocamlnat
OCaml version 4.14.2 - native toplevel
Enter #help;; for help.
# #use "topfind";;
>> Fatal error: Toploop.dll_run /tmp/camlTOP223e2fe.so: undefined symbol: camlTopfind
File "_none_", line 1:
Warning 58 [no-cmx-file]: no cmx file was found in path for module TOP1, and its interface was not compiled with -opaque
- : unit = ()
Findlib has been successfully loaded. Additional directives:
#require "package";; to load a package
#list;; to list the available packages
#camlp4o;; to load camlp4 (standard syntax)
#camlp4r;; to load camlp4 (revised syntax)
#predicates "p,q,...";; to set these predicates
Topfind.reset();; to force that packages will be reloaded
#thread;; to enable threads
- : unit = ()
#
I used ./configure --enable-native-toplevel when building OCaml 4.14.