ApeWorX / py-solc-x

Python wrapper and version management tool for the solc Solidity compiler.
https://solcx.readthedocs.io/
MIT License
141 stars 49 forks source link

Binaries for amd64 downloaded on armv7 #125

Closed BlinkyStitt closed 3 years ago

BlinkyStitt commented 3 years ago

Environment information

What was wrong?

When trying to compile my contracts, I get "Downloaded binary would not execute..."

https://github.com/iamdefinitelyahuman/py-solc-x/blob/7bed05bad9811d8ee36177b200c6cdce91e5ff70/solcx/install.py#L636

How can it be fixed?

Check the system architecture instead of assuming amd64.

https://github.com/iamdefinitelyahuman/py-solc-x/blob/7bed05bad9811d8ee36177b200c6cdce91e5ff70/solcx/install.py#L41

BlinkyStitt commented 3 years ago

armv7 isn't compatible because it is little endian and solc compiler wants big endian.