anvil-zksync: ERROR: foundryup-zksync: Unsupported architecture '' detected! on ubuntu 24.04.1
π Bug Report for anvil-zksync
π Description
Running foundryup-zksync on my machine (Ubuntu 24.04.1) gives the error foundryup-zksync: Unsupported architecture '' detected!
Building from source works, but then it gives a segmentation fault error
[1] 445139 segmentation fault (core dumped) ./anvil-zksync
π Reproduction Steps
foundryup-zksyncon ubuntu 24.04.1
π€ Expected Behavior
Expecting a succesful install
π― Current Behavior
Failed install
π₯οΈ Environment
- Rust version: rustc 1.84.1 (e71f9a9a9 2025-01-27)
- Operating System & Version: Ubuntu 20.04.1
- Other relevant environment details:
π Additional Context
Add any other context about the problem here. If applicable, add screenshots to help explain.
π Log Output
When running foundryup-zksync
.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx
βββ βββ β¦ β¦ βββ ββ¦β β¦ββ β¦ β¦ Portable and modular toolkit
β β£ β β β β βββ ββ β β¦β ββ¦β for ZKsync Application Development
β βββ βββ βββ ββ©β β©ββ β© written in Rust.
.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx
Fork of : https://github.com/foundry-rs/
Repo : https://github.com/matter-labs/foundry-zksync/
Book : https://foundry-book.zksync.io/
.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx.xOx
foundryup-zksync: downloading latest forge, and cast
########################################################################################################################################### 100.0%
foundryup-zksync: downloading manpages
########################################################################################################################################### 100.0%
foundryup-zksync: installed - forge Version: 0.0.9-dev
Commit SHA: VERGEN_IDEMPOTENT_OUTPUT
Build Timestamp: 2025-02-20T21:07:56.344312967Z (1740085676)
Build Profile: release
foundryup-zksync: warning:
There are multiple binaries with the name 'forge' present in your 'PATH'.
This may be the result of installing 'forge' using another method,
like Cargo or other package managers.
You may need to run 'rm /home/david/.cargo/bin/forge' or move '/home/david/.foundry/bin'
in your 'PATH' to allow the newly installed version to take precedence!
foundryup-zksync: installed - cast Version: 0.0.9-dev
Commit SHA: VERGEN_IDEMPOTENT_OUTPUT
Build Timestamp: 2025-02-20T21:07:56.344312967Z (1740085676)
Build Profile: release
foundryup-zksync: warning:
There are multiple binaries with the name 'cast' present in your 'PATH'.
This may be the result of installing 'cast' using another method,
like Cargo or other package managers.
You may need to run 'rm /home/david/.cargo/bin/cast' or move '/home/david/.foundry/bin'
in your 'PATH' to allow the newly installed version to take precedence!
foundryup-zksync: downloading latest anvil-zksync
foundryup-zksync: Unsupported architecture '' detected!
When running ./anvil-zksync after local build
[1] 445139 segmentation fault (core dumped) ./anvil-zksync
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (5 by maintainers)
Commits related to this issue
- feat: add zkvyper and anvil-zksync to devcontainer `just test-z` running successfully in the devcontainer. Stable versions: - `zkvyper` 1.5.7 -> https://github.com/vyperlang/titanoboa-zksync/issues/... — committed to s3bc40/moccasin by s3bc40 2 years ago
- feat: add zkvyper and anvil-zksync to devcontainer for #216 (#220) * feat: add zkvyper and anvil-zksync to devcontainer `just test-z` running successfully in the devcontainer. Stable versions: - `z... — committed to Cyfrin/moccasin by s3bc40 2 years ago
@s3bc40 @Tarreef @david-az @AlbertouSS I have just released https://github.com/matter-labs/anvil-zksync/releases/tag/v0.3.2 which should resolve the issue. Please try it out!
Thanks for the report, we are looking into this. Likely has to do with how we statically link glibc but Iβll post an update once we have more details
All good for me too! @itegulov thanks for your work w/ @antonbaliasnikov !
Works for me as well, thanks a lot !
following instructions @s3bc40
it works π₯³οΈ
version --0.3.0β
Iβll still try seeing if i can get the binary for the latest release
Good, thank you!
We will release dynamically linked binaries as part of
0.3.2that would be compatible with Ubuntu>=22.04, deprecating 20.04 as it comes to its end of life. For now, please, use this temporary release: https://github.com/matter-labs/anvil-zksync/releases/tag/f971049@s3bc40 ,
thanks for sharing. It looks like itβs reproducible on bare-metal only. We also confirmed it on the Arch linux.
Can you, please, try this dynamically-linked binary if it works on your side and let me know: https://github.com/matter-labs/anvil-zksync/releases/download/f971049/anvil-zksync-dynamic-test-x86_64-unknown-linux-gnu.tar.gz
Hey @s3bc40 , @david-az
Can you please share with me the Ubuntu 24.04 environment you are using to test
anvil-zksync v0.3.1? Is it bare-metal Ubuntu or any kind of VM?Iβve tested the following environments on my side:
On all of them, I can successfully run the
anvil-zksyncv0.3.1 binary without any issues.All my systems have the following glibc:
can you, please, also share yours?