It seems Ocaml-Kaleidoscope/ tutorial is not[[ https://github.com/llvm/llvm-project/commits/main/llvm/examples/OCaml-Kaleidoscope | updated from the last 10 years ]] (the last fix was on Fab 10, 2011). It does not validate itself with the tests. It seems no-one maintaining Ocaml. I tried to build it, Chapter 4,5,6,7 are not compiling because of an error In ExecutionEngine.
The error was:-
File "toplevel.ml", line 37, characters 25-53:
37 | let result = ExecutionEngine.run_function the_function [||]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Unbound module ExecutionEngine
Command exited with code 2.