Skip to content

pmccabe: fix build with gcc 14 - #378989

Merged
peterhoeg merged 2 commits into
NixOS:masterfrom
holaguz:update-pmccabe
Feb 5, 2025
Merged

peterhoeg merged 2 commits into
NixOS:masterfrom
holaguz:update-pmccabe

Conversation

@holaguz

@holaguz holaguz commented Feb 3, 2025

Copy link
Copy Markdown
Contributor

A change in GCC 14 turned implicit function declarations into an error. See: https://gcc.gnu.org/gcc-14/porting_to.html#implicit-function-declaration

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.

@holaguz
holaguz changed the base branch from master to nixos-unstable February 3, 2025 01:18
@holaguz
holaguz changed the base branch from nixos-unstable to master February 3, 2025 01:20
@NixOSInfra NixOSInfra added the 12.first-time contribution This PR is the author's first one; please be gentle! label Feb 3, 2025
@holaguz
holaguz marked this pull request as draft February 3, 2025 01:24
@github-actions github-actions Bot added 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Feb 3, 2025
@nix-owners
nix-owners Bot requested a review from peterhoeg February 3, 2025 01:26
@holaguz

holaguz commented Feb 3, 2025

Copy link
Copy Markdown
Contributor Author

To clarify, this error occurs on the unstable channel which provides GCC 14. This is my first contribution, don't know if I the PR should be targeting the master branch.

@holaguz
holaguz marked this pull request as ready for review February 3, 2025 01:28
@holaguz

holaguz commented Feb 3, 2025

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 378989


x86_64-linux

✅ 1 package built:
  • pmccabe

@peterhoeg

Copy link
Copy Markdown
Member

Thank you for this and yes, we target master when the the number of affected packages is low.

@peterhoeg
peterhoeg merged commit 893ddcd into NixOS:master Feb 5, 2025
@peterhoeg

Copy link
Copy Markdown
Member

I just realized that this was your first PR. So please also accept my warmest welcome to the community and gratitude for your work in making this better for all of us.

@holaguz
holaguz deleted the update-pmccabe branch February 5, 2025 13:22
@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-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants