Skip to content

Conversation

@samoht9277
Copy link
Collaborator

Motivation

This PR changes the ARM build environment from Ubuntu 24.04 to Ubuntu 22.04.
The goal is to compile Ethrex with an older glibc, increasing compatibility with systems running older Linux versions.

It also updates how Solidity is handled. Since solc doesn’t publish ARM binaries, we previously used a third-party ARM build that required a newer glibc, breaking builds on Ubuntu 22.04.
Now, solc is compiled from source and cached. This ensures it links against the same glibc version as the 22.04 system, allowing Ethrex to build and run on environments with lower glibc versions.

Description

  • ARM build now targets Ubuntu 22.04.
  • solc is built from source and cached to match system glibc.
  • Improves binary portability across older Linux distributions.

@samoht9277 samoht9277 requested a review from a team as a code owner October 23, 2025 16:13
@github-actions github-actions bot added the L2 Rollup client label Oct 23, 2025
@samoht9277 samoht9277 changed the title fix(ci,l2): Adds step in release workflow to compile and cache solc with lower GLIBC version. ci(l1,l2): Adds step in release workflow to compile and cache solc with lower GLIBC version. Oct 23, 2025
@github-actions github-actions bot added the L1 Ethereum client label Oct 23, 2025
@samoht9277 samoht9277 changed the title ci(l1,l2): Adds step in release workflow to compile and cache solc with lower GLIBC version. ci(l2): Adds step in release workflow to compile and cache solc with lower GLIBC version. Oct 23, 2025
@github-actions github-actions bot removed the L1 Ethereum client label Oct 23, 2025
@samoht9277 samoht9277 changed the title ci(l2): Adds step in release workflow to compile and cache solc with lower GLIBC version. ci(l2): adds step in release workflow to compile and cache solc with lower GLIBC version. Oct 23, 2025
@github-project-automation github-project-automation bot moved this to In Review in ethrex_l1 Oct 23, 2025
linux uses amd64 always, since arm64 build uses qemu for sp1, we can run the amd64 version without issue.
sudo curl -L -o /usr/local/bin/solc https://github.com/argotorg/solidity/releases/download/v0.8.29/solc-macos
sudo chmod +x /usr/local/bin/solc
fi
solc --version
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested here: https://github.com/samoht9277/ethrex/actions/runs/18925460915

This works because ARM builds depend on docker/setup-qemu-action for the SP1 dependency to work.

We can take advantage of this by using the amd64 version of the binary on Linux (which is also compiled statically) for the ARM version as well.

@ManuelBilbao ManuelBilbao added this pull request to the merge queue Oct 30, 2025
Merged via the queue into main with commit bf88894 Oct 30, 2025
29 checks passed
@ManuelBilbao ManuelBilbao deleted the compile-solc-for-release branch October 30, 2025 23:04
@github-project-automation github-project-automation bot moved this from In Review to Done in ethrex_l1 Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L2 Rollup client

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants