fixes following build error in ispc-native on Ubuntu 24.04 host: note: ‘UINT16_MAX’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
Backport patch: * 0001-SPIRVutil-Include-cstdint-to-fix-GCC-13-build.patch Signed-off-by: Yogesh Tyagi <[email protected]> --- ...-Include-cstdint-to-fix-GCC-13-build.patch | 29 +++++++++++++++++++ .../intel-graphics-compiler_1.0.11702.1.bb | 1 + 2 files changed, 30 insertions(+) create mode 100644 dynamic-layers/clang-layer/recipes-opencl/igc/files/0001-SPIRVutil-Include-cstdint-to-fix-GCC-13-build.patch diff --git a/dynamic-layers/clang-layer/recipes-opencl/igc/files/0001-SPIRVutil-Include-cstdint-to-fix-GCC-13-build.patch b/dynamic-layers/clang-layer/recipes-opencl/igc/files/0001-SPIRVutil-Include-cstdint-to-fix-GCC-13-build.patch new file mode 100644 index 00000000..4b1078e1 --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/igc/files/0001-SPIRVutil-Include-cstdint-to-fix-GCC-13-build.patch @@ -0,0 +1,29 @@ +From 5ea17d8bcf3daa03ef95d0fed796f68cec7dc32d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= <[email protected]> +Date: Wed, 18 Jan 2023 22:22:23 +0000 +Subject: [PATCH] SPIRVutil: Include cstdint to fix GCC 13 build + +SPIRVutil: Include cstdint to fix GCC 13 build + +Upstream-Status: Backport [https://github.com/intel-innersource/drivers.gpu.compiler.staging/commit/5ea17d8bcf3daa03ef95d0fed796f68cec7dc32d] + +Signed-off-by: Yogesh Tyagi <[email protected]> +--- + IGC/AdaptorOCL/SPIRV/libSPIRV/SPIRVUtil.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/IGC/AdaptorOCL/SPIRV/libSPIRV/SPIRVUtil.h b/IGC/AdaptorOCL/SPIRV/libSPIRV/SPIRVUtil.h +index 1076d5d42..9685e477f 100644 +--- a/IGC/AdaptorOCL/SPIRV/libSPIRV/SPIRVUtil.h ++++ b/IGC/AdaptorOCL/SPIRV/libSPIRV/SPIRVUtil.h +@@ -49,6 +49,7 @@ THE SOFTWARE. + #define SPIRVUTIL_H_ + + #include <algorithm> ++#include <cstdint> + #include <functional> + #include <limits> + #include <map> +-- +2.34.1 + diff --git a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.11702.1.bb b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.11702.1.bb index 7a994ebe..354732d5 100644 --- a/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.11702.1.bb +++ b/dynamic-layers/clang-layer/recipes-opencl/igc/intel-graphics-compiler_1.0.11702.1.bb @@ -14,6 +14,7 @@ SRC_URI = "git://github.com/intel/intel-graphics-compiler.git;protocol=https;nam git://github.com/KhronosGroup/SPIRV-Headers.git;protocol=https;destsuffix=SPIRV-Headers;name=spirv-headers;branch=master \ file://0003-Improve-Reproducibility-for-src-package.patch \ file://0001-BiF-CMakeLists.txt-remove-opt-from-DEPENDS.patch \ + file://0001-SPIRVutil-Include-cstdint-to-fix-GCC-13-build.patch \ " SRC_URI:append:class-native = " file://0001-fix-tblgen.patch" -- 2.43.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#8412): https://lists.yoctoproject.org/g/meta-intel/message/8412 Mute This Topic: https://lists.yoctoproject.org/mt/108627036/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
