Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues installing BAP #1613

Open
Abhiroop opened this issue Sep 15, 2024 · 0 comments
Open

Issues installing BAP #1613

Abhiroop opened this issue Sep 15, 2024 · 0 comments

Comments

@Abhiroop
Copy link

Abhiroop commented Sep 15, 2024

I am trying to install bap. Firstly I tried installing it from the sources (opam install bap) and ran into this error:

[ERROR] The compilation of bap-std.2.5.0 failed at "make".

#=== ERROR while compiling bap-std.2.5.0 ======================================#
# context     2.1.2 | linux/x86_64 | ocaml-base-compiler.4.14.1 | https://opam.ocaml.org#b7a474459d5c5da61dd939353c4899d25eaad097
# path        ~/.opam/my_switch1/.opam-switch/build/bap-std.2.5.0
# command     ~/.opam/opam-init/hooks/sandbox.sh build make
# exit-code   2
# env-file    ~/.opam/log/bap-std-311605-3117d1.env
# output-file ~/.opam/log/bap-std-311605-3117d1.out
### output ###
# [...]
# Use the camlp-streams library instead.
# File "myocamlbuild.ml", line 467, characters 42-53:
# 467 |         Stream.junk lxr; Stream.junk lxr; Stream.junk lxr;
#                                                 ^^^^^^^^^^^
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# File "myocamlbuild.ml", line 479, characters 17-34:
# 479 |         let st = Stream.of_channel chn in
#                        ^^^^^^^^^^^^^^^^^
# Alert deprecated: module Stdlib.Stream
# Use the camlp-streams library instead.
# make: *** [Makefile:8: build] Error 1



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build bap-std 2.5.0
└─ 

I am assuming using camlp-streams would require changing the dependencies of the project.

Next, I tried installing from the prebuilt binaries. Upon issuing bap /bin/echo -d, I get:

Failed to load plugin "primus-symbolic-executor": Failed to load z3ml: error loading shared library: Dynlink.Error (Dynlink.Cannot_open_dll "Failure(\"/tmp/z3ml2706c5.cmxs: undefined symbol: Z3_mk_u32string\")")
Failed to load 1 plugins, details follow:
The plugin `/usr/local/lib/bap/primus_symbolic_executor.plugin' has failed with the following error:
Failed to load z3ml: error loading shared library: Dynlink.Error (Dynlink.Cannot_open_dll "Failure(\"/tmp/z3ml2706c5.cmxs: undefined symbol: Z3_mk_u32string\")")

Any suggestions on fixing these? For reference, I am running this on Ubuntu 22.04.

opam switch
#  switch      compiler                    description
   default     ocaml.4.13.1                default
→  my_switch1  ocaml-base-compiler.4.14.1  my_switch1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant