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

silkworm: disable on incompatible Linux versions #8893

Merged
merged 1 commit into from
Dec 6, 2023
Merged

Conversation

battlmonstr
Copy link
Contributor

@battlmonstr battlmonstr commented Dec 4, 2023

Silkworm built on Ubuntu 22 depends on glibc 2.34. In order to run on an older OS, Silkworm needs to be built and linked with an older glibc, but to build on an older OS we need a compatible compiler. Silkworm requires gcc 11+ that is not available on Ubuntu 20 or Debian 11.

To simplify the deployment disable Silkworm support on versions before Ubuntu 22, Debian 12, and glibc prior to 2.34. The check for Ubuntu and Debian is explicit, because some Ubuntu 16 installations report glibc 2.35 with ldd, but go build still uses an older system one and fails.

@battlmonstr battlmonstr marked this pull request as ready for review December 5, 2023 15:16
@battlmonstr
Copy link
Contributor Author

battlmonstr commented Dec 6, 2023

This fixes build failures on old OS'es such as Ubuntu 16 (used by ankr) and Debian 11 (our snapshot uploader VM).

@battlmonstr battlmonstr merged commit d78cbfe into devel Dec 6, 2023
10 of 11 checks passed
@battlmonstr battlmonstr deleted the pr/sw_bad_linux branch December 6, 2023 15:01
awskii pushed a commit that referenced this pull request Dec 6, 2023
Silkworm built on Ubuntu 22 depends on glibc 2.34. In order to run on an
older OS, Silkworm needs to be built and linked with an older glibc, but
to build on an older OS we need a compatible compiler. Silkworm requires
gcc 11+ that is not available on Ubuntu 20 or Debian 11.

To simplify the deployment disable Silkworm support on versions before
Ubuntu 22, Debian 12, and glibc prior to 2.34. The check for Ubuntu and
Debian is explicit, because some Ubuntu 16 installations report glibc
2.35 with ldd, but `go build` still uses an older system one and fails.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants