Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] Fatal error: algorithm file not found
@ 2024-12-29  0:18 Kenneth Adam Miller
  2024-12-29  0:22 ` Kenneth Adam Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Kenneth Adam Miller @ 2024-12-29  0:18 UTC (permalink / raw)
  To: caml users

[-- Attachment #1: Type: text/plain, Size: 849 bytes --]

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?

[-- Attachment #2: Type: text/html, Size: 1012 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Fatal error: algorithm file not found
  2024-12-29  0:18 [Caml-list] Fatal error: algorithm file not found Kenneth Adam Miller
@ 2024-12-29  0:22 ` Kenneth Adam Miller
  2024-12-29  0:49   ` Kenneth Adam Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Kenneth Adam Miller @ 2024-12-29  0:22 UTC (permalink / raw)
  To: caml users

[-- Attachment #1: Type: text/plain, Size: 1430 bytes --]

+ `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 <
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 <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?
>

[-- Attachment #2: Type: text/html, Size: 1910 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Fatal error: algorithm file not found
  2024-12-29  0:22 ` Kenneth Adam Miller
@ 2024-12-29  0:49   ` Kenneth Adam Miller
  0 siblings, 0 replies; 3+ messages in thread
From: Kenneth Adam Miller @ 2024-12-29  0:49 UTC (permalink / raw)
  To: caml users

[-- Attachment #1: Type: text/plain, Size: 1689 bytes --]

I fixed it with

sudo apt install g++-12

I suppose that should be added to apt-get install dependencies.

On Sat, Dec 28, 2024 at 6:22 PM Kenneth Adam Miller <
kennethadammiller@gmail.com> wrote:

> + `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 <
> 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 <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?
>>
>

[-- Attachment #2: Type: text/html, Size: 2867 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-29  0:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-29  0:18 [Caml-list] Fatal error: algorithm file not found Kenneth Adam Miller
2024-12-29  0:22 ` Kenneth Adam Miller
2024-12-29  0:49   ` Kenneth Adam Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox