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
Cannot opam install bap-llvm
when system only has ncurses
#1261
Comments
Well, the problem is in the upstream (llvm) and we don't really have a lot of choices here, without this line bap will be broken on nearly all distributions. We may alternatively try to link with Alternatively, we can add the explicit support for your system and do not provide Concerning the NixOS patch, it is actually breaking bap (in bytecode and toplevel modes). You can, of course, repeat it yourself, as a workaround, just clone the opam-repository and patch it out. Here are the steps:
Besides, what OS are you using? As a side note, we need to update the nixos bap package. |
I am using NixOS.
I did not experience the BAP failure when installing, and using from the NixOS package. I am familiar with the process and the platform, so I am gonna have a look to updade the package in |
As pointed upstream: BinaryAnalysisPlatform/bap#1261 (comment) Signed-off-by: Pamplemousse <xav.maso@gmail.com>
As pointed upstream: BinaryAnalysisPlatform/bap#1261 (comment) Signed-off-by: Pamplemousse <xav.maso@gmail.com>
The problem occurs during runtime when the plugins are loaded with the dynamic linker. It depends on the kind of the linker, but usually it fails with the bytecode linker. So you can try to run Also, the problem is really not in BAP or the linker or OCaml. The problem is in LLVM which links this symbol. And this symbol has various availability on various systems, so it depends on the packaging of LLVM and the system-specific libraries. Moreover, the symbol is brought into the llvm library also more or less accidentally, as far as I remember, it is not really used, but comes from a header, so it also depends on the order of inclusions and compiler optimizations. EDIT: also your patch doesn't drop |
Should be fixed by #1435 |
Looking to install
bap
usingopam
, it fails when trying to installbap-llvm
, with the following:As the title says, there is no
curses
package for my distribution: it only hasncurses
.Incidentally, I use NixOS, BAP is packaged for it, and the package configuration patches
-lcurses
out: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/ocaml-modules/bap/dont-add-curses.patch .The text was updated successfully, but these errors were encountered: