diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2021-04-29 13:36:15 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2021-05-10 12:48:53 +0200 |
commit | 6a37d8646d65ab225bfd4a9e6e4646556fa98f44 (patch) | |
tree | 5288f5a36371123b0ba3d6755ad4c426f7c921ad /recipes-qt/qt5/qtwebengine | |
parent | ad1d10ae5898ff761334754cb4266dde9ec9a5a7 (diff) | |
download | meta-qt5-6a37d8646d65ab225bfd4a9e6e4646556fa98f44.tar.gz |
qtwebengine: few more fixes for gcc-11upstream/jansa/chromium-87
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtwebengine')
-rw-r--r-- | recipes-qt/qt5/qtwebengine/chromium/0011-chromium-abseil-cpp-mojo-perfetto-fix-build-with-gcc.patch (renamed from recipes-qt/qt5/qtwebengine/chromium/0011-chromium-abseil-cpp-perfetto-fix-build-with-gcc-11.patch) | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0011-chromium-abseil-cpp-perfetto-fix-build-with-gcc-11.patch b/recipes-qt/qt5/qtwebengine/chromium/0011-chromium-abseil-cpp-mojo-perfetto-fix-build-with-gcc.patch index 9388c767..27b3d7d2 100644 --- a/recipes-qt/qt5/qtwebengine/chromium/0011-chromium-abseil-cpp-perfetto-fix-build-with-gcc-11.patch +++ b/recipes-qt/qt5/qtwebengine/chromium/0011-chromium-abseil-cpp-mojo-perfetto-fix-build-with-gcc.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 504691a6e2ab928115cde1f6163661158151636b Mon Sep 17 00:00:00 2001 | 1 | From c6ff2c26ae6a1c7cde6685a697d8dafc6e2d2694 Mon Sep 17 00:00:00 2001 |
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | 2 | From: Martin Jansa <Martin.Jansa@gmail.com> |
3 | Date: Thu, 29 Apr 2021 11:11:51 +0200 | 3 | Date: Thu, 29 Apr 2021 11:11:51 +0200 |
4 | Subject: [PATCH] chromium: abseil-cpp, perfetto: fix build with gcc-11 | 4 | Subject: [PATCH] chromium: abseil-cpp, mojo, perfetto: fix build with gcc-11 |
5 | 5 | ||
6 | * fixes abseil-cpp: | 6 | * fixes abseil-cpp: |
7 | FAILED: obj/third_party/abseil-cpp/absl/synchronization/graphcycles_internal/graphcycles.o | 7 | FAILED: obj/third_party/abseil-cpp/absl/synchronization/graphcycles_internal/graphcycles.o |
@@ -18,6 +18,18 @@ FAILED: obj/third_party/abseil-cpp/absl/synchronization/graphcycles_internal/gra | |||
18 | | ^~~ | 18 | | ^~~ |
19 | | std::max | 19 | | std::max |
20 | 20 | ||
21 | * mojo: | ||
22 | | FAILED: obj/mojo/public/cpp/platform/platform/named_platform_channel_posix.o | ||
23 | | /OE/build/oe-core/tmp-musl/work/core2-64-oe-linux-musl/qtwebengine/5.15.4+gitAUTOINC+be49f438d6_6c7b4ffb3f-r0/recipe-sysroot-native/usr/bin/x86_64-oe-linux-musl/x86_64-oe-linux-musl-g++ -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 --sysroot=/OE/build/oe-core/tmp-musl/work/core2-64-oe-linux-musl/qtwebengine/5.15.4+gitAUTOINC+be49f438d6_6c7b4ffb3f-r0/recipe-sysroot -MMD -MF obj/mojo/public/cpp/platform/platform/named_platform_channel_posix.o.d -DIS_MOJO_CPP_PLATFORM_IMPL -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DCR_SYSROOT_HASH=5f64b417e1018dcf8fcc81dc2714e0f264b9b911 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -I../../../../git/src/3rdparty/chromium -I../../../../git/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen -I../../../../git/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../git/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../git/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -m64 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -fvisibility=hidden -std=gnu++14 -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -fno-exceptions -fno-rtti --sysroot=../../../../recipe-sysroot -fvisibility-inlines-hidden -c ../../../../git/src/3rdparty/chromium/mojo/public/cpp/platform/named_platform_channel_posix.cc -o obj/mojo/public/cpp/platform/platform/named_platform_channel_posix.o | ||
24 | | ../../../../git/src/3rdparty/chromium/mojo/public/cpp/platform/named_platform_channel_posix.cc: In function 'bool mojo::{anonymous}::MakeUnixAddr(const ServerName&, sockaddr_un*, size_t*)': | ||
25 | | ../../../../git/src/3rdparty/chromium/mojo/public/cpp/platform/named_platform_channel_posix.cc:53:3: error: 'strncpy' was not declared in this scope | ||
26 | | 53 | strncpy(unix_addr->sun_path, server_name.c_str(), kMaxSocketNameLength); | ||
27 | | | ^~~~~~~ | ||
28 | | ../../../../git/src/3rdparty/chromium/mojo/public/cpp/platform/named_platform_channel_posix.cc:18:1: note: 'strncpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'? | ||
29 | | 17 | #include "base/strings/string_number_conversions.h" | ||
30 | | +++ |+#include <cstring> | ||
31 | | 18 | | ||
32 | |||
21 | * and perfetto: | 33 | * and perfetto: |
22 | ../../../../git/src/3rdparty/chromium/third_party/perfetto/src/trace_processor/containers/string_pool.h:256:34: error: no member named 'numeric_limits' in namespace 'std' | 34 | ../../../../git/src/3rdparty/chromium/third_party/perfetto/src/trace_processor/containers/string_pool.h:256:34: error: no member named 'numeric_limits' in namespace 'std' |
23 | PERFETTO_DCHECK(value < std::numeric_limits<uint32_t>::max()); | 35 | PERFETTO_DCHECK(value < std::numeric_limits<uint32_t>::max()); |
@@ -29,10 +41,23 @@ Upstream-Status: Pending | |||
29 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 41 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
30 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | 42 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
31 | --- | 43 | --- |
44 | .../mojo/public/cpp/platform/named_platform_channel_posix.cc | 1 + | ||
32 | .../abseil-cpp/absl/synchronization/internal/graphcycles.cc | 1 + | 45 | .../abseil-cpp/absl/synchronization/internal/graphcycles.cc | 1 + |
33 | .../perfetto/src/trace_processor/containers/string_pool.h | 1 + | 46 | .../perfetto/src/trace_processor/containers/string_pool.h | 1 + |
34 | 2 files changed, 2 insertions(+) | 47 | 3 files changed, 3 insertions(+) |
35 | 48 | ||
49 | diff --git a/chromium/mojo/public/cpp/platform/named_platform_channel_posix.cc b/chromium/mojo/public/cpp/platform/named_platform_channel_posix.cc | ||
50 | index 9082ac4da59..d039ff83a35 100644 | ||
51 | --- a/chromium/mojo/public/cpp/platform/named_platform_channel_posix.cc | ||
52 | +++ b/chromium/mojo/public/cpp/platform/named_platform_channel_posix.cc | ||
53 | @@ -8,6 +8,7 @@ | ||
54 | #include <sys/socket.h> | ||
55 | #include <sys/un.h> | ||
56 | #include <unistd.h> | ||
57 | +#include <string.h> | ||
58 | |||
59 | #include "base/files/file_util.h" | ||
60 | #include "base/files/scoped_file.h" | ||
36 | diff --git a/chromium/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc b/chromium/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc | 61 | diff --git a/chromium/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc b/chromium/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc |
37 | index 19f9aab5b1a..ab9d7f80bc7 100644 | 62 | index 19f9aab5b1a..ab9d7f80bc7 100644 |
38 | --- a/chromium/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc | 63 | --- a/chromium/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc |