-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
forge build result in generic "Solc Error:" #2712
Comments
Experiencing the same issue, confirming everything works fine if I downgrade to |
Fixed by installing |
this could be related to the recent 0.8.16 we added. could you please nuke the |
Nuking the folder did not solve the issue. I found a more explicit error message
After installing |
right, we now ship with z3 solver. closing this here |
@mattsse just to understand the solution if you are on apple silicon
? |
first two points nuke the ~/.svm/* folder should be sufficient, since we handle installs directly via forge, I think what probably happened here is that we recently added z3 to the apple silicon builds so checksums differ now |
ok, everything works like a charm! |
awesome, thanks for flagging, will add some troubleshooting docs for M1 |
I was on an M1 Pro with OS But, what finally worked was updating the OS entirely to Leaving this note here in case this helps anyone else who comes here searching for a solution to the similar problem I had. |
I tried the steps (deleting the SVM, installing z3) and it does not work on my M1 Mac on Big Sur 11.6.2. Might have to try updating to 12+, unless there's another option.. |
I have also encountered the same problem on my M1 Big Sur 11.6, and I have already tried the same steps. The error: |
You need to follow the next steps:
|
@achiko Im getting same error as you. deleting .svm, installing z3 and |
Folks. Could you please tell me how to downgrade foundry? I got macos |
|
I met this error because I used an 4G memory server, the memory is not enough to compile my all contracts, so, when I update a new 8G memory server, the problem is sloved ... |
@ljrahn I'm getting the same error as you and @achiko -- |
hello guys, I have the same problem, but I have a macbook with an Intel chip, so the solutions above don't work for me. And updates to newer versions of the mac OS are not available to me |
My problem is like
I'm new to here, how to deal with it |
It does work for 0.8.25 only with mac intel chip |
Did you get it fixed? I get the same exact error. It only works when I use forge xyz --use 0.8.25 I've tried changing the remote compiler to "v0.8.25+commit.b61c2a91", but still nothing is working. Also tried putting in specific version in foundry.toml - not working either. |
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (6cd6618 2022-08-11T00:05:44.416299Z)
What command(s) is the bug in?
forge build
Operating System
macOS (Apple Silicon M1)
Describe the bug
When I try to build and test the project, I get the following error
[⠊] Compiling... [⠰] installing solc version "0.8.15" [⠒] Successfully installed solc 0.8.15 Error: Solc Error:
I'm pretty sure it was working correctly yesterday
Update 1: something to note is that
solc 0.8.15
as far as I know is already installed, so it should just directly compile without downloading and installingUpdate 2: if I switch all the contracts to
pragma solidity 0.8.13;
it does compile. And it does not try to download+install solc 0.8.13. Withpragma solidity 0.8.15;
it tries to do so even if I should have already installed.The text was updated successfully, but these errors were encountered: