pyre-check icon indicating copy to clipboard operation
pyre-check copied to clipboard

Can't use on Linux arm64 hosts

Open rossburton opened this issue 3 years ago • 3 comments

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"?

rossburton avatar Jun 23 '21 08:06 rossburton

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)

lukaspiatkowski avatar Dec 14 '21 09:12 lukaspiatkowski

I believe I'm hitting the same limitation on ARM.

hubyrod avatar Dec 05 '23 06:12 hubyrod

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 :/

arthaud avatar Dec 05 '23 10:12 arthaud