bap is not currently compatible with OCaml 5.0 due to its use of the deprecated OASIS tool.
During last release @ivg told me you were working on a switch to dune (ocaml/opam-repository#21781 (comment))
I’m opening this issue just to track the progress of this given the full release of OCaml 5.0 is currently planned for early next month.