From e77978fa59babc1e0393ea92b2053d21ee3c4301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 23 Dec 2024 17:35:05 +0100 Subject: [PATCH] syslinux: fixup build with gcc14 --- pkgs/by-name/sy/syslinux/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/sy/syslinux/package.nix b/pkgs/by-name/sy/syslinux/package.nix index 54a9a5bb11ae..48b7ce35bed4 100644 --- a/pkgs/by-name/sy/syslinux/package.nix +++ b/pkgs/by-name/sy/syslinux/package.nix @@ -115,7 +115,10 @@ stdenv.mkDerivation { # gcc-10. Otherwise build fails as: # ld: acpi/xsdt.o:/build/syslinux-b404870/com32/gpllib/../gplinclude/memory.h:40: multiple definition of # `e820_types'; memory.o:/build/syslinux-b404870/com32/gpllib/../gplinclude/memory.h:40: first defined here - env.NIX_CFLAGS_COMPILE = "-fcommon"; + # and with gcc14+ also: + # /build/source/com32/chain/chain.c:517:44: + # error: passing argument 3 of 'loadfile' from incompatible pointer type + env.NIX_CFLAGS_COMPILE = "-fcommon -Wno-error=incompatible-pointer-types"; makeFlags = [