Build bundled DFHack with GCC 15 #263

Merged
nimmo merged 2 commits from fix/262-dfhack-gcc15 into main 2026-10-02 19:07:46 +01:00
Owner

The rejected nixpkgs update supplies GCC 16.2.0, but DFHack 53.16-r1.1 explicitly rejects compilers newer than GCC 15 during CMake configuration. Select gcc15Stdenv only within the Dwarf Fortress package set, where the upstream gccStdenv argument is used solely for DFHack. The fleet compiler and the underlying game/core Therapist derivations remain unchanged.

Document the temporary override and track it through the manual-pin lifecycle contract: an owner, review date, incident/source identities, retained-evidence checksum, and an exact forward patch bound for reverse application. The scheduled lifecycle job can retest an unpinned candidate and propose removal for review.

Refs #262. Apply this fix before retrying the input update; this MR preserves the current lockfile.

Validation:

  • nix flake check passed with the lifecycle record included; existing platform-deprecation warnings remain.
  • Electra and Lena evaluate the proposed host package selection.
  • On Nova at the exact rejected nixpkgs revision b6c8664de9b6cc07fe5666a29f91884ba81197c4, GCC 15.3.0 successfully built standalone DFHack and the complete Dwarf Fortress bundle, including upstream wrapper and Therapist install checks.
  • Candidate evaluation confirmed that the fleet compiler stays at GCC 16.2.0 and the game/core Therapist derivations are identical.
  • Production pin metadata validation, checksum bindings and reverse-application checks passed.
  • python3 tests/nixos-pin-lifecycle-integration.py and bash tests/nixos-pin-lifecycle-regressions.sh passed.
  • Rebased against current main before both commits; main remained at 2439ec3.

Remaining acceptance: required MR checks, a full fleet build with the retried input update, deployment and a no-op follow-up. No activation was performed. Keep #262 open until that evidence is available. The malformed advisory JSON result and incomplete incident diagnostic excerpt are separate follow-ups.

The rejected nixpkgs update supplies GCC 16.2.0, but DFHack 53.16-r1.1 explicitly rejects compilers newer than GCC 15 during CMake configuration. Select gcc15Stdenv only within the Dwarf Fortress package set, where the upstream gccStdenv argument is used solely for DFHack. The fleet compiler and the underlying game/core Therapist derivations remain unchanged. Document the temporary override and track it through the manual-pin lifecycle contract: an owner, review date, incident/source identities, retained-evidence checksum, and an exact forward patch bound for reverse application. The scheduled lifecycle job can retest an unpinned candidate and propose removal for review. Refs #262. Apply this fix before retrying the input update; this MR preserves the current lockfile. Validation: - `nix flake check` passed with the lifecycle record included; existing platform-deprecation warnings remain. - Electra and Lena evaluate the proposed host package selection. - On Nova at the exact rejected nixpkgs revision `b6c8664de9b6cc07fe5666a29f91884ba81197c4`, GCC 15.3.0 successfully built standalone DFHack and the complete Dwarf Fortress bundle, including upstream wrapper and Therapist install checks. - Candidate evaluation confirmed that the fleet compiler stays at GCC 16.2.0 and the game/core Therapist derivations are identical. - Production pin metadata validation, checksum bindings and reverse-application checks passed. - `python3 tests/nixos-pin-lifecycle-integration.py` and `bash tests/nixos-pin-lifecycle-regressions.sh` passed. - Rebased against current main before both commits; main remained at `2439ec3`. Remaining acceptance: required MR checks, a full fleet build with the retried input update, deployment and a no-op follow-up. No activation was performed. Keep #262 open until that evidence is available. The malformed advisory JSON result and incomplete incident diagnostic excerpt are separate follow-ups.
Pin bundled DFHack to GCC 15 for compatibility
All checks were successful
AI pull-request review / review (pull_request) Successful in 1m30s
Build and Push Attic Cache / test (pull_request) Successful in 1m47s
Build and Push Attic Cache / pin-lifecycle (pull_request) Has been skipped
Build and Push Attic Cache / build (pull_request) Has been skipped
Build and Push Attic Cache / remediate (pull_request) Has been skipped
Build and Push Attic Cache / notify-remediation (pull_request) Has been skipped
Build and Push Attic Cache / record-remediation-notify-failure (pull_request) Has been skipped
ea66bddeca
Related to #262. The rejected nixpkgs candidate uses GCC 16.2.0, which DFHack 53.16-r1.1 explicitly rejects during CMake configuration. Select gcc15Stdenv only inside the Dwarf Fortress package set; the upstream interface uses it only for DFHack.

Validation: nix flake check passes; Electra and Lena host package selection evaluates. On Nova at the exact rejected nixpkgs revision b6c8664, GCC 15.3.0 builds both standalone DFHack and the full Dwarf Fortress bundle, including upstream wrapper/therapist install checks. The game and core Therapist derivations stay identical; the fleet compiler remains GCC 16.2.0. Full candidate fleet builds and deployment remain pending.
Author
Owner

Automated code review

Reviewed commit: 1403904276b9939a013a1916e672a6bdd6741f1a

Verdict: Ready to merge

No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory.

Overall assessment

The PR introduces a temporary GCC 15 override for the Dwarf Fortress package to resolve DFHack build failures with GCC 16. It adds a new package definition, updates documentation, and includes lifecycle metadata for the pin. The changes are scoped correctly within the NixOS configuration structure.

Blocking findings

None.

Important findings

None.

Suggestions

  • Overlay scope in common module (modules/common/nix-settings.nix:12; high confidence)
    •  dwarf-fortress-full = import ../../packages/dwarf-fortress-full { pkgs = prev; };  
      
    Impact: The overlay is added to modules/common/nix-settings.nix, making the package available globally. While acceptable for shared packages, it increases evaluation scope for hosts that do not use Dwarf Fortress.
    Suggested fix: Consider moving this overlay to host-specific configuration files if strict scoping is desired, though global availability is a common and acceptable pattern in NixOS.

Tests and validation

  • No configured deterministic checks.

Questions

  • Has the dwarf-fortress-full package been tested on all affected hosts (electra, lena, lyra, vega) to ensure no unexpected side effects from the GCC override?
  • Is there a plan to monitor upstream DFHack for GCC 16 support to facilitate the removal of this temporary pin?

Review limitations

  • The review is based on the provided diff and documentation. Live deployment evidence or full fleet build results are not available in the provided context.
  • The impact of the overlay on global evaluation time or other packages was not measured.

Diff coverage

  • README.md: reviewed — included in a context-limited batch
  • modules/common/nix-settings.nix: reviewed — included in a context-limited batch
  • packages/dwarf-fortress-full/default.nix: reviewed — included in a context-limited batch
  • remediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.json: reviewed — included in a context-limited batch
  • remediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.remove.patch: reviewed — included in a context-limited batch
Review metadata
  • Reviewer: forgejo-ai-review v1
  • Model: qwen3.6:35b-a3b-q8_0
  • Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/nova-remote-builder.md, README.md
  • Commits considered: 2
  • Previous automated review: updated
  • Findings: 1
<!-- forgejo-ai-review:v1 --> ## Automated code review Reviewed commit: `1403904276b9939a013a1916e672a6bdd6741f1a` ## Verdict: Ready to merge No blocking or important findings were retained, and deterministic checks passed. Suggestions remain advisory. ### Overall assessment The PR introduces a temporary GCC 15 override for the Dwarf Fortress package to resolve DFHack build failures with GCC 16. It adds a new package definition, updates documentation, and includes lifecycle metadata for the pin. The changes are scoped correctly within the NixOS configuration structure. ### Blocking findings None. ### Important findings None. ### Suggestions - **Overlay scope in common module** (modules/common/nix-settings.nix:12; high confidence) + dwarf-fortress-full = import ../../packages/dwarf-fortress-full { pkgs = prev; }; Impact: The overlay is added to `modules/common/nix-settings.nix`, making the package available globally. While acceptable for shared packages, it increases evaluation scope for hosts that do not use Dwarf Fortress. Suggested fix: Consider moving this overlay to host-specific configuration files if strict scoping is desired, though global availability is a common and acceptable pattern in NixOS. ### Tests and validation - No configured deterministic checks. ### Questions - Has the `dwarf-fortress-full` package been tested on all affected hosts (electra, lena, lyra, vega) to ensure no unexpected side effects from the GCC override? - Is there a plan to monitor upstream DFHack for GCC 16 support to facilitate the removal of this temporary pin? ### Review limitations - The review is based on the provided diff and documentation. Live deployment evidence or full fleet build results are not available in the provided context. - The impact of the overlay on global evaluation time or other packages was not measured. ### Diff coverage - `README.md`: **reviewed** — included in a context-limited batch - `modules/common/nix-settings.nix`: **reviewed** — included in a context-limited batch - `packages/dwarf-fortress-full/default.nix`: **reviewed** — included in a context-limited batch - `remediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.json`: **reviewed** — included in a context-limited batch - `remediation/pins/6a04b2c6e4fae9c31d686b5a1cd5e1ec50f944dfdd3e2bc495309fb6cf212f49.remove.patch`: **reviewed** — included in a context-limited batch <details><summary>Review metadata</summary> - Reviewer: forgejo-ai-review v1 - Model: qwen3.6:35b-a3b-q8_0 - Guidance loaded: .forgejo/ai-review.md, .forgejo/ai-review.yml, AGENTS.md, docs/auto-update-remediation.md, docs/nova-remote-builder.md, README.md - Commits considered: 2 - Previous automated review: updated - Findings: 1 </details>
Track manual DFHack pin through removal lifecycle
All checks were successful
AI pull-request review / review (pull_request) Successful in 1m28s
Build and Push Attic Cache / test (pull_request) Successful in 1m40s
Build and Push Attic Cache / pin-lifecycle (pull_request) Has been skipped
Build and Push Attic Cache / build (pull_request) Has been skipped
Build and Push Attic Cache / remediate (pull_request) Has been skipped
Build and Push Attic Cache / notify-remediation (pull_request) Has been skipped
Build and Push Attic Cache / record-remediation-notify-failure (pull_request) Has been skipped
1403904276
Address the valid lifecycle-metadata question from MR #263 review. Bind the manual compatibility pin to issue #262, its retained evidence, reviewed source identities and an exact forward patch with reverse removal direction. Record owner and review date without claiming full fleet validation.

Validation: production metadata validation and reverse-apply check, pin lifecycle integration fixtures, full pin lifecycle regression script and nix flake check pass.
nimmo merged commit 7fd2d85c2f into main 2026-10-02 19:07:46 +01:00
nimmo deleted branch fix/262-dfhack-gcc15 2026-10-02 19:07:49 +01:00
Sign in to join this conversation.
No reviewers
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/nixos-config!263
No description provided.