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

bap: too many arguments, don't know what to do with 'sysdatadir' #17

Open
wudehua2016 opened this issue Feb 8, 2024 · 1 comment
Open

Comments

@wudehua2016
Copy link

wudehua2016 commented Feb 8, 2024

Note. Delete this message after you read it! If bap fails with an error, you have problems with installation, or need feedback, please use our main issue tracker. We reserve this one to track issues with tools capabilities. In the title, substitute:

  • spectre
  • - x86-64
  • - ubuntu 20.04
  • - bap 2.5.0
    follew the instructions from the webpage, but an errors was iuessed: bap: too many arguments, don't know what to do with 'sysdatadir'.
    attached is my command and log:

XXXX@XXXX-dell:~/bap/bap-toolkit$ make TARGET=spectre
sh build.sh clean spectre
sh build.sh build spectre
Entering directory `spectre'
bapbuild -pkgs bap,bap-primus,bap-taint,bap-future,graphlib ddtbd.plugin
+ ocamlfind ocamlc -c -g -thread -package graphlib -package bap-future -package bap-taint -package bap-primus -package bap -package ppx_bap -package core_kernel -o ddtbd.cmo ddtbd.ml
File "ddtbd.ml", line 216, characters 6-17:
216 |       Hashtbl.set cdoms (cnd,blk) answer;
            ^^^^^^^^^^^
Warning 6 [labels-omitted]: labels key, data were omitted in the application of this function.
File "ddtbd.ml", line 233, characters 4-15:
233 |     Hashtbl.set cdeps (cond,blk) depends;
          ^^^^^^^^^^^
Warning 6 [labels-omitted]: labels key, data were omitted in the application of this function.
+ ocamlfind ocamlopt -c -g -thread -package graphlib -package bap-future -package bap-taint -package bap-primus -package bap -package ppx_bap -package core_kernel -o ddtbd.cmx ddtbd.ml
File "ddtbd.ml", line 216, characters 6-17:
216 |       Hashtbl.set cdoms (cnd,blk) answer;
            ^^^^^^^^^^^
Warning 6 [labels-omitted]: labels key, data were omitted in the application of this function.
File "ddtbd.ml", line 233, characters 4-15:
233 |     Hashtbl.set cdeps (cond,blk) depends;
          ^^^^^^^^^^^
Warning 6 [labels-omitted]: labels key, data were omitted in the application of this function.
Finished, 20 targets (0 cached) in 00:00:04.
Leaving directory `spectre'
sh build.sh install spectre
bap: too many arguments, don't know what to do with 'sysdatadir'
Usage: bap disassemble [OPTION]… [FILE]
Try 'bap disassemble --help' or 'bap --help' for more information.

cp: missing destination file operand after 'spectre.recipe'
Try 'cp --help' for more information.
XXXX@XXXX-dell:~/bap/bap-toolkit$ 

how can i fix that??
thanks

@ivg
Copy link
Member

ivg commented Feb 8, 2024

Hey! This repository follows the master version of bap, so it doesn't build with the older 2.5.0 version. You can either try to install the latest version of bap (the master branch from the main repository) or try to revert some of the latest changes. My guess is that the the offending line is this one: c691c4f#diff-4d2a8eefdf2a9783512a35da4dc7676a66404b6f3826a8af9aad038722da6823L102

So going beyond this commit should fix the issue.

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

2 participants