Skip to content

cc-wrapper: don't use fortify-headers for non-gcc compilers#251942

Merged
risicle merged 1 commit intoNixOS:masterfrom
risicle:ris-fortify-headers-disable-non-gcc
Aug 28, 2023
Merged

cc-wrapper: don't use fortify-headers for non-gcc compilers#251942
risicle merged 1 commit intoNixOS:masterfrom
risicle:ris-fortify-headers-disable-non-gcc

Conversation

@risicle
Copy link
Contributor

@risicle risicle commented Aug 28, 2023

Description of changes

This is a break-glass-if-we-get-too-frustrated PR to completely disable use of fortify-headers for non-gcc compilers. There are several cases where use of the fortify-headers will totally confuse clang, and they're hard to debug.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • 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/)
  • 23.11 Release Notes (or backporting 23.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.

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Aug 28, 2023
@yu-re-ka
Copy link
Contributor

Testing this now

@risicle
Copy link
Contributor Author

risicle commented Aug 28, 2023

Going to re-target this to master as it should only cause rebuilds for clang/musl users, where things are already a bit broken.

@risicle risicle force-pushed the ris-fortify-headers-disable-non-gcc branch from 54d8b16 to df02fcb Compare August 28, 2023 14:07
@risicle risicle changed the base branch from staging to master August 28, 2023 14:10
@risicle
Copy link
Contributor Author

risicle commented Aug 28, 2023

Breaking the glass..

@risicle risicle marked this pull request as ready for review August 28, 2023 14:10
@risicle risicle requested a review from Ericson2314 as a code owner August 28, 2023 14:10
@risicle risicle requested a review from a user August 28, 2023 14:10
@yu-re-ka
Copy link
Contributor

Can confirm this fixes pkgsMusl.thunderbird-unwrapped. Thanks for following up on this (and generally putting work into the musl toolchain) 🎉

@risicle risicle merged commit 505dccf into NixOS:master Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants