I’m stuck with a js_of_ocaml compilation problem. I’ve spent a lot of time to try to understand the problem by my self but did not managed to solve it. Any help would be greatly appreciated!
Here is my problem:
It concerns some code I did not write myself. This code uses js_of_ocaml to build a GUI that interacts with a server process, which launches itself some other processes. The code used to build (and execute) finely with “thread” tag in ocamlbuild command, using js_of_ocaml and js_of_ocaml-lwt 3.0.2.
I recently had to upgrade to OCaml 4.10.0 and js_of_caml 3.5.3, and now, at compilation, “some primitives are missing”:
There are some missing primitives Dummy implementations (raising 'Failure' exception) will be used if they are not available at runtime. You can prevent the generation of dummy implementations with the commandline option '--disable genprim' Missing primitives: caml_mutex_new caml_thread_initialize
On the client side, here are the “lwt modules” that are used:
- Js_of_ocaml_lwt.Lwt_js (sleep)
- Lwt (async, ignore_result)
Again, I would appreciate any help to understand and solve that problem.