Skip to content

vala: remove unconditional work around for clang 16 function pointer errors#330015

Merged
fabianhjr merged 1 commit intoNixOS:stagingfrom
LibreCybernetics:remove-clang-vala-unconditional-flag
Aug 2, 2024
Merged

vala: remove unconditional work around for clang 16 function pointer errors#330015
fabianhjr merged 1 commit intoNixOS:stagingfrom
LibreCybernetics:remove-clang-vala-unconditional-flag

Conversation

@fabianhjr
Copy link
Copy Markdown
Member

@fabianhjr fabianhjr commented Jul 25, 2024

Description of changes

Hook accumulates the flag over several executions as observed in:

Since this has been committed, gcc started emitting a warning on -Wno-incompatible-function-poniter-types being an unrecognized flag and additionally upstream vala added its own measure to reduce these new pointer errors to warnings in its generated sources.

https://gitlab.gnome.org/GNOME/vala/-/commit/23ec71b1a5c4cead3d1bdac82e184d0a63fa7b79

Which is part of the current release
branch (https://gitlab.gnome.org/GNOME/vala/-/commits/0.56?ref_type=heads) and released on 0.56.15

Vala 0.56.15
============
 * Various improvements and bug fixes:
  - codegen:
...
    + Emit diagnostic pragmas for GCC 14, Clang 16 compatibility [#1408]

https://gitlab.gnome.org/GNOME/vala/-/merge_requests/369

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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

Only tested gcc stdenv, would appreciate testing on clang stdenv platforms.


Add a 👍 reaction to pull requests you find important.

…errors

Hook accumulates the flag over sereval executions as observed in:

- NixOS#301592
- NixOS#252484 (comment)

Since this has been committed, gcc started emitting a warning on
`-Wno-incompatible-function-poniter-types` being an unrecognized flag
and additionally upstream vala added its own meassure to reduce these
new pointer errors to warnings in its generated sources.

https://gitlab.gnome.org/GNOME/vala/-/commit/23ec71b1a5c4cead3d1bdac82e184d0a63fa7b79

Which is part of the current release
branch (https://gitlab.gnome.org/GNOME/vala/-/commits/0.56?ref_type=heads)
and released on 0.56.15

```
Vala 0.56.15
============
 * Various improvements and bug fixes:
  - codegen:
...
    + Emit diagnostic pragmas for GCC 14, Clang 16 compatibility [NixOS#1408]
```

https://gitlab.gnome.org/GNOME/vala/-/merge_requests/369
@ofborg ofborg bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Jul 26, 2024
@fabianhjr fabianhjr changed the base branch from staging-next to staging July 26, 2024 06:36
@fabianhjr
Copy link
Copy Markdown
Member Author

@ofborg eval

Copy link
Copy Markdown
Contributor

@r-vdp r-vdp left a comment

Choose a reason for hiding this comment

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

I'm definitely not an expert on this, but if we indeed just don't need this flag anymore, then this PR will definitely solve the issue that I was having!

Copy link
Copy Markdown
Member

@jtojnar jtojnar left a comment

Choose a reason for hiding this comment

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

Thanks, looks reasonable to me after checking the upstream commit. Did not verify if it actually fixes the issue.

@fabianhjr fabianhjr merged commit 14d4cbf into NixOS:staging Aug 2, 2024
@fabianhjr fabianhjr deleted the remove-clang-vala-unconditional-flag branch August 2, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants