ci(release-rust): install build-essential for the xwin host toolchain - #100
Merged
Conversation
The xwin cross job's build scripts and proc-macros link with `cc` (gcc) on the Linux runner, separate from the Windows cross compiler. The distro `clang` install previously pulled gcc in transitively; sourcing clang from apt.llvm.org (#99) no longer does, and the self-hosted runner ships no gcc, so host build scripts failed with `linker 'cc' not found` (proc-macro2, quote). Install build-essential explicitly alongside the cross toolchain.
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.
Follow-up to #99. The xwin cross job builds host crates (build scripts, proc-macros) that link with
cc(gcc) on the Linux runner — separate from the Windows cross compiler.Before #99, installing the distro
clangpulledgcc/makein transitively. Sourcing clang from apt.llvm.org with--no-install-recommendsno longer does, and the self-hosted runner has no gcc preinstalled — so host build scripts now fail withlinker 'cc' not found(proc-macro2, quote) before the cross compile even starts.Fix: install
build-essentialexplicitly alongside the cross toolchain. Confirmed root cause in the v0.5.1-rc.3 run: rc.2's log showsgcc makepulled in transitively by the old distro clang install; rc.3 (apt.llvm.org clang) has no gcc →ccnot found.