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

  1. foundryup-zksync on 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

Most upvoted comments

@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 Image it works πŸ₯³οΈ version --0.3.0– I’ll still try seeing if i can get the binary for the latest release

anvil-zksync --version anvil-zksync 0.3.1 anvil-zksync

Listening on 0.0.0.0:8011

real condition with framework Moccasin

mox compile --network eravm

======================================== Listening on 0.0.0.0:38321

Compiling 3 contracts to out/… INFO:titanoboa:Compiling 3 contracts to out/… Done compiling project! INFO:titanoboa:Done compiling project! Works like a charm @antonbaliasnikov ! πŸ₯³

Good, thank you!

We will release dynamically linked binaries as part of 0.3.2 that 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:

  • Docker ubuntu:24.04
  • GitHub Actions runner VM ubuntu-24.04
  • Windows Linux subsystem ubuntu-24.04

On all of them, I can successfully run the anvil-zksync v0.3.1 binary without any issues.

All my systems have the following glibc:

# ldd --version
ldd (Ubuntu GLIBC 2.39-0ubuntu8.3) 2.39

can you, please, also share yours?