From 22c050c199fe69e215f81790da2dcb6482163268 Mon Sep 17 00:00:00 2001 From: Janis Gertulla Date: Thu, 1 Oct 2026 15:16:13 +0200 Subject: [PATCH] intel-compute-runtime-legacy1: fix GCC 16 build GCC 16 fails to build the runtime for Gen8/Gen9/Gen11 Intel GPUs, blocking NixOS rebuilds that include it. Backport Intel's missing include fix for -Werror=sfinae-incomplete=. --- pkgs/by-name/in/intel-compute-runtime-legacy1/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/in/intel-compute-runtime-legacy1/package.nix b/pkgs/by-name/in/intel-compute-runtime-legacy1/package.nix index b91c58a244d3..f6a087f79084 100644 --- a/pkgs/by-name/in/intel-compute-runtime-legacy1/package.nix +++ b/pkgs/by-name/in/intel-compute-runtime-legacy1/package.nix @@ -3,6 +3,7 @@ callPackage, stdenv, fetchFromGitHub, + fetchpatch, cmake, pkg-config, intel-gmmlib, @@ -43,6 +44,11 @@ stdenv.mkDerivation (finalAttrs: { patches = [ # https://github.com/intel/compute-runtime/pull/879 ./add-cstdint-include-gcc15.patch + # https://github.com/intel/compute-runtime/commit/c1eb6c1a183c2f69e0d6e9ed5aa042fac2201217 + (fetchpatch { + url = "https://github.com/intel/compute-runtime/commit/c1eb6c1a183c2f69e0d6e9ed5aa042fac2201217.patch"; + hash = "sha256-O8ZJaxIr4TF73T+fyEbNjEYFbgwLxIUWoYnorxh8ZTo="; + }) ]; cmakeFlags = [