Skip to content

Commit 3ae42a6

Browse files
committed
firefox: fix build with gcc-11
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
1 parent 1208b4f commit 3ae42a6

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
From 336a80c4ccb43b7f175918744984be164e84008d Mon Sep 17 00:00:00 2001
2+
From: Martin Jansa <Martin.Jansa@gmail.com>
3+
Date: Thu, 2 Sep 2021 15:00:39 +0200
4+
Subject: [PATCH] Fix build with gcc-11
5+
6+
Fixes:
7+
8+
0:26.15 /OE/build/test-oe-build-time/poky/build/tmp/work/core2-64-poky-linux/firefox/68.9.0esr-r0/firefox-68.9.0/toolkit/components/telemetry/other/ProcessedStack.cpp:120:41: error: no member named 'numeric_limits' in namespace 'std'
9+
0:26.15 rawStack[stackIndex].mPC = std::numeric_limits<uintptr_t>::max();
10+
0:26.15 ~~~~~^
11+
0:26.15 /OE/build/test-oe-build-time/poky/build/tmp/work/core2-64-poky-linux/firefox/68.9.0esr-r0/firefox-68.9.0/toolkit/components/telemetry/other/ProcessedStack.cpp:120:56: error: unexpected type name 'uintptr_t': expected expression
12+
0:26.15 rawStack[stackIndex].mPC = std::numeric_limits<uintptr_t>::max();
13+
0:26.15 ^
14+
0:26.17 /OE/build/test-oe-build-time/poky/build/tmp/work/core2-64-poky-linux/firefox/68.9.0esr-r0/firefox-68.9.0/toolkit/components/telemetry/other/ProcessedStack.cpp:120:68: error: no member named 'max' in the global namespace
15+
0:26.17 rawStack[stackIndex].mPC = std::numeric_limits<uintptr_t>::max();
16+
0:26.17 ~~^
17+
0:26.17 /OE/build/test-oe-build-time/poky/build/tmp/work/core2-64-poky-linux/firefox/68.9.0esr-r0/firefox-68.9.0/toolkit/components/telemetry/other/ProcessedStack.cpp:134:37: error: no member named 'numeric_limits' in namespace 'std'
18+
0:26.17 rawStack[stackIndex].mPC = std::numeric_limits<uintptr_t>::max();
19+
0:26.17 ~~~~~^
20+
0:26.17 /OE/build/test-oe-build-time/poky/build/tmp/work/core2-64-poky-linux/firefox/68.9.0esr-r0/firefox-68.9.0/toolkit/components/telemetry/other/ProcessedStack.cpp:134:52: error: unexpected type name 'uintptr_t': expected expression
21+
0:26.17 rawStack[stackIndex].mPC = std::numeric_limits<uintptr_t>::max();
22+
0:26.17 ^
23+
0:26.18 /OE/build/test-oe-build-time/poky/build/tmp/work/core2-64-poky-linux/firefox/68.9.0esr-r0/firefox-68.9.0/toolkit/components/telemetry/other/ProcessedStack.cpp:134:64: error: no member named 'max' in the global namespace
24+
0:26.18 rawStack[stackIndex].mPC = std::numeric_limits<uintptr_t>::max();
25+
0:26.18 ~~^
26+
27+
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
28+
---
29+
toolkit/components/telemetry/other/ProcessedStack.cpp | 1 +
30+
1 file changed, 1 insertion(+)
31+
32+
diff --git a/toolkit/components/telemetry/other/ProcessedStack.cpp b/toolkit/components/telemetry/other/ProcessedStack.cpp
33+
index 148437b75a..fd53708c25 100644
34+
--- a/toolkit/components/telemetry/other/ProcessedStack.cpp
35+
+++ b/toolkit/components/telemetry/other/ProcessedStack.cpp
36+
@@ -5,6 +5,7 @@
37+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
38+
39+
#include "ProcessedStack.h"
40+
+#include <limits>
41+
42+
namespace {
43+

meta-firefox/recipes-browser/firefox/firefox_68.9.0esr.bb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ SRC_URI = "https://ftp.mozilla.org/pub/firefox/releases/${PV}/source/firefox-${P
3333
file://fixes/0001-Bug-1721326-Fix-build-with-glibc-2.34.patch \
3434
file://fixes/0002-security-Fix-build-with-glibc-2.34.patch \
3535
file://fixes/0003-Fix-build-with-Werror-Wunused-but-set-variable.patch \
36+
file://fixes/0004-Fix-build-with-gcc-11.patch \
3637
file://porting/Add-xptcall-support-for-SH4-processors.patch \
3738
file://porting/NSS-Fix-FTBFS-on-Hurd-because-of-MAXPATHLEN.patch \
3839
file://porting/Work-around-Debian-bug-844357.patch \

0 commit comments

Comments
 (0)