* [Buildroot] [PATCH 2/5] package/kodi: fix build with gcc-13
2023-05-07 21:43 [Buildroot] [PATCH 1/5] package/intel-mediasdk: fix build with gcc-13 Bernd Kuhls
@ 2023-05-07 21:43 ` Bernd Kuhls
2023-05-07 21:43 ` [Buildroot] [PATCH 3/5] package/kodi-inputstream-adaptive: " Bernd Kuhls
` (3 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: Bernd Kuhls @ 2023-05-07 21:43 UTC (permalink / raw)
To: buildroot
Cc: Louis-Paul Cordier, Romain Naour, Giulio Benetti,
Thomas Petazzoni, Thomas De Schampheleire
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
package/kodi/0003-Fix-build-with-GCC-13.patch | 23 +++
package/kodi/0004-Fix-build-with-GCC-13.patch | 172 ++++++++++++++++++
package/kodi/0005-Fix-build-with-GCC-13.patch | 29 +++
3 files changed, 224 insertions(+)
create mode 100644 package/kodi/0003-Fix-build-with-GCC-13.patch
create mode 100644 package/kodi/0004-Fix-build-with-GCC-13.patch
create mode 100644 package/kodi/0005-Fix-build-with-GCC-13.patch
diff --git a/package/kodi/0003-Fix-build-with-GCC-13.patch b/package/kodi/0003-Fix-build-with-GCC-13.patch
new file mode 100644
index 0000000000..5c0ea358d9
--- /dev/null
+++ b/package/kodi/0003-Fix-build-with-GCC-13.patch
@@ -0,0 +1,23 @@
+From 3e9ca53755d14417ec0f426193f63593a4ee988f Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Markus=20H=C3=A4rer?= <markus.haerer@gmx.net>
+Date: Sat, 6 May 2023 00:24:06 +0200
+Subject: [PATCH] IDecoder: Add missing cstdint include for gcc>=13
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+Upstream: https://github.com/xbmc/xbmc/pull/23239
+---
+ tools/depends/native/TexturePacker/src/decoder/IDecoder.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tools/depends/native/TexturePacker/src/decoder/IDecoder.h b/tools/depends/native/TexturePacker/src/decoder/IDecoder.h
+index 3279c55a1c13f..5bc06f2f96b43 100644
+--- a/tools/depends/native/TexturePacker/src/decoder/IDecoder.h
++++ b/tools/depends/native/TexturePacker/src/decoder/IDecoder.h
+@@ -20,6 +20,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <string>
+ #include <vector>
+
diff --git a/package/kodi/0004-Fix-build-with-GCC-13.patch b/package/kodi/0004-Fix-build-with-GCC-13.patch
new file mode 100644
index 0000000000..f11c25418b
--- /dev/null
+++ b/package/kodi/0004-Fix-build-with-GCC-13.patch
@@ -0,0 +1,172 @@
+From 28ed222150cea07c72ef3e063c1d3c70f67be4ba Mon Sep 17 00:00:00 2001
+From: Heiko Becker <heirecka@exherbo.org>
+Date: Sun, 29 Jan 2023 23:01:23 +0100
+Subject: [PATCH] Fix build with gcc 13 by including <cstdint>
+
+Like other versions before, gcc 13 moved some includes around and as a
+result <cstdint> is no longer transitively included. Explicitly include
+it for uint*_t.
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+Upstream: https://github.com/xbmc/xbmc/commit/28ed222150cea07c72ef3e063c1d3c70f67be4ba
+---
+ xbmc/cores/RetroPlayer/cheevos/Cheevos.h | 1 +
+ xbmc/cores/VideoPlayer/VideoRenderers/ColorManager.cpp | 1 +
+ xbmc/cores/VideoPlayer/VideoRenderers/ColorManager.h | 1 +
+ xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VaapiEGL.h | 1 +
+ xbmc/pictures/Picture.h | 2 ++
+ xbmc/platform/Filesystem.h | 1 +
+ xbmc/platform/posix/Filesystem.cpp | 1 +
+ xbmc/utils/CSSUtils.cpp | 1 +
+ xbmc/utils/CharArrayParser.cpp | 1 +
+ xbmc/utils/CharArrayParser.h | 1 +
+ xbmc/utils/StreamUtils.h | 1 +
+ xbmc/windowing/X11/GLContextEGL.h | 2 ++
+ 12 files changed, 14 insertions(+)
+
+diff --git a/xbmc/cores/RetroPlayer/cheevos/Cheevos.h b/xbmc/cores/RetroPlayer/cheevos/Cheevos.h
+index 71c5ed5896198..70ffe41ed8b8d 100644
+--- a/xbmc/cores/RetroPlayer/cheevos/Cheevos.h
++++ b/xbmc/cores/RetroPlayer/cheevos/Cheevos.h
+@@ -10,6 +10,7 @@
+
+ #include "RConsoleIDs.h"
+
++#include <cstdint>
+ #include <map>
+ #include <string>
+
+diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/ColorManager.cpp b/xbmc/cores/VideoPlayer/VideoRenderers/ColorManager.cpp
+index 0c0d953aca79d..e1888814cf935 100644
+--- a/xbmc/cores/VideoPlayer/VideoRenderers/ColorManager.cpp
++++ b/xbmc/cores/VideoPlayer/VideoRenderers/ColorManager.cpp
+@@ -15,6 +15,7 @@
+ #include "utils/TimeUtils.h"
+ #include "utils/log.h"
+
++#include <cstdint>
+ #include <math.h>
+ #include <vector>
+
+diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/ColorManager.h b/xbmc/cores/VideoPlayer/VideoRenderers/ColorManager.h
+index b23da958d92e8..1366c3a1d32d4 100644
+--- a/xbmc/cores/VideoPlayer/VideoRenderers/ColorManager.h
++++ b/xbmc/cores/VideoPlayer/VideoRenderers/ColorManager.h
+@@ -12,6 +12,7 @@
+ #include <lcms2.h>
+ #endif
+
++#include <cstdint>
+ #include <string>
+
+ extern "C"
+diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VaapiEGL.h b/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VaapiEGL.h
+index fe65b40587dea..4607946365b55 100644
+--- a/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VaapiEGL.h
++++ b/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/VaapiEGL.h
+@@ -13,6 +13,7 @@
+ #include "platform/posix/utils/FileHandle.h"
+
+ #include <array>
++#include <cstdint>
+
+ #include <va/va.h>
+
+diff --git a/xbmc/pictures/Picture.h b/xbmc/pictures/Picture.h
+index 2d469d795d5f1..ee5a270d868c7 100644
+--- a/xbmc/pictures/Picture.h
++++ b/xbmc/pictures/Picture.h
+@@ -11,6 +11,8 @@
+ #include "pictures/PictureScalingAlgorithm.h"
+ #include "utils/Job.h"
+
++#include <cstddef>
++#include <cstdint>
+ #include <string>
+ #include <vector>
+
+diff --git a/xbmc/platform/Filesystem.h b/xbmc/platform/Filesystem.h
+index 3e6b7ec52bf73..732be9294c53c 100644
+--- a/xbmc/platform/Filesystem.h
++++ b/xbmc/platform/Filesystem.h
+@@ -8,6 +8,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <string>
+ #include <system_error>
+ namespace KODI
+diff --git a/xbmc/platform/posix/Filesystem.cpp b/xbmc/platform/posix/Filesystem.cpp
+index 477e7b660f391..6e7282ca0013b 100644
+--- a/xbmc/platform/posix/Filesystem.cpp
++++ b/xbmc/platform/posix/Filesystem.cpp
+@@ -19,6 +19,7 @@
+ #include <sys/statfs.h>
+ #endif
+
++#include <cstdint>
+ #include <cstdlib>
+ #include <limits.h>
+ #include <string.h>
+diff --git a/xbmc/utils/CSSUtils.cpp b/xbmc/utils/CSSUtils.cpp
+index 96105878e0fd2..329d70cdbc99b 100644
+--- a/xbmc/utils/CSSUtils.cpp
++++ b/xbmc/utils/CSSUtils.cpp
+@@ -8,6 +8,7 @@
+
+ #include "CSSUtils.h"
+
++#include <cstdint>
+ #include <string>
+
+ namespace
+diff --git a/xbmc/utils/CharArrayParser.cpp b/xbmc/utils/CharArrayParser.cpp
+index 2e917e2ff2ba0..5aeec2040babe 100644
+--- a/xbmc/utils/CharArrayParser.cpp
++++ b/xbmc/utils/CharArrayParser.cpp
+@@ -10,6 +10,7 @@
+
+ #include "utils/log.h"
+
++#include <cstdint>
+ #include <cstring>
+
+ void CCharArrayParser::Reset()
+diff --git a/xbmc/utils/CharArrayParser.h b/xbmc/utils/CharArrayParser.h
+index 7e5e314161413..3430946dd3a02 100644
+--- a/xbmc/utils/CharArrayParser.h
++++ b/xbmc/utils/CharArrayParser.h
+@@ -8,6 +8,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <string>
+
+ /*!
+diff --git a/xbmc/utils/StreamUtils.h b/xbmc/utils/StreamUtils.h
+index 079cfa3f5c62b..3d16e8a2224da 100644
+--- a/xbmc/utils/StreamUtils.h
++++ b/xbmc/utils/StreamUtils.h
+@@ -8,6 +8,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <string>
+
+ static constexpr int MP4_BOX_HEADER_SIZE = 8;
+diff --git a/xbmc/windowing/X11/GLContextEGL.h b/xbmc/windowing/X11/GLContextEGL.h
+index afea0b7c43eac..441787b67197b 100644
+--- a/xbmc/windowing/X11/GLContextEGL.h
++++ b/xbmc/windowing/X11/GLContextEGL.h
+@@ -12,6 +12,8 @@
+ #include "system_egl.h"
+ #include "threads/CriticalSection.h"
+
++#include <cstdint>
++
+ #include <EGL/eglext.h>
+ #ifdef HAVE_EGLEXTANGLE
+ #include <EGL/eglext_angle.h>
diff --git a/package/kodi/0005-Fix-build-with-GCC-13.patch b/package/kodi/0005-Fix-build-with-GCC-13.patch
new file mode 100644
index 0000000000..30b45600de
--- /dev/null
+++ b/package/kodi/0005-Fix-build-with-GCC-13.patch
@@ -0,0 +1,29 @@
+From 023717ed87267382e421f62cc9e47a7582fc4455 Mon Sep 17 00:00:00 2001
+From: Rudi Heitbaum <rudi@heitbaum.com>
+Date: Sun, 9 Apr 2023 15:45:29 +0000
+Subject: [PATCH] DRMHelpers: include missing <cstdint>
+
+gcc 13 moved some includes around and as a result <cstdint> is no longer transitively
+included [1]. Explicitly include it for uint{32,64}_t.
+
+[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
+
+Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+Upstream: https://github.com/xbmc/xbmc/commit/023717ed87267382e421f62cc9e47a7582fc4455
+---
+ xbmc/utils/DRMHelpers.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/xbmc/utils/DRMHelpers.h b/xbmc/utils/DRMHelpers.h
+index ea45823179549..dcc7f502f3603 100644
+--- a/xbmc/utils/DRMHelpers.h
++++ b/xbmc/utils/DRMHelpers.h
+@@ -8,6 +8,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <string>
+
+ namespace DRMHELPERS
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 11+ messages in thread* [Buildroot] [PATCH 3/5] package/kodi-inputstream-adaptive: fix build with gcc-13
2023-05-07 21:43 [Buildroot] [PATCH 1/5] package/intel-mediasdk: fix build with gcc-13 Bernd Kuhls
2023-05-07 21:43 ` [Buildroot] [PATCH 2/5] package/kodi: " Bernd Kuhls
@ 2023-05-07 21:43 ` Bernd Kuhls
2023-07-29 21:59 ` Thomas Petazzoni via buildroot
2023-05-07 21:43 ` [Buildroot] [PATCH 4/5] package/kodi-inputstream-ffmpeg: " Bernd Kuhls
` (2 subsequent siblings)
4 siblings, 1 reply; 11+ messages in thread
From: Bernd Kuhls @ 2023-05-07 21:43 UTC (permalink / raw)
To: buildroot
Cc: Louis-Paul Cordier, Romain Naour, Giulio Benetti,
Thomas Petazzoni, Thomas De Schampheleire
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
...de-missing-cstdint-to-support-gcc-13.patch | 103 ++++++++++++++++++
1 file changed, 103 insertions(+)
create mode 100644 package/kodi-inputstream-adaptive/0001-include-missing-cstdint-to-support-gcc-13.patch
diff --git a/package/kodi-inputstream-adaptive/0001-include-missing-cstdint-to-support-gcc-13.patch b/package/kodi-inputstream-adaptive/0001-include-missing-cstdint-to-support-gcc-13.patch
new file mode 100644
index 0000000000..ca4a363182
--- /dev/null
+++ b/package/kodi-inputstream-adaptive/0001-include-missing-cstdint-to-support-gcc-13.patch
@@ -0,0 +1,103 @@
+From 7b5c284e63c1d6327db7551a0646cffcbaf9410f Mon Sep 17 00:00:00 2001
+From: Rudi Heitbaum <rudi@heitbaum.com>
+Date: Wed, 26 Apr 2023 15:47:17 +0000
+Subject: [PATCH] include missing <cstdint> to support gcc-13
+
+gcc 13 moved some includes around and as a result <cstdint> is no longer transitively
+included [1]. Explicitly include it for uint{32,64}_t.
+
+[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
+
+Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+Upstream: https://github.com/xbmc/inputstream.adaptive/commit/7b5c284e63c1d6327db7551a0646cffcbaf9410f
+[Bernd: backported from Omega branch]
+---
+ src/Iaes_decrypter.h | 3 ++-
+ src/SSD_dll.h | 1 +
+ src/utils/FileUtils.h | 1 +
+ src/utils/PropertiesUtils.h | 1 +
+ src/utils/StringUtils.h | 1 +
+ src/utils/Utils.h | 1 +
+ src/utils/XMLUtils.h | 1 +
+ 7 files changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/src/Iaes_decrypter.h b/src/Iaes_decrypter.h
+index 7fdf6046d..da992be95 100644
+--- a/src/Iaes_decrypter.h
++++ b/src/Iaes_decrypter.h
+@@ -10,6 +10,7 @@
+
+ #include <bento4/Ap4Types.h>
+
++#include <cstdint>
+ #include <string>
+
+ class IAESDecrypter
+@@ -31,4 +32,4 @@ class IAESDecrypter
+
+ private:
+ std::string m_licenseKey;
+-};
+\ No newline at end of file
++};
+diff --git a/src/SSD_dll.h b/src/SSD_dll.h
+index 4b2b70c1a..d23fcbe45 100644
+--- a/src/SSD_dll.h
++++ b/src/SSD_dll.h
+@@ -8,6 +8,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <stdarg.h> // va_list, va_start, va_arg, va_end
+ #include <string_view>
+
+diff --git a/src/utils/FileUtils.h b/src/utils/FileUtils.h
+index 40745b0d4..0924d8ff7 100644
+--- a/src/utils/FileUtils.h
++++ b/src/utils/FileUtils.h
+@@ -8,6 +8,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <string>
+ #include <string_view>
+
+diff --git a/src/utils/PropertiesUtils.h b/src/utils/PropertiesUtils.h
+index dee3e0a16..a658b835c 100644
+--- a/src/utils/PropertiesUtils.h
++++ b/src/utils/PropertiesUtils.h
+@@ -8,6 +8,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <map>
+ #include <string>
+ #include <utility>
+diff --git a/src/utils/StringUtils.h b/src/utils/StringUtils.h
+index 3f841a274..f209546fa 100644
+--- a/src/utils/StringUtils.h
++++ b/src/utils/StringUtils.h
+@@ -8,6 +8,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <string>
+ #include <string_view>
+ #include <vector>
+diff --git a/src/utils/Utils.h b/src/utils/Utils.h
+index 4966ece63..472a328c4 100644
+--- a/src/utils/Utils.h
++++ b/src/utils/Utils.h
+@@ -8,6 +8,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <map>
+ #include <string>
+ #include <string_view>
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 11+ messages in thread* Re: [Buildroot] [PATCH 3/5] package/kodi-inputstream-adaptive: fix build with gcc-13
2023-05-07 21:43 ` [Buildroot] [PATCH 3/5] package/kodi-inputstream-adaptive: " Bernd Kuhls
@ 2023-07-29 21:59 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-07-29 21:59 UTC (permalink / raw)
To: Bernd Kuhls
Cc: Louis-Paul Cordier, Romain Naour, Giulio Benetti,
Thomas De Schampheleire, buildroot
On Sun, 7 May 2023 23:43:15 +0200
Bernd Kuhls <bernd.kuhls@t-online.de> wrote:
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> ...de-missing-cstdint-to-support-gcc-13.patch | 103 ++++++++++++++++++
> 1 file changed, 103 insertions(+)
> create mode 100644 package/kodi-inputstream-adaptive/0001-include-missing-cstdint-to-support-gcc-13.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 4/5] package/kodi-inputstream-ffmpeg: fix build with gcc-13
2023-05-07 21:43 [Buildroot] [PATCH 1/5] package/intel-mediasdk: fix build with gcc-13 Bernd Kuhls
2023-05-07 21:43 ` [Buildroot] [PATCH 2/5] package/kodi: " Bernd Kuhls
2023-05-07 21:43 ` [Buildroot] [PATCH 3/5] package/kodi-inputstream-adaptive: " Bernd Kuhls
@ 2023-05-07 21:43 ` Bernd Kuhls
2023-07-29 21:59 ` Thomas Petazzoni via buildroot
2023-05-07 21:43 ` [Buildroot] [PATCH 5/5] package/gcc: add support for gcc 13 Bernd Kuhls
2023-07-29 21:59 ` [Buildroot] [PATCH 1/5] package/intel-mediasdk: fix build with gcc-13 Thomas Petazzoni via buildroot
4 siblings, 1 reply; 11+ messages in thread
From: Bernd Kuhls @ 2023-05-07 21:43 UTC (permalink / raw)
To: buildroot
Cc: Louis-Paul Cordier, Romain Naour, Giulio Benetti,
Thomas Petazzoni, Thomas De Schampheleire
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
...de-missing-cstdint-to-support-gcc-13.patch | 49 +++++++++++++++++++
1 file changed, 49 insertions(+)
create mode 100644 package/kodi-inputstream-ffmpegdirect/0001-include-missing-cstdint-to-support-gcc-13.patch
diff --git a/package/kodi-inputstream-ffmpegdirect/0001-include-missing-cstdint-to-support-gcc-13.patch b/package/kodi-inputstream-ffmpegdirect/0001-include-missing-cstdint-to-support-gcc-13.patch
new file mode 100644
index 0000000000..65db2b4702
--- /dev/null
+++ b/package/kodi-inputstream-ffmpegdirect/0001-include-missing-cstdint-to-support-gcc-13.patch
@@ -0,0 +1,49 @@
+From fd7bd5ad86fd0006ad571a051fa5d5603a47e4b4 Mon Sep 17 00:00:00 2001
+From: Rudi Heitbaum <rudi@heitbaum.com>
+Date: Wed, 26 Apr 2023 17:15:00 +0000
+Subject: [PATCH] include missing <cstdint> to support gcc-13
+
+gcc 13 moved some includes around and as a result <cstdint> is no longer transitively
+included [1]. Explicitly include it for uint{32,64}_t.
+
+[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes
+
+Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+Upstream: https://github.com/xbmc/inputstream.ffmpegdirect/commit/fd7bd5ad86fd0006ad571a051fa5d5603a47e4b4
+---
+ src/utils/DiskUtils.h | 1 +
+ src/utils/HttpProxy.h | 3 ++-
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/utils/DiskUtils.h b/src/utils/DiskUtils.h
+index 79e34268..f900ec58 100644
+--- a/src/utils/DiskUtils.h
++++ b/src/utils/DiskUtils.h
+@@ -7,6 +7,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <string>
+
+ namespace ffmpegdirect
+diff --git a/src/utils/HttpProxy.h b/src/utils/HttpProxy.h
+index eb0c99cb..d203ce36 100644
+--- a/src/utils/HttpProxy.h
++++ b/src/utils/HttpProxy.h
+@@ -7,6 +7,7 @@
+
+ #pragma once
+
++#include <cstdint>
+ #include <string>
+
+ namespace ffmpegdirect
+@@ -36,4 +37,4 @@ namespace ffmpegdirect
+ std::string m_user;
+ std::string m_password;
+ };
+-} //namespace ffmpegdirect
+\ No newline at end of file
++} //namespace ffmpegdirect
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 11+ messages in thread* Re: [Buildroot] [PATCH 4/5] package/kodi-inputstream-ffmpeg: fix build with gcc-13
2023-05-07 21:43 ` [Buildroot] [PATCH 4/5] package/kodi-inputstream-ffmpeg: " Bernd Kuhls
@ 2023-07-29 21:59 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-07-29 21:59 UTC (permalink / raw)
To: Bernd Kuhls
Cc: Louis-Paul Cordier, Romain Naour, Giulio Benetti,
Thomas De Schampheleire, buildroot
On Sun, 7 May 2023 23:43:16 +0200
Bernd Kuhls <bernd.kuhls@t-online.de> wrote:
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> ...de-missing-cstdint-to-support-gcc-13.patch | 49 +++++++++++++++++++
> 1 file changed, 49 insertions(+)
> create mode 100644 package/kodi-inputstream-ffmpegdirect/0001-include-missing-cstdint-to-support-gcc-13.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 5/5] package/gcc: add support for gcc 13
2023-05-07 21:43 [Buildroot] [PATCH 1/5] package/intel-mediasdk: fix build with gcc-13 Bernd Kuhls
` (2 preceding siblings ...)
2023-05-07 21:43 ` [Buildroot] [PATCH 4/5] package/kodi-inputstream-ffmpeg: " Bernd Kuhls
@ 2023-05-07 21:43 ` Bernd Kuhls
2023-05-16 13:08 ` Bagas Sanjaya
2023-05-17 6:45 ` Bagas Sanjaya
2023-07-29 21:59 ` [Buildroot] [PATCH 1/5] package/intel-mediasdk: fix build with gcc-13 Thomas Petazzoni via buildroot
4 siblings, 2 replies; 11+ messages in thread
From: Bernd Kuhls @ 2023-05-07 21:43 UTC (permalink / raw)
To: buildroot
Cc: Louis-Paul Cordier, Romain Naour, Giulio Benetti,
Thomas Petazzoni, Thomas De Schampheleire
https://gcc.gnu.org/gcc-13/changes.html
https://gcc.gnu.org/gcc-13/porting_to.html
Patch 0002 was not ported from gcc-12 because it is included in this
version:
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ee4af2ed0b7322884ec4ff537564683c3749b813
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
.checkpackageignore | 2 +-
...le-split-stack-for-non-thread-builds.patch | 26 +++++++++++++++++++
package/gcc/Config.in.host | 14 ++++++++++
package/gcc/gcc.hash | 2 ++
toolchain/Config.in | 5 ++++
5 files changed, 48 insertions(+), 1 deletion(-)
create mode 100644 package/gcc/13.1.0/0001-disable-split-stack-for-non-thread-builds.patch
diff --git a/.checkpackageignore b/.checkpackageignore
index d5bd3cd4ab..bbef501933 100644
--- a/.checkpackageignore
+++ b/.checkpackageignore
@@ -1,4 +1,3 @@
-board/aarch64-efi/post-image.sh Shellcheck
board/amarula/vyasa/post-build.sh Shellcheck
board/andes/ae350/patches/uboot/0001-mmc-ftsdc010_mci-Support-DTS-of-ftsdc010-driver-for-.patch Upstream
board/andes/ae350/patches/uboot/0002-spl-Align-device-tree-blob-address-at-8-byte-boundar.patch Upstream
@@ -534,6 +533,7 @@ package/gcc/11.3.0/0005-rs6000-Improve-.machine.patch Upstream
package/gcc/11.3.0/0006-rs6000-Do-not-use-rs6000_cpu-for-.machine-ppc-and-pp.patch Upstream
package/gcc/12.2.0/0001-disable-split-stack-for-non-thread-builds.patch Upstream
package/gcc/12.2.0/0002-fix-condvar.patch Upstream
+package/gcc/13.1.0/0001-disable-split-stack-for-non-thread-builds.patch Upstream
package/gcc/8.4.0/0001-xtensa-fix-PR-target-91880.patch Upstream
package/gcc/8.4.0/0002-Revert-re-PR-target-92095-internal-error-with-O1-mcp.patch Upstream
package/gcc/8.4.0/0003-libsanitizer-Remove-cyclades-from-libsanitizer.patch Upstream
diff --git a/package/gcc/13.1.0/0001-disable-split-stack-for-non-thread-builds.patch b/package/gcc/13.1.0/0001-disable-split-stack-for-non-thread-builds.patch
new file mode 100644
index 0000000000..e801085dad
--- /dev/null
+++ b/package/gcc/13.1.0/0001-disable-split-stack-for-non-thread-builds.patch
@@ -0,0 +1,26 @@
+From 4f67134e0b1404fef4ea72342be8fab4c37ca8c8 Mon Sep 17 00:00:00 2001
+From: Waldemar Brodkorb <wbx@openadk.org>
+Date: Mon, 25 Jul 2022 00:29:55 +0200
+Subject: [PATCH] disable split-stack for non-thread builds
+
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+[Romain: convert to git format]
+Signed-off-by: Romain Naour <romain.naour@smile.fr>
+---
+ libgcc/config/t-stack | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/libgcc/config/t-stack b/libgcc/config/t-stack
+index cc0366b4cd8..f3f97e86d60 100644
+--- a/libgcc/config/t-stack
++++ b/libgcc/config/t-stack
+@@ -1,4 +1,6 @@
+ # Makefile fragment to provide generic support for -fsplit-stack.
+ # This should be used in config.host for any host which supports
+ # -fsplit-stack.
++ifeq ($(enable_threads),yes)
+ LIB2ADD_ST += $(srcdir)/generic-morestack.c $(srcdir)/generic-morestack-thread.c
++endif
+--
+2.34.3
+
diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host
index cd1b9fa46d..3beaaef309 100644
--- a/package/gcc/Config.in.host
+++ b/package/gcc/Config.in.host
@@ -59,6 +59,19 @@ config BR2_GCC_VERSION_12_X
depends on !BR2_archs4x_rel31
select BR2_TOOLCHAIN_GCC_AT_LEAST_12
+config BR2_GCC_VERSION_13_X
+ bool "gcc 13.x"
+ # powerpc spe support has been deprecated since gcc 8.x.
+ # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html
+ depends on !BR2_powerpc_SPE
+ # uClibc-ng broken on sparc due to recent gcc changes
+ # that need to be reverted since gcc 8.4, 9.3 and 10.1.
+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98784
+ depends on !BR2_sparc
+ # ARC HS48 rel 31 only supported by gcc arc fork.
+ depends on !BR2_archs4x_rel31
+ select BR2_TOOLCHAIN_GCC_AT_LEAST_13
+
endchoice
# libcilkrts was introduced in gcc 4.9 and removed in gcc 8.x
@@ -89,6 +102,7 @@ config BR2_GCC_VERSION
default "10.4.0" if BR2_GCC_VERSION_10_X
default "11.3.0" if BR2_GCC_VERSION_11_X
default "12.2.0" if BR2_GCC_VERSION_12_X
+ default "13.1.0" if BR2_GCC_VERSION_13_X
default "arc-2020.09-release" if BR2_GCC_VERSION_ARC
config BR2_EXTRA_GCC_CONFIG_OPTIONS
diff --git a/package/gcc/gcc.hash b/package/gcc/gcc.hash
index 666124fa6d..d324852bdd 100644
--- a/package/gcc/gcc.hash
+++ b/package/gcc/gcc.hash
@@ -6,6 +6,8 @@ sha512 440c08ca746da450d9a1b35e8fd2305cb27e7e6987cd9d0f7d375f3b1fc9e4b0bd7acb3c
sha512 f0be5ad705c73b84477128a69c047f57dd47002f375eb60e1e842e08cf2009a509e92152bca345823926d550b7395ae6d4de7db51d1ee371c2dc37313881fca7 gcc-11.3.0.tar.xz
# From https://gcc.gnu.org/pub/gcc/releases/gcc-12.2.0/sha512.sum
sha512 e9e857bd81bf7a370307d6848c81b2f5403db8c7b5207f54bce3f3faac3bde63445684092c2bc1a2427cddb6f7746496d9fbbef05fbbd77f2810b2998f1f9173 gcc-12.2.0.tar.xz
+# From https://gcc.gnu.org/pub/gcc/releases/gcc-13.1.0/sha512.sum
+sha512 6cf06dfc48f57f5e67f7efe3248019329a14d690c728d9f2f7ef5fa0d58f1816f309586ba7ea2eac20d0b60a2d1b701f68392e9067dd46f827ba0efd7192db33 gcc-13.1.0.tar.xz
# Locally calculated (fetched from Github)
sha512 b0853e2b1c5998044392023fa653e399e74118c46e616504ac59e1a2cf27620f94434767ce06b6cf4ca3dfb57f81d6eda92752befaf095ea5e564a9181b4659c gcc-arc-2020.09-release.tar.gz
diff --git a/toolchain/Config.in b/toolchain/Config.in
index ff0eb93017..3f0eec3cfd 100644
--- a/toolchain/Config.in
+++ b/toolchain/Config.in
@@ -747,10 +747,15 @@ config BR2_TOOLCHAIN_GCC_AT_LEAST_12
bool
select BR2_TOOLCHAIN_GCC_AT_LEAST_11
+config BR2_TOOLCHAIN_GCC_AT_LEAST_13
+ bool
+ select BR2_TOOLCHAIN_GCC_AT_LEAST_12
+
# This order guarantees that the highest version is set, as kconfig
# stops affecting a value on the first matching default.
config BR2_TOOLCHAIN_GCC_AT_LEAST
string
+ default "13" if BR2_TOOLCHAIN_GCC_AT_LEAST_13
default "12" if BR2_TOOLCHAIN_GCC_AT_LEAST_12
default "11" if BR2_TOOLCHAIN_GCC_AT_LEAST_11
default "10" if BR2_TOOLCHAIN_GCC_AT_LEAST_10
--
2.39.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 11+ messages in thread* Re: [Buildroot] [PATCH 5/5] package/gcc: add support for gcc 13
2023-05-07 21:43 ` [Buildroot] [PATCH 5/5] package/gcc: add support for gcc 13 Bernd Kuhls
@ 2023-05-16 13:08 ` Bagas Sanjaya
2023-05-16 13:54 ` Romain Naour
2023-05-17 6:45 ` Bagas Sanjaya
1 sibling, 1 reply; 11+ messages in thread
From: Bagas Sanjaya @ 2023-05-16 13:08 UTC (permalink / raw)
To: Bernd Kuhls, buildroot
Cc: Louis-Paul Cordier, Romain Naour, Giulio Benetti,
Thomas Petazzoni, Thomas De Schampheleire
On Sun, May 07, 2023 at 11:43:17PM +0200, Bernd Kuhls wrote:
> https://gcc.gnu.org/gcc-13/changes.html
> https://gcc.gnu.org/gcc-13/porting_to.html
>
> Patch 0002 was not ported from gcc-12 because it is included in this
> version:
> https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ee4af2ed0b7322884ec4ff537564683c3749b813
>
Thanks for the bump! For completeness, especially for people using
Buildroot-generated toolchain as external one, you need to also allow
external GCC 13 toolchains (as separate patch of course):
---- >8 ----
From 0f12ea1536d8f1c081203bee64b9c8413cce3801 Mon Sep 17 00:00:00 2001
From: Bagas Sanjaya <bagasdotme@gmail.com>
Date: Tue, 16 May 2023 20:03:58 +0700
Subject: [PATCH] toolchain-external: Support GCC 13
Support external toolchains using GCC 13.x.
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
.../toolchain-external-custom/Config.in.options | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
index 0fd8841e5b..4da07566d8 100644
--- a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
+++ b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
@@ -31,6 +31,10 @@ choice
Set to the gcc version that is used by your external
toolchain.
+config BR2_TOOLCHAIN_EXTERNAL_GCC_13
+ bool "13.x"
+ select BR2_TOOLCHAIN_GCC_AT_LEAST_13
+
config BR2_TOOLCHAIN_EXTERNAL_GCC_12
bool "12.x"
select BR2_TOOLCHAIN_GCC_AT_LEAST_12
--
An old man doll... just what I always wanted! - Clara
Thanks.
--
An old man doll... just what I always wanted! - Clara
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [Buildroot] [PATCH 5/5] package/gcc: add support for gcc 13
2023-05-16 13:08 ` Bagas Sanjaya
@ 2023-05-16 13:54 ` Romain Naour
0 siblings, 0 replies; 11+ messages in thread
From: Romain Naour @ 2023-05-16 13:54 UTC (permalink / raw)
To: Bagas Sanjaya, Bernd Kuhls, buildroot
Cc: Louis-Paul Cordier, Romain Naour, Giulio Benetti,
Thomas Petazzoni, Thomas De Schampheleire
Hello Bernd,
Le 16/05/2023 à 15:08, Bagas Sanjaya a écrit :
> On Sun, May 07, 2023 at 11:43:17PM +0200, Bernd Kuhls wrote:
>> https://gcc.gnu.org/gcc-13/changes.html
>> https://gcc.gnu.org/gcc-13/porting_to.html
>>
>> Patch 0002 was not ported from gcc-12 because it is included in this
>> version:
>> https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ee4af2ed0b7322884ec4ff537564683c3749b813
>>
>
> Thanks for the bump! For completeness, especially for people using
> Buildroot-generated toolchain as external one, you need to also allow
> external GCC 13 toolchains (as separate patch of course):
I had a pending patch series for gcc 13.1 bump with splited commits.
Also I found an issue on RISCV I fixed.
Note: the elf2flt is broken and I don't have the time to look at the issue.
I hope this help.
https://gitlab.com/buildroot.org/toolchains-builder/-/pipelines/852950911
Best regards,
Romain
>
> ---- >8 ----
> From 0f12ea1536d8f1c081203bee64b9c8413cce3801 Mon Sep 17 00:00:00 2001
> From: Bagas Sanjaya <bagasdotme@gmail.com>
> Date: Tue, 16 May 2023 20:03:58 +0700
> Subject: [PATCH] toolchain-external: Support GCC 13
>
> Support external toolchains using GCC 13.x.
>
> Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
> ---
> .../toolchain-external-custom/Config.in.options | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
> index 0fd8841e5b..4da07566d8 100644
> --- a/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
> +++ b/toolchain/toolchain-external/toolchain-external-custom/Config.in.options
> @@ -31,6 +31,10 @@ choice
> Set to the gcc version that is used by your external
> toolchain.
>
> +config BR2_TOOLCHAIN_EXTERNAL_GCC_13
> + bool "13.x"
> + select BR2_TOOLCHAIN_GCC_AT_LEAST_13
> +
> config BR2_TOOLCHAIN_EXTERNAL_GCC_12
> bool "12.x"
> select BR2_TOOLCHAIN_GCC_AT_LEAST_12
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Buildroot] [PATCH 5/5] package/gcc: add support for gcc 13
2023-05-07 21:43 ` [Buildroot] [PATCH 5/5] package/gcc: add support for gcc 13 Bernd Kuhls
2023-05-16 13:08 ` Bagas Sanjaya
@ 2023-05-17 6:45 ` Bagas Sanjaya
1 sibling, 0 replies; 11+ messages in thread
From: Bagas Sanjaya @ 2023-05-17 6:45 UTC (permalink / raw)
To: Bernd Kuhls, buildroot
Cc: Louis-Paul Cordier, Romain Naour, Giulio Benetti,
Thomas Petazzoni, Thomas De Schampheleire
[-- Attachment #1.1: Type: text/plain, Size: 533 bytes --]
On Sun, May 07, 2023 at 11:43:17PM +0200, Bernd Kuhls wrote:
> https://gcc.gnu.org/gcc-13/changes.html
> https://gcc.gnu.org/gcc-13/porting_to.html
>
> Patch 0002 was not ported from gcc-12 because it is included in this
> version:
> https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=ee4af2ed0b7322884ec4ff537564683c3749b813
>
Toolchain successfully built and so is package/git with the toolchain,
thanks!
Tested-by: Bagas Sanjaya <bagasdotme@gmail.com>
--
An old man doll... just what I always wanted! - Clara
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Buildroot] [PATCH 1/5] package/intel-mediasdk: fix build with gcc-13
2023-05-07 21:43 [Buildroot] [PATCH 1/5] package/intel-mediasdk: fix build with gcc-13 Bernd Kuhls
` (3 preceding siblings ...)
2023-05-07 21:43 ` [Buildroot] [PATCH 5/5] package/gcc: add support for gcc 13 Bernd Kuhls
@ 2023-07-29 21:59 ` Thomas Petazzoni via buildroot
4 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-07-29 21:59 UTC (permalink / raw)
To: Bernd Kuhls
Cc: Louis-Paul Cordier, Romain Naour, Giulio Benetti,
Thomas De Schampheleire, buildroot
On Sun, 7 May 2023 23:43:13 +0200
Bernd Kuhls <bernd.kuhls@t-online.de> wrote:
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> ...dd-missing-stdint.h-to-mfxparser-cpp.patch | 31 +++++++++++++++++++
> 1 file changed, 31 insertions(+)
> create mode 100644 package/intel-mediasdk/0002-add-missing-stdint.h-to-mfxparser-cpp.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 11+ messages in thread