Skip to content
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

Consider releasing ARM64 binary file #266

Closed
JokerQyou opened this issue Jun 20, 2021 · 7 comments
Closed

Consider releasing ARM64 binary file #266

JokerQyou opened this issue Jun 20, 2021 · 7 comments

Comments

@JokerQyou
Copy link

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
@snshn
Copy link
Member

snshn commented Jun 20, 2021

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
Copy link
Member

snshn commented Jul 4, 2021

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

@JokerQyou
Copy link
Author

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

@snshn
Copy link
Member

snshn commented Jul 4, 2021

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
Copy link
Member

snshn commented Nov 10, 2022

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

@JokerQyou
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants