Quantcast
Channel: OCaml - Topics tagged dune
Viewing all articles
Browse latest Browse all 521

Dynlinking plugin which references LLVM stubs

$
0
0

I’m following dune’s manual about creating dynamically loadable plugins How to Load Additional Files at Runtime — Dune documentation

When my plugin depends on Unix library it loads fine. But when I reference Llvm instead of Unix, it can’t load a plugin, saying.

Fatal error: exception Dynlink.Error
(Dynlink.Cannot_open_dll “Dynlink.Error (Dynlink.Cannot_open_dll "Failure(\"/home/kakadu/asp/dune-sites-demo/_build/install/default/lib/plugin1/plugin1_impl/plugin1_impl.cmxs: undefined symbol: llvm_build_add\")")”)

The demo is here. Any ideas?

P.S. I want to mention @alan who’s working on new Llvm release.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 521

Trending Articles