ferium icon indicating copy to clipboard operation
ferium copied to clipboard

Support for ARM Linux

Open A-noximous opened this issue 3 years ago • 9 comments

Description

None of the 3 Linux builds for Ferium run on Ubuntu 20.04 and fail with Exec format error

To Reproduce

  1. Use wget to download the zip file from the latest release page
  2. Extract the executable using unzip
  3. Move the file to /bin/ferium
  4. Run ferium -V

Results in -bash: /usr/bin/ferium: cannot execute binary file: Exec format error for all 3 executables(gnu-gtk, gnu-nogui, and gnu-xdg)

Software versions

  • OS: Linux Ubuntu 20.04.3 LTS AArch64
  • Ferium does not run, but the release downloaded was v4.1.3.

Additional Info

System neofetch: image

The nogui build works on my local WSL system(Ubuntu 20.04.4 LTS): image

A-noximous avatar Jun 11 '22 07:06 A-noximous

Ferium does not have support for arm linux yet

theRookieCoder avatar Jun 11 '22 07:06 theRookieCoder

Ferium does not have support for arm linux yet

Any alternatives?

A-noximous avatar Jun 11 '22 07:06 A-noximous

For now, you can try compiling from source by installing Rust, cloning the repo, and running just install

theRookieCoder avatar Jun 11 '22 07:06 theRookieCoder

Will try and update.

PS: "Enhancement" label

A-noximous avatar Jun 11 '22 07:06 A-noximous

I think it's fine to consider it a bug

theRookieCoder avatar Jun 11 '22 07:06 theRookieCoder

I managed to compile nogui from scratch on Android, it seems to work fine. We'll have to see if cross compilation has any problems

theRookieCoder avatar Jun 13 '22 06:06 theRookieCoder

Also, which arm are we talking about? arm (armv5), armv6h (armv6 hardfloat), armv7h (armv7 hardfloat), and aarch64 (armv8 64-bit). For source packages, I could just set tne architecture to any and call it a day, but for binary packages, it's pretty much a necessity to know which "arm" does it support.(I think the Arm we're talking about here is aarch64

JustSimplyKyle avatar Jun 13 '22 14:06 JustSimplyKyle

aarch64 is what Rust offers

theRookieCoder avatar Jun 13 '22 14:06 theRookieCoder

In Nixpkgs, both ferium aarch64-linux and ferium aarch64-darwin build correctly. So ARM is properly supported by ferium, but the releases page does not currently ship with an arm64 linux package.

So currently you would need to use something like cargo install ferium to install on arm. Alternatively, there is also the nix packages that are maintained outside this repo, which requires nix to be installed, but runs with nix run nixpkgs#ferium.

soupglasses avatar Aug 18 '22 08:08 soupglasses