Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Kenneth Adam Miller <kennethadammiller@gmail.com>
To: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Fatal error: algorithm file not found
Date: Sat, 28 Dec 2024 18:22:04 -0600	[thread overview]
Message-ID: <CAK7rcp-5cfBfPEqNOe9Lw7qZL0BNFHrSa=7otgW5LJK1qGQHNQ@mail.gmail.com> (raw)
In-Reply-To: <CAK7rcp_yMfOUazq7D38fOr6GVnydk9M5g4EiWKxuwkTvpoUzag@mail.gmail.com>

[-- 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 --]

  reply	other threads:[~2024-12-29  0:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-29  0:18 Kenneth Adam Miller
2024-12-29  0:22 ` Kenneth Adam Miller [this message]
2024-12-29  0:49   ` Kenneth Adam Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK7rcp-5cfBfPEqNOe9Lw7qZL0BNFHrSa=7otgW5LJK1qGQHNQ@mail.gmail.com' \
    --to=kennethadammiller@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox