Skip to content

drat-trim: fix gcc-14 build - #372049

Merged
FliegendeWurst merged 2 commits into
NixOS:masterfrom
trofi:drat-trim-gcc-14-fix
Jan 14, 2025
Merged

FliegendeWurst merged 2 commits into
NixOS:masterfrom
trofi:drat-trim-gcc-14-fix

Conversation

@trofi

@trofi trofi commented Jan 8, 2025 •

Copy link
Copy Markdown
Contributor

Without the change the build on gcc-14 fails as:

drat-trim.c: In function 'read_lit':
drat-trim.c:989:10: error: implicit declaration of function 'getc_unlocked' [-Wimplicit-function-declaration]
  989 |     lc = getc_unlocked (S->proofFile);
      |          ^~~~~~~~~~~~

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@trofi trofi changed the title drat-tri: fix gcc-14 build drat-trim: fix gcc-14 build Jan 8, 2025
trofi added 2 commits January 8, 2025 07:30
Without the change the build on `gcc-14` fails as:

    drat-trim.c: In function 'read_lit':
    drat-trim.c:989:10: error: implicit declaration of function 'getc_unlocked' [-Wimplicit-function-declaration]
      989 |     lc = getc_unlocked (S->proofFile);
          |          ^~~~~~~~~~~~
@trofi
trofi force-pushed the drat-trim-gcc-14-fix branch from 8e7d641 to bca68f0 Compare January 8, 2025 07:31
@github-actions github-actions Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jan 8, 2025
@nix-owners
nix-owners Bot requested a review from kini January 8, 2025 07:35

@kini kini left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

@wegank wegank added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Jan 14, 2025
@FliegendeWurst
FliegendeWurst merged commit 646e774 into NixOS:master Jan 14, 2025
@trofi
trofi deleted the drat-trim-gcc-14-fix branch January 14, 2025 07:31
@Sigmanificient Sigmanificient mentioned this pull request Mar 8, 2025
27 of 28 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants