You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to build bap from source and I encountered an error when building.
Specifically in tools/rewrite.ml there is an issue when the ocaml library is present in the path /usr/lib64/ocaml and the following instruction raises an error.
String.chop_suffix_exn stdlib "/lib/ocaml"
I have attempted a naive fix by modifying the code.
let prefix =let stdlib =Cfg.ocaml_config_var_exn self "standard_library"in
(
tryString.chop_suffix_exn stdlib "/lib/ocaml"with|exn ->
String.chop_suffix_exn stdlib "/lib64/ocaml"
) in
I have not submitted a pull request since I don't really know if this is the standard way of dealing with this things in ocaml as it is my first time using.
The text was updated successfully, but these errors were encountered:
Support for dune is still in the experimental stage. And indeed, I didn't consider that there could be another suffix. I think a better option here would be to chop two last path elements. A PR would be welcome, otherwise I will try to find some time to fix it. Thanks for reporting!
I was trying to build bap from source and I encountered an error when building.
Specifically in
tools/rewrite.ml
there is an issue when the ocaml library is present in the path/usr/lib64/ocaml
and the following instruction raises an error.I have attempted a naive fix by modifying the code.
I have not submitted a pull request since I don't really know if this is the standard way of dealing with this things in ocaml as it is my first time using.
The text was updated successfully, but these errors were encountered: