Consider releasing ARM64 binary file
Currently armhf binary is included in release artifacts, but to run armhf executables on an ARM64 (aarch64) OS it seems like you need ia32 related libs installed. Would you consider building for aarch64 when releasing monolith? On such machine the target info is like this:
$ rustc --print cfg
debug_assertions
target_arch="aarch64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_os="linux"
target_pointer_width="64"
target_vendor="unknown"
unix
Hi there, thank you for the tip!
It looks like it has to be targeted specifically at glib for GNU/Linux, musl would require a separate binary.
#267 is currently there to implement this, I'll run some tests locally using qemu to make sure that approach works, if all goes well the next release will contain AArch64 executable in its artifacts.
Please let me know if artifact in https://github.com/Y2Z/monolith/releases/tag/v2.6.1 works.
The glibc it was linked against seems a little bit too high. Nowadays many docker images are built upon debian:buster and it's reasonable to stay with glibc 2.28. Test result:
$ ./monolith -h
./monolith: /lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by ./monolith)
$ ldd --version ldd
ldd (Debian GLIBC 2.28-10) 2.28
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
$ cat /etc/issue
Debian GNU/Linux 10 \n \l
Oh, interesting... it seems like only Ubuntu 20.04 (that GitHub Actions provides) has ARM64 packages, but I'll double-check now with Ubuntu 18.04, Glibc should be older there.
Please let me know if this is still needed.
And meanwhile, found this page full of builds for various architectures and OSes, although can't vouch for how secure that stuff is, I don't use sourceforge: https://sourceforge.net/mirror/monolith/activity/?page=0&limit=100
Sorry I've been off GitHub for some days so did not receive notifications for this thread. I'll test the latest release tonight and provide feedback later.
Ok, ARM binary from the latest release (2.7.0) works very well on my testing machine, no more glibc issue now.