+ `which clang++` -O2 -std=c++11 -fPIC -I/home/kennethadammiller/.opam/4.14.1+flambda/lib/ocaml -I/home/kennethadammiller/.opam/4.14.1+flambda/lib/bap -Ilib/bap_disasm -c lib/bap_disasm/disasm.cpp -o lib/bap_disasm/disasm.o lib/bap_disasm/disasm.cpp:2:10: fatal error: 'algorithm' file not found #include ^~~~~~~~~~~ 1 error generated. Command exited with code 1 More precisely specify error. On Sat, Dec 28, 2024 at 6:18 PM Kenneth Adam Miller < kennethadammiller@gmail.com> wrote: > 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 > ^~~~~~~~~~~ > 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? >