From b29fa3711f2c5912f8d89ddd4a43e1fe53a77267 Mon Sep 17 00:00:00 2001 From: emmanuelm41 Date: Wed, 10 Jun 2026 18:59:50 -0300 Subject: [PATCH] ci(release-rust): install build-essential for the xwin host toolchain 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. --- .github/workflows/_release-rust.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_release-rust.yml b/.github/workflows/_release-rust.yml index 1dd6e61..0211677 100644 --- a/.github/workflows/_release-rust.yml +++ b/.github/workflows/_release-rust.yml @@ -212,7 +212,13 @@ jobs: LLVM_VERSION: "21" run: | sudo apt-get update - sudo apt-get install -y --no-install-recommends curl nasm cmake zip + # build-essential = the HOST toolchain: build scripts and proc-macros + # link with `cc` (gcc) on the Linux runner, independently of the Windows + # cross compiler. The distro `clang` install used to drag gcc in + # transitively; pulling clang from apt.llvm.org no longer does, and the + # self-hosted runner has no gcc preinstalled — so install it explicitly + # or host build scripts fail with `linker 'cc' not found`. + sudo apt-get install -y --no-install-recommends build-essential curl nasm cmake zip # Modern clang/lld from apt.llvm.org (distro clang-18 is too old — see above). curl -fsSL https://apt.llvm.org/llvm.sh | sudo bash -s -- "$LLVM_VERSION" sudo apt-get install -y --no-install-recommends \