Skip to contentSkip to conversation

package/webrtc-audio-processing: fix build with GCC 15.x

PATCH In review Thomas Petazzoni via buildroot 2 participants 2 messages Aug 29, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/webrtc-audio-processing: fix build with GCC 15.x

A missing include causes a build failure with GCC 15.x. There are no known autobuilder failures for this issue, but the following defconfig allows to reproduce the issue:

BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_WEBRTC_AUDIO_PROCESSING=y
# BR2_TARGET_ROOTFS_TAR is not set

The affected code has completely changed in newer versions of webrtc-audio-processing, so we add a non-upstream patch, which can be dropped once we upgrade to a newer release.

---
 ...queue-task_queue_base.h-include-cstd.patch | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 package/webrtc-audio-processing/0001-webrtc-api-task_queue-task_queue_base.h-include-cstd.patch
package/webrtc-audio-processing/0001-webrtc-api-task_queue-task_queue_base.h-include-cstd.patch new file +29 -0
new file mode 100644
index 0000000000..db253d1dd8
@@ -0,0 +1,29 @@
+From 9b59846b4f9a723743532f26c344d84084b7af96 Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <[email protected]>
+Date: Fri, 29 Aug 2025 07:31:50 +0200
+Subject: [PATCH] webrtc/api/task_queue/task_queue_base.h: include <cstdint>
+ for uint32_t
+
+This is needed since GCC 15.x.
+
+Upstream: not applicable, code has completely changed in latest versions
+Signed-off-by: Thomas Petazzoni <[email protected]>
+---
+ webrtc/api/task_queue/task_queue_base.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/webrtc/api/task_queue/task_queue_base.h b/webrtc/api/task_queue/task_queue_base.h
+index 90b1efd..7403ee9 100644
+--- a/webrtc/api/task_queue/task_queue_base.h
++++ b/webrtc/api/task_queue/task_queue_base.h
+@@ -11,6 +11,7 @@
+ #define API_TASK_QUEUE_TASK_QUEUE_BASE_H_
+ 
+ #include <memory>
++#include <cstdint>
+ 
+ #include "api/task_queue/queued_task.h"
+ #include "rtc_base/system/rtc_export.h"
+-- 
+2.50.1
+
Signature · 6 lines
2.50.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni via buildroot <[email protected]> writes:

A missing include causes a build failure with GCC 15.x. There are no known autobuilder failures for this issue, but the following defconfig allows to reproduce the issue:

BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_WEBRTC_AUDIO_PROCESSING=y
# BR2_TARGET_ROOTFS_TAR is not set

Quoted 5 lines

The affected code has completely changed in newer versions of webrtc-audio-processing, so we add a non-upstream patch, which can be dropped once we upgrade to a newer release.

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot