@@ -167,8 +167,15 @@ callPackage (import ./generic.nix (rec {
167167 xenpmdpatch
168168 ];
169169
170− # Fix build on Glibc 2.24.
171− NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
170+ NIX_CFLAGS_COMPILE = [
171+ # Fix build on Glibc 2.24
172+ "-Wno-error=deprecated-declarations"
173+ # Fix build with GCC8
174+ "-Wno-error=maybe-uninitialized"
175+ "-Wno-error=stringop-truncation"
176+ "-Wno-error=format-truncation"
177+ "-Wno-error=array-bounds"
178+ ];
172179
173180 postPatch = ''
174181 # Avoid a glibc >= 2.25 deprecation warnings that get fatal via -Werror.