Fatal error: algorithm file not found

Kenneth Adam Miller <[email protected]> Sat, 28 Dec 2024 18:18:54 -0600
Newsgroups gmane.comp.lang.caml.inria
Message-ID <CAK7rcp_yMfOUazq7D38fOr6GVnydk9M5g4EiWKxuwkTvpoUzag@mail.gmail.com>
I'm trying to install bap, and I ran into this error:

lib/bap_disasm/disasm.cpp:2:10: fatal error: 'algorithm' file not found
#include <algorithm>
         ^~~~~~~~~~~
1 error generated.
Command exited with code 1.
+ ocamlfind ocamlopt -package unix -package ocamlbuild -linkpkg -package
findlib myocamlbuild.ml
/home/kennethadammiller/.opam/4.14.1+flambda/lib/ocamlbuild/ocamlbuild.cmx
-o myocamlbuild


My llvm version is 14, I think and I'm on Ubuntu 22.04. I think what this
has to do with is the default list of include directories that clang
searches when compiling. You would think that C++ ought to know where its
own stdlib is, but apparently not. I think I am looking for a environment
variable option to allow to pass in to ocaml builds some include directory.
Either that, or a downgrade to an llvm version that works. Can anyone help?