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?