Skip to content
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

feat: cross compile amd64 Linux binaries with Musl #1757

Merged
merged 26 commits into from
Nov 14, 2024

Conversation

leruaa
Copy link
Contributor

@leruaa leruaa commented Nov 5, 2024

The seg fault in the related issue seems to be caused by a bug in glibc. The solution would be to use musl instead, since anyways static linking with glibc is discouraged.

In this PR, I modified the release CI to use a docker image called muslrust to cross compile the SP1 CLI amd64 Linux binaries with musl instead of glibc.

Closes #1355

Copy link

github-actions bot commented Nov 5, 2024

SP1 Performance Test Results

Branch: gro-9-cross-build-with-musl
Commit: eef6a1e
Author: leruaa

program cycles execute (mHz) core (kHZ) compress (KHz) time success
fibonacci 11291 0.17 2.85 0.46 25s
ssz-withdrawals 2757356 16.82 127.32 35.35 1m18s
tendermint 12593597 6.76 265.23 99.17 2m9s

@yuwen01
Copy link
Contributor

yuwen01 commented Nov 6, 2024

are we going to have to wait till the next release to ship new binaries, or can we just change some files now?

@leruaa
Copy link
Contributor Author

leruaa commented Nov 6, 2024

@yuwen01 same as before, I haven't changed the events when the workflow is ran:

on:
push:
branches:
- main
tags:
- "v*.*.*"

Is it needed?

crates/cli/src/lib.rs Outdated Show resolved Hide resolved
@leruaa leruaa merged commit 12f212e into dev Nov 14, 2024
13 checks passed
@leruaa leruaa deleted the gro-9-cross-build-with-musl branch November 14, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segmentation Fault in sp1up, while attempting install.
4 participants