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
aarch64 / arm64 support #212
Comments
Hi @myhro , It looks like you haven't added "execute" permission to |
Hi @jihchi, Thank you for the suggestion. Unfortunately that's not the case. As you can see in the output copied above, the |
I think the problem is that the executable is dynamically linked: $ file xh
xh: ELF 32-bit LSB pie executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, stripped I don't have a system to test, but these commands might fix it:
It would be nice to not have to do that. We may be able to manage that by building with musl ( Starting from 2023 ARM processors apparently won't have 32-bit support at all, so by that point we will need a separate 64-bit build. But for now I think we can still get by with just the one ARM build. |
Sounds good. A Binary built with this target also seems to run fine on
|
Indeed. Just tried in a container on the same machine and the problem was fixed:
Definitely. This reminds me having to add
I don't have that much experience building Rust projects, but I'll play around with different targets to see if I can find a suitable option.
Is there a reason to avoid an additional ARM build for now other than aiming to maintain less build targets? My suggestion is based on what I've seen other big Rust projects doing, like bat and bottom, where |
I've used
So both options work, although I'm inclined towards Do we need to test something else? Otherwise I can send a PR adding adding the architecture and its build options to |
Sadly, How about replacing |
Sorry, but I may be misunderstanding the effects on Termux. By the "A Binary built with this target also seems to run fine on termux, except that it fails to establish any connection" reply, I understood that it also doesn't play along with Or are we considering "being a valid executable binary" and "connects to the target and works as expected" to be separate problems? Not sure if the name resolution problem was caused by musl or not.
This looks reasonable to me. The only downside I see from replacing |
Yes, I think this happens because Edit: I got it to work on termux by running
Ah, I haven't considered that. In that case, let's just add |
Once reqwest adds support passing custom config to trust-dns-resolver, I think we will be able to modify the path to system DNS configuration from |
The latest release (v0.15.0) now includes builds for aarch64. |
Hi,
I was using
xh
on a Raspberry Pi 4 which was recently switched to the Raspberry Pi OS arm64 release. After that, thearm-unknown-linux-gnueabihf
release doesn't work anymore:Would it be possible to also release
aarch64
/arm64
binaries?Regards,
Tiago.
The text was updated successfully, but these errors were encountered: