lix-pm / lix.client

A dependable package manager for your Haxe projects
The Unlicense
119 stars 24 forks source link

Warn when downloading x86_64 build on arm64 machine #176

Open pzmarzly opened 2 years ago

pzmarzly commented 2 years ago

lix supports arm64 machines (e.g. Raspberry Pi, M1 Macs running VMs or Asahi Linux) since https://github.com/lix-pm/lix.client/commit/5ba8ac554cf8e2008856102faddf0f199335db77, but you need to run lix install haxe nightly first. Without it you get very confusing errors. It would be nice if lix refused to download non-compatible releases or at least complained very loudly about it.

pzmarzly@lima-default:~/tink_web$ uname -a
Linux lima-default 5.15.0-43-generic #46-Ubuntu SMP Wed Jul 13 06:42:04 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

pzmarzly@lima-default:~/tink_web$ file /home/pzmarzly.linux/haxe/versions/4.2.0/haxelib
/home/pzmarzly.linux/haxe/versions/4.2.0/haxelib: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=dfe0110198f11b56ddff62d8224e54c2024aa4e6, with debug_info, not stripped

pzmarzly@lima-default:~/tink_web$ /home/pzmarzly.linux/haxe/versions/4.2.0/haxelib
bash: /home/pzmarzly.linux/haxe/versions/4.2.0/haxelib: cannot execute binary file: Exec format error

Though the nicest solution would be to get stable arm64 releases :smile: