hardhat icon indicating copy to clipboard operation
hardhat copied to clipboard

Failed to install solc 0.8.15: Checksum mismatch for version 0.8.15

Open kamescg opened this issue 2 years ago • 4 comments

The Situation

Just finished installing foundryup and adding the hardhat plugins to an existing project.

When running hadhat compile I have gotten 2 different CLI outputs; only run 3 times.

However, the main issue I am reporting is the checksum mismatch for v0.8.15

1st and 3rd time

[⠘] installing solc version "0.5.8"
[⠃] Successfully installed solc 0.5.8
[⠊] installing solc version "0.8.15"
[⠒] Failed to install solc 0.8.15: Checksum mismatch for version 0.8.15

Error: 
   0: Checksum mismatch for version 0.8.15

Location:
   cli/src/compile.rs:100

2nd time

[⠢] installing solc version "0.7.6"
[⠔] Successfully installed solc 0.7.6
[⠒] installing solc version "0.4.26"
[⠆] Successfully installed solc 0.4.26
[⠆] installing solc version "0.7.3"
[⠰] Successfully installed solc 0.7.3
[⠰] installing solc version "0.5.17"
[⠆] Successfully installed solc 0.5.17
[⠢] installing solc version "0.6.12"
[⠢] Successfully installed solc 0.6.12
[⠆] installing solc version "0.8.15"
[⠔] Failed to install solc 0.8.15: Checksum mismatch for version 0.8.15

kamescg avatar Jun 19 '22 09:06 kamescg

what OS are you on and what build?

mattsse avatar Jun 19 '22 11:06 mattsse

OS: macOS Monterey v12.0.1 using M1 chip Build: forge 0.2.0 (e4a2915 2022-06-19T00:05:22.438573Z)

kamescg avatar Jun 19 '22 11:06 kamescg

@roynalnaruto 0.8.15 should be supported natively by svm already on M1 right?

mattsse avatar Jun 19 '22 14:06 mattsse

Thanks @mattsse for the relevant fixes in svm-rs and solc-builds. Once https://github.com/roynalnaruto/svm-rs/pull/46 is merged this should be resolved upon publishing a new version of svm-rs @kamescg

roynalnaruto avatar Jun 20 '22 16:06 roynalnaruto