[RFC] Add GCC 10 and Clang 14 toolchain support (parallel branch) - #201
Open
zarinn3pal wants to merge 2 commits into
Open
[RFC] Add GCC 10 and Clang 14 toolchain support (parallel branch)#201zarinn3pal wants to merge 2 commits into
zarinn3pal wants to merge 2 commits into
Conversation
yuanweiz
reviewed
Jul 29, 2026
| set -x | ||
| UNATTENDED=1 SDK_VERSION=11.1 OSX_VERSION_MIN=10.13 USE_CLANG_AS=1 ./build.sh | ||
| ln -s /usr/bin/llvm-config-10 /usr/bin/llvm-config | ||
| ln -s /usr/bin/llvm-config-14 /usr/bin/llvm-config |
There was a problem hiding this comment.
I wonder if this can be a part of update-alternatives, but it might be out of scope of this PR. feel free to leave it as is.
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.
Add GCC 10 and Clang 14 Toolchain Support
Fixes #200
Summary
This PR upgrades the cross-compilation toolchains across all supported MRI platforms to meet modern C++ standard requirements and resolve compatibility issues with contemporary libraries like Abseil.
Toolchain Upgrades:
x86_64,aarch64,arm,x86): GCC 9.x → GCC 10.5.0x86_64-darwin,arm64-darwin): Clang 10 → Clang 14.0.6Problem Statement
Issue #200 identified that Abseil 20260526.0 requires GCC 10 or higher per Google's Foundational C++ Support Policy. Current rake-compiler-dock images are based on Ubuntu 20.04 with GCC 9.x toolchains, causing cross-compilation failures.
Changes
1. GNU Linux Targets (
Dockerfile.mri.erb)gcc-10-*,g++-10-*.update-alternativesto set GCC 10 as system default.2. Musl Linux Targets (
build/mk_musl_cross.sh)GCC_VER = 10.3.0inconfig.mak.BINUTILS_VER = 2.33.1(newest version compatible with GCC 10).3. Darwin/macOS Targets (
Dockerfile.mri.erb+build/mk_osxcross.sh)llvm-10references tollvm-14.update-alternativesfor clang/clang++ commands.4. Cross-Architecture Build Support (Dockerfile.mri.erb)
TARGETPLATFORMto detect buildx host architecture.aarch64-linux-gnuandx86_64-linux-gnutargets(Also fixes ci failures).Given the significant toolchain changes, I recommend treating this as a parallel branch rather than merging directly to
main. To resolve the issue at its core, the base ubuntu version upgrade will be a better solution.