Skip to content

gcc 15.2.0 → 16.2.0, with gcc-runtime split out (pm#1182) - #1545

Open
bryan-minimal wants to merge 2 commits into
mainfrom
gcc-16
Open

bryan-minimal wants to merge 2 commits into
mainfrom
gcc-16

Conversation

@bryan-minimal

Copy link
Copy Markdown
Member

This rebuilds the world, so it should be queued alone.

Its tree is the tree of canary #1340 at 9800cb3c, which built and checked green on both arches (16/16 checks). The only difference is the wording of one comment in packages/gcc/build.ncl; gcc's evaluated spec is identical on both arches. So the builds should come from cache.

Commits

  1. gcc-runtime (134712d4): gcc's run-time libraries become their own package.
    • New packages. gcc-runtime holds libgcc_s, libstdc++, libgomp, libatomic and amd64 libquadmath. gcc-runtime-fortran holds libgfortran.

    • Consumers. 138+ runtime deps move from subsetOf gcc to subsetOf gcc-runtime. Whole-gcc runtime deps become library subsets.

    • Same bytes as gcc. gcc-runtime copies the published gcc's files byte for byte; every shared path was compared on both arches. For that, gcc's own build graph must not reach gcc-runtime, so:

      • ncurses is built --without-cxx-binding;
      • binutils is built --disable-gprofng;
      • gmp is built --disable-cxx, and the new gmpxx package serves maude, libpoly and cvc5;
      • seven packages that got libstdc++ only through gmp or ncurses now declare gcc-runtime.

      gcc_runtime_guard.py enforces this.

    • gcc outputs. gcc takes the registry spec's 27 outputs (gominimal/arch#183 example), with no file in two of them.

    • Breaker outputs (OQ-42). Each breaker's output globs now name every file of its prebuilt object, as D-24 requires. bash-bootstrap and bzip2 previously had outputs = {}. Also covered: binutils arm64's target tools, attr's etc/xattr.conf, and glibc's bedrock sysroot and arm64 usr/lib64.

    • Folded in: binutils, ghc-9.6.7: amd64 onto gen-16's plain-loader objects (world rebuild; needs gen-16 published) #1499 (amd64 binutils and ghc-9.6.7 move to gen-16 objects) and gcc: arm64 prebuilt onto gen-17's gcc-15.2.0-glibc-seed (arm64 world rebuild) #1535 (arm64 gcc and gcc-runtime breakers move to gen-17's glibc-seed object).

    • gcc-arm-none-eabi drops man7, which gcc also ships.

  2. gcc 16.2.0 (1ab009c3):
    • The glibc 2.43 libgomp workaround goes away.
    • Fixes from the canary's build failures: abseil-cpp builds as C++17; foundationdb includes <cstdint>; cbmc backports Fix GCC 16 warning-as-error build failures diffblue/cbmc#9024; gcc-arm-none-eabi moves to 16.2.0 with newlib 4.6.0.
    • Source: the upstream https URL (arch#183 model §6.1). Its sha256 matches ftp.gnu.org's copy, and its sha512 matches gcc.gnu.org's sha512.sum.

After merge: close #1340 (canary), #1499 and #1535.

🤖 Generated with Claude Code

bryan-minimal and others added 2 commits November 17, 2026 02:25
Consumers that need libgcc_s, libstdc++, libgomp, libatomic or
libquadmath at run time now take a subset of gcc-runtime instead of gcc,
so a box no longer pulls in the whole compiler. gcc-runtime-fortran
carries libgfortran, for openblas.

gcc-runtime copies the published gcc's files byte for byte (checked on
both arches). For that, gcc's own build graph must not reach
gcc-runtime: ncurses drops its C++ binding, binutils drops gprofng, and
gmp drops C++, with gmpxx a new package for maude, libpoly and cvc5.
gcc_runtime_guard.py enforces this.

Also folded in, to pay for one world rebuild instead of several:
- gcc's outputs follow the registry spec's example (gominimal/arch#183):
  27 outputs, with no file in two of them;
- breaker output globs name every file of their prebuilt objects
  (OQ-42);
- #1499: amd64 binutils and ghc-9.6.7 move to gen-16's plain-loader
  objects;
- #1535: arm64 gcc, and gcc-runtime's breaker with it, move to gen-17's
  glibc-seed object.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gcc 16 builds against glibc 2.43 unpatched, so the libgomp
-Wno-error=discarded-qualifiers workaround goes away.

Fixes for packages that failed to build with gcc 16, all found by the
world-build canary pkgs#1340:
- abseil-cpp: build as C++17, so the installed ABI does not need C++20;
- foundationdb: include <cstdint> in ClientWorkload.h;
- cbmc: backport diffblue/cbmc#9024 for gcc 16's -Werror;
- gcc-arm-none-eabi: 14.2.0 -> 16.2.0 and newlib 4.4.0 -> 4.6.0.

The source is the upstream https URL (gominimal/arch#183 model §6.1).
Its sha256 matches ftp.gnu.org's copy, and the sha512 matches
gcc.gnu.org's sha512.sum.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bryan-minimal
bryan-minimal requested a review from a team as a code owner November 17, 2026 18:10
@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

  • Run on-demand review

This review includes 183 billable files and costs up to $45.75.

View limit details

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between b891179 and 1ab009c.

Files selected for processing: 183

  • .github/scripts/gcc_runtime_guard.py
  • .github/scripts/test_gcc_runtime_guard.py
  • .github/workflows/gcc-runtime-guard.yml
  • AGENTS.md
  • packages/abseil-cpp/build.ncl
  • packages/abseil-cpp/build.sh
  • packages/ast-grep/build.ncl
  • packages/attr/build.ncl
  • packages/atuin/build.ncl
  • packages/bandwhich/build.ncl
  • packages/bash-bootstrap/build.ncl
  • packages/bat/build.ncl
  • packages/biff/build.ncl
  • packages/binaryen/build.ncl
  • packages/bindgen/build.ncl
  • packages/binutils-arm-none-eabi/build.ncl
  • packages/binutils/build.ncl
  • packages/binutils/build.sh
  • packages/biome/build.ncl
  • packages/boost/build.ncl
  • packages/bottom/build.ncl
  • packages/broot/build.ncl
  • packages/btop/build.ncl
  • packages/buddy/build.ncl
  • packages/bzip2/build.ncl
  • packages/cabal/build.ncl
  • packages/cadical/build.ncl
  • packages/cargo-nextest/build.ncl
  • packages/cbmc/build.ncl
  • packages/cbmc/build.sh
  • packages/cbmc/gcc16-warnings.patch
  • packages/charon/build.ncl
  • packages/chromedriver-bin/build.ncl
  • packages/chromium-headless-shell-bin/build.ncl
  • packages/clipper2/build.ncl
  • packages/cloud-hypervisor/build.ncl
  • packages/cmake/build.ncl
  • packages/codex/build.ncl
  • packages/cvc5-ff/build.ncl
  • packages/cvc5/build.ncl
  • packages/delta/build.ncl
  • packages/deno/build.ncl
  • packages/difftastic/build.ncl
  • packages/drift/build.ncl
  • packages/dua/build.ncl
  • packages/dust/build.ncl
  • packages/elfutils/build.ncl
  • packages/emacs/build.ncl
  • packages/eza/build.ncl
  • packages/fd/build.ncl
  • packages/fish/build.ncl
  • packages/foundationdb/build.ncl
  • packages/foundationdb/build.sh
  • packages/gcc-arm-none-eabi/build.ncl
  • packages/gcc-arm-none-eabi/build.sh
  • packages/gcc-runtime-fortran/build.ncl
  • packages/gcc-runtime-fortran/build.sh
  • packages/gcc-runtime-fortran/stage.sh
  • packages/gcc-runtime/build.ncl
  • packages/gcc-runtime/build.sh
  • packages/gcc-runtime/stage.sh
  • packages/gcc/build.ncl
  • packages/gcc/build.sh
  • packages/gcloud/build.ncl
  • packages/gdb/build.ncl
  • packages/gettext/build.ncl
  • packages/ghc-9.6.7/build.ncl
  • packages/ghidra/build.ncl
  • packages/ghostscript/build.ncl
  • packages/glibc/build.ncl
  • packages/gmp/build.ncl
  • packages/gmp/build.sh
  • packages/gmpxx/build.ncl
  • packages/gmpxx/build.sh
  • packages/gn/build.ncl
  • packages/gnutls/build.ncl
  • packages/gperf/build.ncl
  • packages/graphviz/build.ncl
  • packages/groff/build.ncl
  • packages/grpc/build.ncl
  • packages/gtest/build.ncl
  • packages/gurk/build.ncl
  • packages/gws/build.ncl
  • packages/helix-grammars/build.ncl
  • packages/helix/build.ncl
  • packages/hex-patch/build.ncl
  • packages/hexhog/build.ncl
  • packages/hexyl/build.ncl
  • packages/hyperfine/build.ncl
  • packages/icu/build.ncl
  • packages/imgcatr/build.ncl
  • packages/jaq/build.ncl
  • packages/jemalloc/build.ncl
  • packages/jnv/build.ncl
  • packages/jsoncpp/build.ncl
  • packages/jsongrep/build.ncl
  • packages/just/build.ncl
  • packages/kani/build.ncl
  • packages/kittyview/build.ncl
  • packages/lean/build.ncl
  • packages/leangz/build.ncl
  • packages/libgd/build.ncl
  • packages/libglvnd/build.ncl
  • packages/libkrun/build.ncl
  • packages/libpoly/build.ncl
  • packages/libvips/build.ncl
  • packages/libvmaf/build.ncl
  • packages/libvpx/build.ncl
  • packages/libx265/build.ncl
  • packages/lief/build.ncl
  • packages/llama.cpp/build.ncl
  • packages/llvm-bootstrap/build.ncl
  • packages/llvm/build.ncl
  • packages/llvm/versioned.ncl
  • packages/lsd/build.ncl
  • packages/luajit/build.ncl
  • packages/maki/build.ncl
  • packages/mariadb/build.ncl
  • packages/maude/build.ncl
  • packages/mesa/build.ncl
  • packages/mono/build.ncl
  • packages/ncurses/build.ncl
  • packages/ncurses/build.sh
  • packages/ngspice/build.ncl
  • packages/nickel-lsp/build.ncl
  • packages/nickel/build.ncl
  • packages/ninja/build.ncl
  • packages/node-24/build.ncl
  • packages/node-26.12.1/build.ncl
  • packages/node-lts/build.ncl
  • packages/node/build.ncl
  • packages/numpy/build.ncl
  • packages/nushell/build.ncl
  • packages/onetbb/build.ncl
  • packages/openblas/build.ncl
  • packages/opencv/build.ncl
  • packages/or-tools/build.ncl
  • packages/patchelf/build.ncl
  • packages/pnpm/build.ncl
  • packages/prek/build.ncl
  • packages/probe-rs/build.ncl
  • packages/procs/build.ncl
  • packages/protobuf/build.ncl
  • packages/python/build.ncl
  • packages/railway/build.ncl
  • packages/re2/build.ncl
  • packages/redis/build.ncl
  • packages/ripgrep/build.ncl
  • packages/ruby-3.3/build.ncl
  • packages/ruby-3.4/build.ncl
  • packages/ruby/build.ncl
  • packages/ruff/build.ncl
  • packages/rust-nightly-charon/build.ncl
  • packages/rust/build.ncl
  • packages/rustc-1.98.1/build.ncl
  • packages/sccache/build.ncl
  • packages/sd/build.ncl
  • packages/stack/build.ncl
  • packages/starship/build.ncl
  • packages/stlink/build.ncl
  • packages/stress-ng/build.ncl
  • packages/tealdeer/build.ncl
  • packages/teamtype/build.ncl
  • packages/tokei/build.ncl
  • packages/tree-sitter/build.ncl
  • packages/tuicr/build.ncl
  • packages/typst/build.ncl
  • packages/upx/build.ncl
  • packages/ut/build.ncl
  • packages/uv/build.ncl
  • packages/verus-latest/build.ncl
  • packages/wasm-bindgen-cli/build.ncl
  • packages/weathr/build.ncl
  • packages/xh/build.ncl
  • packages/yazi/build.ncl
  • packages/z3-4.16.0/build.ncl
  • packages/z3/build.ncl
  • packages/zellij/build.ncl
  • packages/zeromq/build.ncl
  • packages/zig/build.ncl
  • packages/zizmor/build.ncl
  • packages/zola/build.ncl
  • packages/zoxide/build.ncl
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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