Skip to content

libfishsound: fix build with gcc14 - #370288

Merged
emilazy merged 1 commit into
NixOS:masterfrom
korrat:fix-libfishsound-gcc14
Jan 3, 2025
Merged

emilazy merged 1 commit into
NixOS:masterfrom
korrat:fix-libfishsound-gcc14

Conversation

@korrat

@korrat korrat commented Jan 2, 2025 •

Copy link
Copy Markdown
Contributor

In gcc 14, the default compiler in stdenv, -Wincompatible-pointer-types is enabled by default. This causes a build failure for libfishsound.

This patch adds a patch to libfishsound to fix the declaration of two callbacks.

The problem has also been reported upstream in kfish/libfishsound#2. However, there hasn't been much activity for the past 15 years, so I'm not sure how quick a response would be.

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.

@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 2, 2025
@korrat
korrat force-pushed the fix-libfishsound-gcc14 branch from c706977 to fd4d31a Compare January 2, 2025 16:46
In gcc 14, the default compiler in stdenv, -Wincompatible-pointer-types
is enabled by default. This causes a build failure for libfishsound.

This patch adds a patch to libfishsound to fix the declaration of two
callbacks.
@korrat
korrat force-pushed the fix-libfishsound-gcc14 branch from fd4d31a to fdd1a8c Compare January 2, 2025 16:46
@korrat

korrat commented Jan 2, 2025

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review


x86_64-linux

⏩ 1 package blacklisted:
  • nixos-install-tools
❌ 9 packages failed to build:
  • ruby-lsp
  • rubyPackages.prism
  • rubyPackages_3_1.prism
  • rubyPackages_3_1.ruby-lsp
  • rubyPackages_3_2.prism
  • rubyPackages_3_2.ruby-lsp
  • rubyPackages_3_4.prism
  • rubyPackages_3_4.ruby-lsp
  • sonic-visualiser
✅ 4 packages built:
  • libfishsound
  • rustmission
  • sonic-lineup
  • tony

sonic-visualiser fails due to a similar issue in librdf_raptor, which is quite out of date. This change is intended as a base to enable fixing that as well.

The ruby build failures seem unrelated.

@emilazy
emilazy merged commit 2392227 into NixOS:master Jan 3, 2025
@emilazy

emilazy commented Jan 3, 2025

Copy link
Copy Markdown
Member

Thanks for working on sonic-visualiser, feel free to ping me for the bump / fixes so we can get rid of librdf_raptor 💜

@korrat
korrat deleted the fix-libfishsound-gcc14 branch January 3, 2025 12:23
@paparodeo

Copy link
Copy Markdown
Contributor

also #369257 which pulled in some fixes from Debian.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants