-
-
Notifications
You must be signed in to change notification settings - Fork 17.5k
elvis: unbreak #392102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
elvis: unbreak #392102
Conversation
Disable check for the NEED_WAIT_H macro to always include <sys/wait.h> as it fails otherwise with gcc14 and newer compilers.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can confirm that it fails to compile before this pr and this pr fixes it.
|
|
Could it make sense to add a substituteInPlace for osunix/tcaphelp.c to fix it working on darwin at the same time?
|
|
linux was broken by gcc14 https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.elvis.x86_64-linux, but darwin has been broken for a long time, https://hydra.nixos.org/job/nixpkgs/trunk/elvis.x86_64-darwin and i assume |
|
i was right, even with # linux pkgsLLVM.elvis builds fine
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
NIX_CFLAGS_COMPILE = lib.concatStringsSep " " [
"-std=c11"
"-Wno-error=implicit-function-declaration"
"-Wno-error=implicit-int"
# shush
"-Wno-deprecated-non-prototype"
"-Wno-pointer-to-int-cast"
];
};i still get https://gist.github.com/pbsds/3d44d6d151584f2abe899fd1d165c31e, i don't know darwin that well so i'll leave it for those interested in darwin to figure it out |
Disable check for the NEED_WAIT_H macro to always include <sys/wait.h> as it fails otherwise with gcc14 and newer compilers.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.