Use cross for Linux builds to ensure glibc 2.31 compatibility#67
Merged
Use cross for Linux builds to ensure glibc 2.31 compatibility#67
Conversation
…ibility The release workflow was building on ubuntu-latest (Ubuntu 24.04), which produced binaries requiring glibc 2.39+. This made the binaries incompatible with most Linux distributions (only Ubuntu 24.04+ and Fedora 40+ worked). Switch Linux builds to use the `cross` tool, which compiles inside Docker containers with an older glibc (2.31). This makes the binaries compatible with Ubuntu 20.04+, Debian 11+, RHEL 9+, Fedora 33+, and most other modern Linux distributions. https://claude.ai/code/session_01PgK6kkizuvPvv6oq1Ku2QW
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updated the release build workflow to use the
crosstool for Linux targets, ensuring binaries are compatible with glibc 2.31 and older systems. This prevents the ubuntu-latest (24.04) environment from producing binaries that require glibc 2.39+.Changes
crosstool for Linux buildscross buildinstead ofcargo buildcrossImplementation Details
The workflow now conditionally uses
crossfor any target containing "linux" in its name, while maintaining the existingcargo buildapproach for other platforms (macOS, Windows, etc.). This ensures broad compatibility across different glibc versions without affecting the build process for non-Linux targets.https://claude.ai/code/session_01PgK6kkizuvPvv6oq1Ku2QW