monolith icon indicating copy to clipboard operation
monolith copied to clipboard

Consider releasing ARM64 binary file

Open JokerQyou opened this issue 4 years ago • 4 comments

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

JokerQyou avatar Jun 20 '21 08:06 JokerQyou

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.

snshn avatar Jun 20 '21 10:06 snshn

Please let me know if artifact in https://github.com/Y2Z/monolith/releases/tag/v2.6.1 works.

snshn avatar Jul 04 '21 05:07 snshn

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

JokerQyou avatar Jul 04 '21 08:07 JokerQyou

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.

snshn avatar Jul 04 '21 08:07 snshn

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

snshn avatar Nov 10 '22 23:11 snshn

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.

JokerQyou avatar Nov 17 '22 04:11 JokerQyou

Ok, ARM binary from the latest release (2.7.0) works very well on my testing machine, no more glibc issue now.

JokerQyou avatar Nov 17 '22 13:11 JokerQyou