Skip to content

ci(release-rust): install build-essential for the xwin host toolchain - #100

Merged
emmanuelm41 merged 1 commit into
mainfrom
fix/xwin-host-cc
Jun 10, 2026
Merged

ci(release-rust): install build-essential for the xwin host toolchain#100
emmanuelm41 merged 1 commit into
mainfrom
fix/xwin-host-cc

Conversation

@emmanuelm41

Copy link
Copy Markdown
Member

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 clang pulled gcc/make in transitively. Sourcing clang from apt.llvm.org with --no-install-recommends no longer does, and the self-hosted runner has no gcc preinstalled — so host build scripts now fail with linker 'cc' not found (proc-macro2, quote) before the cross compile even starts.

Fix: install build-essential explicitly alongside the cross toolchain. Confirmed root cause in the v0.5.1-rc.3 run: rc.2's log shows gcc make pulled in transitively by the old distro clang install; rc.3 (apt.llvm.org clang) has no gcc → cc not found.

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.
@emmanuelm41
emmanuelm41 merged commit 227e555 into main Jun 10, 2026
1 check passed
@emmanuelm41
emmanuelm41 deleted the fix/xwin-host-cc branch June 10, 2026 22:00
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.

1 participant