From 84822c43fcf6787f3680868d6f63e80b69244fbe Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 10 Apr 2023 17:04:03 +0100 Subject: [PATCH] gcc: drop include-fixed/bits/statx.h At least on armv7l-linux bootstrapTools fixed version of bits/statx.h breaks the header: https://github.com/NixOS/nixpkgs/pull/209870#issuecomment-1501201452 Drop the header along with other already cleaned ones. --- pkgs/development/compilers/gcc/builder.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/gcc/builder.sh b/pkgs/development/compilers/gcc/builder.sh index a2155360edee..5147df1e4cc0 100644 --- a/pkgs/development/compilers/gcc/builder.sh +++ b/pkgs/development/compilers/gcc/builder.sh @@ -262,7 +262,7 @@ postInstall() { fi # Get rid of some "fixed" header files - rm -rfv $out/lib/gcc/*/*/include-fixed/{root,linux,sys/mount.h} + rm -rfv $out/lib/gcc/*/*/include-fixed/{root,linux,sys/mount.h,bits/statx.h} # Replace hard links for i686-pc-linux-gnu-gcc etc. with symlinks. for i in $out/bin/*-gcc*; do