binsider icon indicating copy to clipboard operation
binsider copied to clipboard

[+] Statically Linked Musl Builds are broken

Open Azathothas opened this issue 1 year ago β€’ 1 comments

Hi, I tried to build binsider to add in https://github.com/Azathothas/Toolpacks on alpine:latest, however it errors out with:

   Compiling lddtree v0.3.5
   Compiling lurk-cli v0.3.6
error[E0432]: unresolved import `libc::PTRACE_SYSCALL_INFO_EXIT`
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lurk-cli-0.3.6/src/lib.rs:77:30
   |
77 | use libc::{user_regs_struct, PTRACE_SYSCALL_INFO_EXIT};
   |                              ^^^^^^^^^^^^^^^^^^^^^^^^ no `PTRACE_SYSCALL_INFO_EXIT` in the root

For more information about this error, try `rustc --explain E0432`.
error: could not compile `lurk-cli` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

And the fact that the official release only contain gnu dynamic binaries, I think you are already aware of this issue. Hopefully, we can get a statically linked binsider binary that can run anywhere. Thanks!

Azathothas avatar Sep 12 '24 05:09 Azathothas

Thanks for the issue! See the following links:

  • https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/71833
  • https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/71875

I think it will be possible soon 🀞🏼

orhun avatar Sep 19 '24 13:09 orhun

Revisiting this, I was able to build it from source on x86_64-Linux however on aarch64-Linux, I ran into https://github.com/orhun/binsider/issues/56 Which then led me to https://github.com/JakWai01/lurk/issues/4 Seems like upstream issue, and you are already aware of it: https://github.com/orhun/binsider/issues/56#issuecomment-2381571481 I added prebuilds too, both can be installed with soar

  • On aarch64 Image

  • On x86_64 Image

Azathothas avatar Mar 02 '25 12:03 Azathothas