From ed415ff3ab66c8403a7d15807aee867c80113efa Mon Sep 17 00:00:00 2001 From: Yogesh Tyagi Date: Tue, 24 Sep 2024 17:44:41 +0530 Subject: ispc: backport fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes following build error in ispc-native on Ubuntu 24.04 host: "note: ‘uint32_t’ is defined in header ‘’; did you forget to ‘#include ’?" Backport patch: * 0001-Fix-build-with-GCC-13-and-possibly-Clang-15.patch Signed-off-by: Yogesh Tyagi Signed-off-by: Anuj Mittal --- ...x-build-with-GCC-13-and-possibly-Clang-15.patch | 36 ++++++++++++++++++++++ .../clang-layer/recipes-core/ispc/ispc_1.17.0.bb | 1 + 2 files changed, 37 insertions(+) create mode 100644 dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Fix-build-with-GCC-13-and-possibly-Clang-15.patch diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Fix-build-with-GCC-13-and-possibly-Clang-15.patch b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Fix-build-with-GCC-13-and-possibly-Clang-15.patch new file mode 100644 index 00000000..afe3c3ad --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc/0001-Fix-build-with-GCC-13-and-possibly-Clang-15.patch @@ -0,0 +1,36 @@ +From ffc75e464ff2b8fce7dbf74f1846ebd0852bc6f9 Mon Sep 17 00:00:00 2001 +From: Luya Tshimbalanga +Date: Tue, 28 Feb 2023 17:20:21 -0800 +Subject: [PATCH] Fix build with GCC 13 and possibly Clang 15 + +This fix add missing include to handle "uint32_t". + +Upstream-Status: Backport [https://github.com/ispc/ispc/commit/ffc75e464ff2b8fce7dbf74f1846ebd0852bc6f9] + +Signed-off-by: Yogesh Tyagi +--- + src/target_registry.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/target_registry.h b/src/target_registry.h +index 2f7d13a8..bad4ed08 100644 +--- a/src/target_registry.h ++++ b/src/target_registry.h +@@ -1,5 +1,5 @@ + /* +- Copyright (c) 2019-2021, Intel Corporation ++ Copyright (c) 2019-2023, Intel Corporation + All rights reserved. + + Redistribution and use in source and binary forms, with or without +@@ -40,6 +40,7 @@ + #include "bitcode_lib.h" + + #include ++#include + #include + #include + +-- +2.34.1 + diff --git a/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.17.0.bb b/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.17.0.bb index c50d8ef3..dd4841e7 100644 --- a/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.17.0.bb +++ b/dynamic-layers/clang-layer/recipes-core/ispc/ispc_1.17.0.bb @@ -17,6 +17,7 @@ SRC_URI = "git://github.com/ispc/ispc.git;protocol=https;branch=main \ file://0001-Enable-LLVM-15.0-support.patch \ file://0001-CMakeLists.txt-allow-to-pick-llvm-config-from-usr-bi.patch \ file://0001-Produce-position-independent-code-for-testing.patch \ + file://0001-Fix-build-with-GCC-13-and-possibly-Clang-15.patch \ " SRCREV = "7ad8429369a4d5ced6b524fdfffe623939d8fe9a" -- cgit v1.2.3-54-g00ecf