pyre-check
pyre-check copied to clipboard
Can't use on Linux arm64 hosts
After doing pip3 install --user pyre-check
on my Linux arm64 machine:
$ file $HOME/.local/bin/pyre.bin
/home/ross/.local/bin/pyre.bin: Mach-O 64-bit x86_64 executable, flags <NOUNDEFS|DYLDLINK|TWOLEVEL|WEAK_DEFINES|BINDS_TO_WEAK|PIE>
$ uname -a
Linux oss-tx204 5.4.0-65-generic #73-Ubuntu SMP Mon Jan 18 17:27:25 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
Why did pip install macOS x86 binaries on a Linux arm64 box? I'm guessing the binary is actually a macOS universal binary and the logic is "if arm64, then assume macOS"?
I see the exact same behaviour on an arm64 docker image. Just to add, when pyre is run directly it returns:
ERROR Exception occured during Pyre check: [Errno 8] Exec format error: '/usr/local/bin/pyre.bin'
And with pyre rage
:
Versions
========
Client version: 0.9.7
Could not determine binary version: [Errno 8] Exec format error: '/usr/local/bin/pyre.bin'
Configuration
===========
(can't share, sorry)
I believe I'm hitting the same limitation on ARM.
I think that's because we don't currently build Linux ARM binaries. For now you might have to build pyre from source until we fix this. And since we don't use Linux ARM internally this is unlikely to be prioritized :/