Re: Fatal error: algorithm file not found
Kenneth Adam Miller <[email protected]> Sat, 28 Dec 2024 18:22:04 -0600
| Newsgroups | gmane.comp.lang.caml.inria |
|---|---|
| Message-ID | <CAK7rcp-5cfBfPEqNOe9Lw7qZL0BNFHrSa=7otgW5LJK1qGQHNQ@mail.gmail.com> |
+ `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 <algorithm>
^~~~~~~~~~~
1 error generated.
Command exited with code 1
More precisely specify error.
On Sat, Dec 28, 2024 at 6:18 PM Kenneth Adam Miller <
[email protected]> 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 <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?
>