From b06d3aea7ed1464d3d39ae4c5b9b1f0581c4ba1d Mon Sep 17 00:00:00 2001 From: Daniel Bermond Date: Sat, 10 May 2025 13:04:47 -0300 Subject: [PATCH] Add fixes for building with GCC 15 For using fixed width integer types[1], the `` C++ header needs to be explicitly included with GCC 15 due to changes[2] in libstdc++. For details, see the documentation[3] about porting to GCC 15. [1] https://en.cppreference.com/w/cpp/header/cstdint [2] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84a74e3076ee2 [3] https://gcc.gnu.org/gcc-15/porting_to.html#cxx --- shared/generate_cpp_array/source/generate_cpp_array.cpp | 1 + shared/offline_compiler/source/decoder/iga_wrapper.h | 1 + shared/offline_compiler/source/ocloc_arg_helper.h | 1 + shared/source/debugger/debugger.h | 1 + shared/source/gmm_helper/gmm_helper.h | 1 + shared/source/os_interface/device_factory.h | 1 + shared/source/os_interface/os_memory.h | 1 + shared/source/os_interface/os_time.h | 1 + shared/source/program/program_info.h | 1 + shared/source/utilities/software_tags.h | 1 + 10 files changed, 10 insertions(+) diff --git a/shared/generate_cpp_array/source/generate_cpp_array.cpp b/shared/generate_cpp_array/source/generate_cpp_array.cpp index a1dcde7d26ebd..eac40fd842ea2 100644 --- a/shared/generate_cpp_array/source/generate_cpp_array.cpp +++ b/shared/generate_cpp_array/source/generate_cpp_array.cpp @@ -5,6 +5,7 @@ * */ +#include #include #include #include diff --git a/shared/offline_compiler/source/decoder/iga_wrapper.h b/shared/offline_compiler/source/decoder/iga_wrapper.h index 82697e32cf6d4..e42bebca91b98 100644 --- a/shared/offline_compiler/source/decoder/iga_wrapper.h +++ b/shared/offline_compiler/source/decoder/iga_wrapper.h @@ -11,6 +11,7 @@ #include "igfxfmid.h" +#include #include #include diff --git a/shared/offline_compiler/source/ocloc_arg_helper.h b/shared/offline_compiler/source/ocloc_arg_helper.h index 3aca7258b03e0..34d48cd8a55ec 100644 --- a/shared/offline_compiler/source/ocloc_arg_helper.h +++ b/shared/offline_compiler/source/ocloc_arg_helper.h @@ -11,6 +11,7 @@ #include "shared/source/utilities/const_stringref.h" #include +#include #include #include #include diff --git a/shared/source/debugger/debugger.h b/shared/source/debugger/debugger.h index cfc1865808134..3aea06bf8c262 100644 --- a/shared/source/debugger/debugger.h +++ b/shared/source/debugger/debugger.h @@ -6,6 +6,7 @@ */ #pragma once +#include #include namespace NEO { struct HardwareInfo; diff --git a/shared/source/gmm_helper/gmm_helper.h b/shared/source/gmm_helper/gmm_helper.h index 63a28e1148447..f1c2a6f194b93 100644 --- a/shared/source/gmm_helper/gmm_helper.h +++ b/shared/source/gmm_helper/gmm_helper.h @@ -6,6 +6,7 @@ */ #pragma once +#include #include namespace NEO { diff --git a/shared/source/os_interface/device_factory.h b/shared/source/os_interface/device_factory.h index 75dd491704224..bdcdb47807d86 100644 --- a/shared/source/os_interface/device_factory.h +++ b/shared/source/os_interface/device_factory.h @@ -6,6 +6,7 @@ */ #pragma once +#include #include #include #include diff --git a/shared/source/os_interface/os_memory.h b/shared/source/os_interface/os_memory.h index 7c521b004d834..0597c8714cfc0 100644 --- a/shared/source/os_interface/os_memory.h +++ b/shared/source/os_interface/os_memory.h @@ -6,6 +6,7 @@ */ #pragma once +#include #include #include diff --git a/shared/source/os_interface/os_time.h b/shared/source/os_interface/os_time.h index 9c838823fc9bc..e9c40c6933c42 100644 --- a/shared/source/os_interface/os_time.h +++ b/shared/source/os_interface/os_time.h @@ -6,6 +6,7 @@ */ #pragma once +#include #include #include diff --git a/shared/source/program/program_info.h b/shared/source/program/program_info.h index e3569a16bc1f0..dda6e5a5ae9cb 100644 --- a/shared/source/program/program_info.h +++ b/shared/source/program/program_info.h @@ -9,6 +9,7 @@ #include "shared/source/helpers/non_copyable_or_moveable.h" #include "shared/source/utilities/arrayref.h" +#include #include #include #include diff --git a/shared/source/utilities/software_tags.h b/shared/source/utilities/software_tags.h index 30406bbaafe1d..29a27c47fbedb 100644 --- a/shared/source/utilities/software_tags.h +++ b/shared/source/utilities/software_tags.h @@ -8,6 +8,7 @@ #pragma once #include "shared/source/helpers/string.h" +#include #include namespace NEO {