-
Notifications
You must be signed in to change notification settings - Fork 144
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
floating point exception (core dumped) error when runing build --zksync #881
Comments
Hey @sg-milad thanks for raising the issue to us. I tried reproducing your example but I compiled successfully your repository with this version of forge (ae913af) in both mac and linux. Could you check if this is the same version you are running? Also were you able to compile any other project using foundry-zksync?
|
You can use the foundryup script to update it or download one of the releases from the github page https://github.com/matter-labs/foundry-zksync/releases (latest stable is v0.0.7) |
Another thing to consider could be the solc or zksolc version. Had you previously installed them? If so, try removing them—Foundry should automatically download the correct versions for you. |
Hey! Did you manage to solve the issue or have a little bit more insight about it? |
Hey! Do you have a version of solc and zksolc installed? Also I don't have access to the repository anymore. I don't remember what you had in the foundry.toml |
I figured out I don't have zksolc installed. i was installing it but I got an error:
I deleted my repo but it was the default setup when you run forge init |
You could try downloading directly from the zksolc releases here |
I couldn't help but notice your Do you get the same error without
There's a similar mechanism for |
Hi, I am getting the same error. So I used gdb for debug,
I see the error is come from |
I am getting the same error on anvil-zksync as well. |
I don't remember exactly but throw running foundryup-zksync
no I don't get any error |
@sg-milad does that apply to you as well? I'm thinking perhaps it's related to the fact that our releases are made with Ubuntu 24.04 and not 22.04 anymore, weird to see that error only for |
yes |
@Karrq we may want to consider removing cross and openssl in release workflow. Similar to: matter-labs/anvil-zksync#581 |
Component
Foundryup, Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.0.4 (VERGEN_IDEMPOTENT_OUTPUT 2025-01-23T19:54:33.239256966Z)
What command(s) is the bug in?
forge build --zksync
Operating System
Linux
Describe the bug
when I run this command i get this error:
I tried to run foundryup and after that foundryup-zksync again but I still get the same error

this is my repo: https://github.com/sg-milad/Todo-smart-contract-foundry/pull/1
The text was updated successfully, but these errors were encountered: