package/qt5/qt5base: enable ccache via configure option
PATCH v8 1/5 package/qt5/qt5base: enable ccache via configure option
This should be cleaner than editing mkspecs/common/g++-base.conf.
This should be more reliable with qt5webengine gn build system.
---
Changes v6 -> v7:
- remove QT5BASE_CONFIGURE_HOSTCC variable
--- package/qt5/qt5base/qt5base.mk | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
package/qt5/qt5base/qt5base.mk +3 -5
@@ -297,10 +297,9 @@ endef endif # This allows to use ccache when available -define QT5BASE_CONFIGURE_HOSTCC - $(SED) 's,^QMAKE_CC\s*=.*,QMAKE_CC = $(HOSTCC),' $(@D)/mkspecs/common/g++-base.conf - $(SED) 's,^QMAKE_CXX\s*=.*,QMAKE_CXX = $(HOSTCXX),' $(@D)/mkspecs/common/g++-base.conf -endef +ifeq ($(BR2_CCACHE),y) +QT5BASE_CONFIGURE_OPTS += -ccache +endif # Must be last so can override all options set by Buildroot QT5BASE_CONFIGURE_OPTS += $(call qstrip,$(BR2_PACKAGE_QT5BASE_CUSTOM_CONF_OPTS))
@@ -316,7 +315,6 @@ define QT5BASE_CONFIGURE_CMDS touch $(QT5BASE_ARCH_CONFIG_FILE) $(QT5BASE_CONFIGURE_ARCH_CONFIG_LIBATOMIC) $(QT5BASE_CONFIGURE_ARCH_CONFIG_LIBEXECINFO) - $(QT5BASE_CONFIGURE_HOSTCC) (cd $(@D); \ $(TARGET_MAKE_ENV) \ PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 2/5 package/qt5/qt5webengine-chromium-catapult: new package
This version of catapult is python3 compatible and will be used to replace the python2 only version in qt5webengine-chromium.
---
Changes v2 -> v3:
- add kconfig entry
--- package/qt5/Config.in | 1 + .../qt5/qt5webengine-chromium-catapult/Config.in | 4 ++++ .../qt5webengine-chromium-catapult.hash | 3 +++ .../qt5webengine-chromium-catapult.mk | 14 ++++++++++++++ 4 files changed, 22 insertions(+) create mode 100644 package/qt5/qt5webengine-chromium-catapult/Config.in create mode 100644 package/qt5/qt5webengine-chromium-catapult/qt5webengine-chromium-catapult.hash create mode 100644 package/qt5/qt5webengine-chromium-catapult/qt5webengine-chromium-catapult.mk
package/qt5/Config.in +1 -0
@@ -68,6 +68,7 @@ source "package/qt5/qt5wayland/Config.in" source "package/qt5/qt5webchannel/Config.in" source "package/qt5/qt5webkit/Config.in" source "package/qt5/qt5webengine/Config.in" +source "package/qt5/qt5webengine-chromium-catapult/Config.in" source "package/qt5/qt5websockets/Config.in" source "package/qt5/qt5webview/Config.in" source "package/qt5/qt5x11extras/Config.in"
package/qt5/qt5webengine-chromium-catapult/Config.in new file +4 -0
@@ -0,0 +1,4 @@ +# Not user-selectable, it is only needed to be copied +# into the chromium source tree. +config BR2_PACKAGE_QT5WEBENGINE_CHROMIUM_CATAPULT + bool
package/qt5/qt5webengine-chromium-catapult/qt5webengine-chromium-catapult.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally calculated +sha256 66b8593e665c4236f7b1c487548d41d3826eddbf486ff985dbdfd01cddcaa1a8 qt5webengine-chromium-catapult-5eedfe23148a234211ba477f76fc2ea2e8529189-br1.tar.gz +sha256 f0df289ba9d03d857ad1c2f5918861376b1510b71588ffc60eff5c7a7bfedb09 LICENSE
package/qt5/qt5webengine-chromium-catapult/qt5webengine-chromium-catapult.mk new file +14 -0
@@ -0,0 +1,14 @@ +################################################################################ +# +# qt5webengine-chromium-catapult +# +################################################################################ + +QT5WEBENGINE_CHROMIUM_CATAPULT_VERSION = 5eedfe23148a234211ba477f76fc2ea2e8529189 +QT5WEBENGINE_CHROMIUM_CATAPULT_SITE = https://chromium.googlesource.com/catapult.git +QT5WEBENGINE_CHROMIUM_CATAPULT_SITE_METHOD = git +QT5WEBENGINE_CHROMIUM_CATAPULT_LICENSE = BSD-3-Clause +QT5WEBENGINE_CHROMIUM_CATAPULT_LICENSE_FILES = LICENSE +QT5WEBENGINE_CHROMIUM_CATAPULT_INSTALL_TARGET = NO + +$(eval $(generic-package))
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 2/5] package/qt5/qt5webengine-chromium-catapult: new package
Quoted 7 lines · James Hilliard
This version of catapult is python3 compatible and will be used to replace the python2 only version in qt5webengine-chromium.
Signed-off-by James Hilliard <[email protected]>---
Changes v2 -> v3:
- add kconfig entry
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 2/5] package/qt5/qt5webengine-chromium-catapult: new package
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
Quoted 6 lines · James Hilliard
This version of catapult is python3 compatible and will be used to replace the python2 only version in qt5webengine-chromium.
Signed-off-by James Hilliard <[email protected]>---
Changes v2 -> v3:
- add kconfig entryCommitted, thanks.
Committed to 2022.02.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 3/5 package/qt5/qt5webengine-chromium: new package
In reply to James HilliardWe need to add a separate package for the chromium submodule so that we can apply patches for python3 support to it and replace catapult with a python3 compatible version.
--- package/qt5/Config.in | 1 + .../0001-Add-python3-build-support.patch | 1858 +++++++++++++++++ .../0002-Don-t-rebase-sysroot-path.patch | 32 + package/qt5/qt5webengine-chromium/Config.in | 5 + .../qt5webengine-chromium/chromium-latest.inc | 1257 +++++++++++ .../qt5webengine-chromium.hash | 1256 +++++++++++ .../qt5webengine-chromium.mk | 23 + 7 files changed, 4432 insertions(+) create mode 100644 package/qt5/qt5webengine-chromium/0001-Add-python3-build-support.patch create mode 100644 package/qt5/qt5webengine-chromium/0002-Don-t-rebase-sysroot-path.patch create mode 100644 package/qt5/qt5webengine-chromium/Config.in create mode 100644 package/qt5/qt5webengine-chromium/chromium-latest.inc create mode 100644 package/qt5/qt5webengine-chromium/qt5webengine-chromium.hash create mode 100644 package/qt5/qt5webengine-chromium/qt5webengine-chromium.mk
package/qt5/Config.in +1 -0
@@ -68,6 +68,7 @@ source "package/qt5/qt5wayland/Config.in" source "package/qt5/qt5webchannel/Config.in" source "package/qt5/qt5webkit/Config.in" source "package/qt5/qt5webengine/Config.in" +source "package/qt5/qt5webengine-chromium/Config.in" source "package/qt5/qt5webengine-chromium-catapult/Config.in" source "package/qt5/qt5websockets/Config.in" source "package/qt5/qt5webview/Config.in"
package/qt5/qt5webengine-chromium/0001-Add-python3-build-support.patch new file +1858 -0
1,858 lines not on this page · raw message
package/qt5/qt5webengine-chromium/0002-Don-t-rebase-sysroot-path.patch new file +32 -0
@@ -0,0 +1,32 @@ +From bfc520671693587a0b81842018326da35aa97f80 Mon Sep 17 00:00:00 2001 +From: James Hilliard <[email protected]> +Date: Thu, 3 Feb 2022 20:41:08 -0700 +Subject: [PATCH] Don't rebase sysroot path + +Just use the actual sysroot as rebase_path will generate an invalid +sysroot path. + +Fixes: +/home/buildroot/buildroot/output/per-package/qt5webengine/host/opt/ext-toolchain/bin/../lib/gcc/aarch64-buildroot-linux-gnu/10.3.0/../../../../aarch64-buildroot-linux-gnu/bin/ld: cannot find crti.o: No such file or directory + +Signed-off-by: James Hilliard <[email protected]> +--- + chromium/build/config/posix/BUILD.gn | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/chromium/build/config/posix/BUILD.gn b/chromium/build/config/posix/BUILD.gn +index e61554c5656..dc957225869 100644 +--- a/chromium/build/config/posix/BUILD.gn ++++ b/chromium/build/config/posix/BUILD.gn +@@ -27,7 +27,7 @@ config("runtime_library") { + + if (!is_apple && sysroot != "") { + # Pass the sysroot to all C compiler variants, the assembler, and linker. +- sysroot_flags = [ "--sysroot=" + rebase_path(sysroot, root_build_dir) ] ++ sysroot_flags = [ "--sysroot=" + sysroot ] + if (is_linux || is_chromeos) { + # This is here so that all files get recompiled after a sysroot roll and + # when turning the sysroot on or off. (defines are passed via the command +-- +2.25.1 +
package/qt5/qt5webengine-chromium/Config.in new file +5 -0
@@ -0,0 +1,5 @@ +# Not user-selectable, it is only needed to be copied +# into the qt5webengine source tree. +config BR2_PACKAGE_QT5WEBENGINE_CHROMIUM + bool + select BR2_PACKAGE_QT5WEBENGINE_CHROMIUM_CATAPULT
package/qt5/qt5webengine-chromium/chromium-latest.inc new file +1257 -0
1,098 lines not on this page · raw message
package/qt5/qt5webengine-chromium/qt5webengine-chromium.hash new file +1256 -0
1,256 lines not on this page · raw message
package/qt5/qt5webengine-chromium/qt5webengine-chromium.mk new file +23 -0
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 7 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Part of the diff is not shown here. View the raw message.
Re: [Buildroot] [PATCH v8 3/5] package/qt5/qt5webengine-chromium: new package
Quoted 5 lines · James Hilliard
We need to add a separate package for the chromium submodule so that we can apply patches for python3 support to it and replace catapult with a python3 compatible version.
Signed-off-by James Hilliard <[email protected]>
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 3/5] package/qt5/qt5webengine-chromium: new package
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
Quoted 4 lines · James Hilliard
We need to add a separate package for the chromium submodule so that we can apply patches for python3 support to it and replace catapult with a python3 compatible version.
Signed-off-by James Hilliard <[email protected]>Committed, thanks.
Committed to 2022.02.x, thanks.
Quoted 6 lines
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 4/5 package/qt5/qt5base: disable broken qmake sysrootify
In reply to James HilliardCurrently the qmake gcc sysrootify path logic causes issues with per-package directories, disable automatic gcc sysroot for qt5base install and override all qt.conf paths manually to point to their correct locations.
Redirect HostData to STAGING_DIR as mkspecs need to be available there instead of the HOST_DIR for cross compilation to work.
Improves pkg-config target/host separation.
---
Changes v5 -> v6:
- rebase/rework with qt5webengine bump
Changes v4 -> v5:
- rework qt5webengine config to use feature flags
- try to fix more random breakage
Changes v3 -> v4:
- fix target pkg-config path mangling
Changes v2 -> v3:
- set target pkg-config path
Changes v1 -> v2:
- add some missing overrides to qt.conf.in
--- package/qt5/qt5base/qt.conf.in | 21 ++++++++++++++++++--- package/qt5/qt5base/qt5base.mk | 5 ++++- 2 files changed, 22 insertions(+), 4 deletions(-)
package/qt5/qt5base/qt.conf.in +18 -3
@@ -2,6 +2,21 @@ Prefix=/usr HostPrefix=@@HOST_DIR@@ Sysroot=@@STAGING_DIR@@ -Headers=/usr/include/qt5 -Plugins=/usr/lib/qt/plugins -Examples=/usr/lib/qt/examples +SysrootifyPrefix=false +Binaries=@@STAGING_DIR@@/usr/bin +Libraries=@@STAGING_DIR@@/usr/lib +Headers=@@STAGING_DIR@@/usr/include/qt5 +Plugins=@@STAGING_DIR@@/usr/lib/qt/plugins +Examples=@@STAGING_DIR@@/usr/lib/qt/examples +Tests=@@STAGING_DIR@@/usr/lib/qt/tests +Data=@@STAGING_DIR@@ +Translations=@@STAGING_DIR@@/translations +Documentation=@@STAGING_DIR@@/doc +ArchData=@@STAGING_DIR@@/usr +LibraryExecutables=@@STAGING_DIR@@/usr/libexec +Imports=@@STAGING_DIR@@/usr/imports +Qml2Imports=@@STAGING_DIR@@/usr/qml +Settings=@@STAGING_DIR@@/etc +HostBinaries=@@HOST_DIR@@/bin +HostLibraries=@@HOST_DIR@@/lib +HostData=@@STAGING_DIR@@
package/qt5/qt5base/qt5base.mk +4 -1
@@ -323,12 +323,15 @@ define QT5BASE_CONFIGURE_CMDS -v \ -prefix /usr \ -hostprefix $(HOST_DIR) \ + -hostdatadir $(STAGING_DIR) \ -headerdir /usr/include/qt5 \ -sysroot $(STAGING_DIR) \ + -no-gcc-sysroot \ -plugindir /usr/lib/qt/plugins \ -examplesdir /usr/lib/qt/examples \ -no-rpath \ -nomake tests \ + -pkg-config \ -device buildroot \ -device-option CROSS_COMPILE="$(TARGET_CROSS)" \ -device-option BR_COMPILER_CFLAGS="$(QT5BASE_CFLAGS)" \
@@ -337,6 +340,6 @@ define QT5BASE_CONFIGURE_CMDS ) endef -QT5BASE_POST_INSTALL_STAGING_HOOKS += QT5_INSTALL_QT_CONF +QT5BASE_PRE_INSTALL_STAGING_HOOKS += QT5_INSTALL_QT_CONF $(eval $(qmake-package))
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 4/5] package/qt5/qt5base: disable broken qmake sysrootify
Hello James,
Quoted 4 lines · On Mon, 14 Feb 2022 18:53:06 -0700 James Hilliard <[email protected]>…
Currently the qmake gcc sysrootify path logic causes issues with per-package directories, disable automatic gcc sysroot for qt5base install and override all qt.conf paths manually to point to their correct locations.
Could you clarify which "issues" this is fixing? I am now looking at this patch because it is the only one that has not been applied, 6 months after it has been posted, and the commit log is very fuzzy about what the problem is, and how the commit fixes it.
I have just built the following defconfig successfully:
BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_PER_PACKAGE_DIRECTORIES=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_QT5=y
BR2_PACKAGE_QT5MQTT=y
BR2_PACKAGE_QT5SCRIPT=y
BR2_PACKAGE_QT5SERIALBUS=y
# BR2_TARGET_ROOTFS_TAR is not set
Basically building with PPD, qt5base, and a limited set of qt5 packages. Could you describe the problem that you encountered, together with a defconfig that allows to reproduce it?
Thanks a lot!
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 4/5] package/qt5/qt5base: disable broken qmake sysrootify
Quoted 33 lines · Thomas Petazzoni
Hello James,
Quoted 4 lines · On Mon, 14 Feb 2022 18:53:06 -0700 James Hilliard <[email protected]>…
Currently the qmake gcc sysrootify path logic causes issues with per-package directories, disable automatic gcc sysroot for qt5base install and override all qt.conf paths manually to point to their correct locations.
Could you clarify which "issues" this is fixing? I am now looking at this patch because it is the only one that has not been applied, 6 months after it has been posted, and the commit log is very fuzzy about what the problem is, and how the commit fixes it.
I have just built the following defconfig successfully:
BR2_arm=y
BR2_cortex_a9=y
BR2_ARM_ENABLE_VFP=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
BR2_PER_PACKAGE_DIRECTORIES=y
BR2_INIT_NONE=y
BR2_SYSTEM_BIN_SH_NONE=y
#BR2_PACKAGE_BUSYBOXis not set
BR2_PACKAGE_QT5=y
BR2_PACKAGE_QT5MQTT=y
BR2_PACKAGE_QT5SCRIPT=y
BR2_PACKAGE_QT5SERIALBUS=y
#BR2_TARGET_ROOTFS_TARis not set
Quoted 3 lines
Basically building with PPD, qt5base, and a limited set of qt5 packages. Could you describe the problem that you encountered, together with a defconfig that allows to reproduce it?
I recall it helped with qtwebengine's gn build system integration dependency resolution logic which was mixing up host/target deps a bit.
Quoted 8 lines
Thanks a lot!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 4/5] package/qt5/qt5base: disable broken qmake sysrootify
James, All,
On 2022-08-02 16:44 -0600, James Hilliard spake thusly:
Quoted 8 lines
Quoted 6 lines · Thomas Petazzoni
Quoted 4 lines · On Mon, 14 Feb 2022 18:53:06 -0700 James Hilliard <[email protected]>…
Currently the qmake gcc sysrootify path logic causes issues with per-package directories, disable automatic gcc sysroot for qt5base install and override all qt.conf paths manually to point to their correct locations.
Quoted 6 lines
Quoted 6 lines
Could you clarify which "issues" this is fixing? I am now looking at this patch because it is the only one that has not been applied, 6 months after it has been posted, and the commit log is very fuzzy about what the problem is, and how the commit fixes it.
I have just built the following defconfig successfully:
[--SNIP--]
Quoted 5 lines
Quoted 3 lines
Basically building with PPD, qt5base, and a limited set of qt5 packages. Could you describe the problem that you encountered, together with a defconfig that allows to reproduce it?
I recall it helped with qtwebengine's gn build system integration dependency resolution logic which was mixing up host/target deps a bit.
So, this is still very fuzzy, and it lacks concrete explanations, and a defconfig and setup that exhibits the issue which this patch supposedly fixes.
I've marked this patch as rejected.
If you believe there realyl is an issue that needs fixing, please do not hesitate to respin this change with a commit log that explains exactly how the issue manifests itself, what causes the issue, and why the way you fix it is good (or at least, better thatn the crrent situation).
Thanks!
Regards,
Yann E. MORIN.
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v8 5/5 package/qt5/qt5webengine: bump to version 5.15.8
In reply to James HilliardWe need to use the separate package for the chromium submodule which has python3 support patches.
We also need to apply a patch to qt5webengine to allow building with python3.
Drop a patch which is now upstream.
We need to set QT5WEBENGINE_SYNC_QT_HEADERS = YES as we are building from a repository archive instead of a release archive.
We need to add some new required dependencies to qt5webengine so that it will build.
Switch libraries to system libraries instead of bundled when possible.
Migrate unsupported WEBENGINE_CONFIG to new config flag option.
Override feature detection using config override flags to ensure we get the expected features enabled/disabled as autodetection logic may otherwise disable features without throwing build errors.
---
Changes v7 -> v8:
- add missing BR2_PACKAGE_QT5BASE_HARFBUZZ select
Changes v5 -> v6:
- switch to python3
- fix up config flags and rebase
Changes v3 -> v4:
- linker fixes
Changes v2 -> v3:
- add kconfig entries
--- package/qt5/qt5.mk | 1 - .../0002-Add-python3-build-support.patch | 168 +++ ...m-breakpad-fix-build-with-glibc-2.34.patch | 76 -- package/qt5/qt5webengine/Config.in | 14 + .../qt5/qt5webengine/host-python-wrapper.in | 3 + package/qt5/qt5webengine/qt5webengine.hash | 1001 +---------------- package/qt5/qt5webengine/qt5webengine.mk | 160 ++- 7 files changed, 323 insertions(+), 1100 deletions(-) create mode 100644 package/qt5/qt5webengine/0002-Add-python3-build-support.patch delete mode 100644 package/qt5/qt5webengine/0002-chromium-breakpad-fix-build-with-glibc-2.34.patch create mode 100644 package/qt5/qt5webengine/host-python-wrapper.in
package/qt5/qt5.mk +0 -1
@@ -6,7 +6,6 @@ QT5_VERSION_MAJOR = 5.15 QT5_VERSION = $(QT5_VERSION_MAJOR).8 -QT5_SOURCE_TARBALL_PREFIX = everywhere-src QT5_SITE = https://invent.kde.org/qt/qt include $(sort $(wildcard package/qt5/*/*.mk))
package/qt5/qt5webengine/0002-Add-python3-build-support.patch new file +168 -0
168 lines not on this page · raw message
package/qt5/qt5webengine/0002-chromium-breakpad-fix-build-with-glibc-2.34.patch deleted +0 -9
@@ -1,76 +0,0 @@ -From a3bc792bdc116806a50e022d9102914c8daf6210 Mon Sep 17 00:00:00 2001 -From: Martin Jansa <[email protected]> -Date: Wed, 4 Aug 2021 19:11:06 +0200 -Subject: [PATCH] chromium: breakpad: fix build with glibc-2.34 - -* fixes: -[218/24061] CXX obj/third_party/breakpad/client/exception_handler.o -FAILED: obj/third_party/breakpad/client/exception_handler.o -/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/qtwebengine/5.15.4+gitAUTOINC+dd7f7a9166_555f348ae8-r0/recipe-sysroot-native/usr/bin/x86_64-webos-linux/x86_64-webos-linux-g++ -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -Wdate-time --sysroot=/OE/build/luneos-honister/webos-ports/tmp-glibc/work/core2-64-webos-linux/qtwebengine/5.15.4+gitAUTOINC+dd7f7a9166_555f348ae8-r0/recipe-sysroot -MMD -MF obj/third_party/breakpad/client/exception_handler.o.d -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 -DCR_SYSROOT_HASH=5f64b417e1018dcf8fcc81dc2714e0f264b9b911 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../../../../git/src/3rdparty/chromium/third_party/breakpad -I../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src -I../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client -I../../../../git/
src/3rdparty/chromium/third_party/breakpad/breakpad/src/third_party/linux/include -Igen -I../../../../git/src/3rdparty/chromium -I../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -m64 -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g1 -fvisibility=hidden -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 -std=gnu++14 -fno-exceptions -fno-rtti --sysroot=../../../../recipe-sysroot -fvisibility-inlines-hidden -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -c ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad /src/client/linux/handler/exception_handler.cc -o obj/third_party/breakpad/client/exception_handler.o
-../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc: In function 'void google_breakpad::{anonymous}::InstallAlternateStackLocked()':
-../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:49: error: no matching function for call to 'max(int, long int)'
- 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
- | ~~~~~~~~^~~~~~~~~~~~~~~~~
-In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/char_traits.h:39,
- from ../../../../recipe-sysroot/usr/include/c++/11.2.0/string:40, - from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h:38, - from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:66: -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:254:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)' - 254 | max(const _Tp& __a, const _Tp& __b) - | ^~~
-../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:254:5: note: template argument deduction/substitution failed:
-../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:49: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long int')
- 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
- | ~~~~~~~~^~~~~~~~~~~~~~~~~
-In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/char_traits.h:39,
- from ../../../../recipe-sysroot/usr/include/c++/11.2.0/string:40, - from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.h:38, - from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:66: -../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:300:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)' - 300 | max(const _Tp& __a, const _Tp& __b, _Compare __comp) - | ^~~
-../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algobase.h:300:5: note: template argument deduction/substitution failed:
-../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:49: note: deduced conflicting types for parameter 'const _Tp' ('int' and 'long int')
- 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
- | ~~~~~~~~^~~~~~~~~~~~~~~~~
-In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/algorithm:62,
- from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:85:-../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3461:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(std::initializer_list<_Tp>)'
- 3461 | max(initializer_list<_Tp> __l) - | ^~~
-../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3461:5: note: template argument deduction/substitution failed:
-../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:49: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
- 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
- | ~~~~~~~~^~~~~~~~~~~~~~~~~
-In file included from ../../../../recipe-sysroot/usr/include/c++/11.2.0/algorithm:62,
- from ../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:85:-../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3467:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(std::initializer_list<_Tp>, _Compare)'
- 3467 | max(initializer_list<_Tp> __l, _Compare __comp) - | ^~~
-../../../../recipe-sysroot/usr/include/c++/11.2.0/bits/stl_algo.h:3467:5: note: template argument deduction/substitution failed:
-../../../../git/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc:141:49: note: mismatched types 'std::initializer_list<_Tp>' and 'int'
- 141 | static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
- | ~~~~~~~~^~~~~~~~~~~~~~~~~
-
-Adapted from:
-https://github.com/meta-qt5/meta-qt5/blob/2a38fca150f065f869ed530fffe1a07beec80692/recipes-qt/qt5/qtwebengine/chromium/0013-chromium-breakpad-fix-build-with-glibc-2.34.patch
-
-Signed-off-by: Martin Jansa <[email protected]>
-Signed-off-by: James Hilliard <[email protected]>
----
- .../breakpad/src/client/linux/handler/exception_handler.cc | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc b/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc -index ca353c40997..2e43ba6fc04 100644
---- a/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
-+++ b/src/3rdparty/chromium/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
-@@ -138,7 +138,7 @@ void InstallAlternateStackLocked() {
- // SIGSTKSZ may be too small to prevent the signal handlers from overrunning - // the alternative stack. Ensure that the size of the alternative stack is - // large enough. -- static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ); -+ static const unsigned kSigStackSize = std::max<size_t>(16384, SIGSTKSZ);
-
- // Only set an alternative stack if there isn't already one, or if the current
- // one is too small.
package/qt5/qt5webengine/Config.in +14 -0
@@ -32,24 +32,36 @@ config BR2_PACKAGE_QT5WEBENGINE depends on BR2_PACKAGE_QT5_GL_AVAILABLE # qt5declarative, qt5base-eglfs depends on BR2_PACKAGE_HAS_LIBEGL # qt5base-eglfs depends on BR2_PACKAGE_HAS_UDEV + select BR2_PACKAGE_HOST_NODEJS # v8 (a chromium 3rd-party) compiles its internal host-tools with the # same word size as the target. For 32-bits targets, it adds the -m32 # flag (for 64-bits, it adds the -m64 flag). # https://github.com/v8/v8/blob/5.6.326.55/gypfiles/toolchain.gypi#L1036-L1037 select BR2_HOSTARCH_NEEDS_IA32_COMPILER if !BR2_ARCH_IS_64 # v8/chromium select BR2_PACKAGE_FFMPEG + select BR2_PACKAGE_LCMS2 + select BR2_PACKAGE_LIBEVENT select BR2_PACKAGE_LIBGLIB2 select BR2_PACKAGE_LIBNSS select BR2_PACKAGE_LIBVPX select BR2_PACKAGE_LIBXKBCOMMON + select BR2_PACKAGE_LIBXML2 + select BR2_PACKAGE_LIBXSLT + select BR2_PACKAGE_MINIZIP select BR2_PACKAGE_OPUS + select BR2_PACKAGE_RE2 + select BR2_PACKAGE_SNAPPY select BR2_PACKAGE_WEBP select BR2_PACKAGE_WEBP_DEMUX + select BR2_PACKAGE_WEBP_MUX select BR2_PACKAGE_QT5BASE_DBUS select BR2_PACKAGE_QT5BASE_EGLFS select BR2_PACKAGE_QT5BASE_FONTCONFIG + select BR2_PACKAGE_QT5BASE_HARFBUZZ + select BR2_PACKAGE_QT5BASE_JPEG select BR2_PACKAGE_QT5BASE_ICU select BR2_PACKAGE_QT5BASE_GUI + select BR2_PACKAGE_QT5BASE_PNG select BR2_PACKAGE_QT5BASE_WIDGETS select BR2_PACKAGE_QT5DECLARATIVE select BR2_PACKAGE_QT5DECLARATIVE_QUICK
@@ -57,9 +69,11 @@ config BR2_PACKAGE_QT5WEBENGINE select BR2_PACKAGE_QT5QUICKCONTROLS2 select BR2_PACKAGE_QT5SVG if BR2_PACKAGE_QT5BASE_EXAMPLES select BR2_PACKAGE_QT5WEBCHANNEL + select BR2_PACKAGE_QT5WEBENGINE_CHROMIUM select BR2_PACKAGE_XLIB_LIBXCOMPOSITE if BR2_PACKAGE_QT5BASE_XCB select BR2_PACKAGE_XLIB_LIBXCURSOR if BR2_PACKAGE_QT5BASE_XCB select BR2_PACKAGE_XLIB_LIBXI if BR2_PACKAGE_QT5BASE_XCB + select BR2_PACKAGE_XLIB_LIBXKBFILE if BR2_PACKAGE_QT5BASE_XCB select BR2_PACKAGE_XLIB_LIBXRANDR if BR2_PACKAGE_QT5BASE_XCB select BR2_PACKAGE_XLIB_LIBXSCRNSAVER if BR2_PACKAGE_QT5BASE_XCB select BR2_PACKAGE_XLIB_LIBXTST if BR2_PACKAGE_QT5BASE_XCB
package/qt5/qt5webengine/host-python-wrapper.in new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh +LD_LIBRARY_PATH="@HOST_DIR@/lib" \ +exec @HOST_DIR@/bin/python "$@"
package/qt5/qt5webengine/qt5webengine.hash +2 -999
1,007 lines not on this page · raw message
package/qt5/qt5webengine/qt5webengine.mk +136 -24
200 lines not on this page · raw message
Signature · 7 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 5/5] package/qt5/qt5webengine: bump to version 5.15.8
Hi,
Quoted 16 lines · James Hilliard
We need to use the separate package for the chromium submodule which has python3 support patches.
We also need to apply a patch to qt5webengine to allow building with python3.
Drop a patch which is now upstream.
We need to set
QT5WEBENGINE_SYNC_QT_HEADERS= YES as we are building from a repository archive instead of a release archive.We need to add some new required dependencies to qt5webengine so that it will build.
Switch libraries to system libraries instead of bundled when possible.
Quoted 7 lines
Migrate unsupported
WEBENGINE_CONFIGto new config flag option.Override feature detection using config override flags to ensure we get the expected features enabled/disabled as autodetection logic may otherwise disable features without throwing build errors.
Signed-off-by James Hilliard <[email protected]>
I tried applying patch 1, 2, 3 and 5 (which took some effort as there seems to be some DOS newlines confusing patchwork) and did a test build for 32bit ARM:
BR2_arm=y
BR2_cortex_a7=y
BR2_ARM_INSTRUCTIONS_THUMB2=y
BR2_CCACHE=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
BR2_PACKAGE_MESA3D_OPENGL_EGL=y
BR2_PACKAGE_MESA3D_OPENGL_ES=y
BR2_PACKAGE_QT5=y
BR2_PACKAGE_QT5WEBENGINE=y
But that fails building v8_snapshot/gen-regexp-special-case. Notice the -m32 that get passed:
[19941/21833] LINK v8_snapshot/gen-regexp-special-case
FAILED: v8_snapshot/gen-regexp-special-case /home/peko/source/buildroot/output-qt/build/qt5webengine-5.15.8/host-bin/python "../../3rdparty/chromium/build/toolchain/gcc_li
nk_wrapper.py"
--output="v8_snapshot/gen-regexp-special-case" -- /usr/bin/g++ -pie -Wl,--fatal-warnings -Wl,--build-id=sha1 -fP
IC -Wl,-z,noexecstack -Wl,-z,relro
-Wl,-z,now -Wl,-z,defs -Wl,--as-needed -m32 -pie -Wl,--disable-new-dtags -Wl,-O2 -Wl,--gc-se
ctions -L/usr/lib -o "v8_snapshot/gen-regexp-special-case"
-Wl,--start-group @"v8_snapshot/gen-regexp-special-case.rsp" -Wl,--
end-group -ldl
-lpthread -lrt -licui18n -licuuc -licudata/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libicui18n.so when searching for -licui18n /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libicui18n.a when searching for -licui18n /usr/bin/ld: cannot find -licui18n/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libicui18n.so when searching for -licui18n /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libicuuc.so when searching for -licuuc /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libicuuc.a when searching for -licuuc /usr/bin/ld: cannot find -licuuc/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libicuuc.so when searching for -licuuc /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libicudata.so when searching for -licudata /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libicudata.a when searching for -licudata /usr/bin/ld: cannot find -licudata/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libicudata.so when searching for -licudata
collect2: error: ld returned 1 exit status
[19945/21833] CXX v8_snapshot/obj/v8/v8_libsampler/sampler.o
ninja: build stopped: subcommand failed.
make[5]: *** [Makefile.gn_run:362: run_ninja] Error 1
make[4]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 2
make[3]: *** [Makefile:79: sub-core-make_first] Error 2
make[2]: *** [Makefile:49: sub-src-make_first] Error 2
make[1]: *** [package/pkg-generic.mk:293: /home/peko/source/buildroot/output-qt/build/qt5webengine-5.15.8/.stamp_built] Error 2
Any ideas? Notice that I did NOT apply patch 4 yet.
Quoted 22 lines
---
Changes v7 -> v8:
- add missingBR2_PACKAGE_QT5BASE_HARFBUZZselectChanges v5 -> v6:
- switch to python3
- fix up config flags and rebaseChanges v3 -> v4:
- linker fixesChanges v2 -> v3:
- add kconfig entries--- package/qt5/qt5.mk | 1 - .../0002-Add-python3-build-support.patch | 168 +++ ...m-breakpad-fix-build-with-glibc-2.34.patch | 76 -- package/qt5/qt5webengine/Config.in | 14 + .../qt5/qt5webengine/host-python-wrapper.in | 3 + package/qt5/qt5webengine/qt5webengine.hash | 1001 +---------------- package/qt5/qt5webengine/qt5webengine.mk | 160 ++- 7 files changed, 323 insertions(+), 1100 deletions(-)
Quoted 3 lines
create mode 100644
package/qt5/qt5webengine/0002-Add-python3-build-support.patchdelete mode 100644package/qt5/qt5webengine/0002-chromium-breakpad-fix-build-with-glibc-2.34.patchcreate mode 100644 package/qt5/qt5webengine/host-python-wrapper.in
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 5/5] package/qt5/qt5webengine: bump to version 5.15.8
Quoted 99 lines · Peter Korsgaard
Hi,
Quoted 16 lines · James Hilliard
We need to use the separate package for the chromium submodule which has python3 support patches.
We also need to apply a patch to qt5webengine to allow building with python3.
Drop a patch which is now upstream.
We need to set
QT5WEBENGINE_SYNC_QT_HEADERS= YES as we are building from a repository archive instead of a release archive.We need to add some new required dependencies to qt5webengine so that it will build.
Switch libraries to system libraries instead of bundled when possible.
Quoted 7 lines
Migrate unsupported
WEBENGINE_CONFIGto new config flag option.Override feature detection using config override flags to ensure we get the expected features enabled/disabled as autodetection logic may otherwise disable features without throwing build errors.
Signed-off-by James Hilliard <[email protected]>I tried applying patch 1, 2, 3 and 5 (which took some effort as there seems to be some DOS newlines confusing patchwork) and did a test build for 32bit ARM:
BR2_arm=y
BR2_cortex_a7=y
BR2_ARM_INSTRUCTIONS_THUMB2=y
BR2_CCACHE=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
BR2_PACKAGE_MESA3D_OPENGL_EGL=y
BR2_PACKAGE_MESA3D_OPENGL_ES=y
BR2_PACKAGE_QT5=y
BR2_PACKAGE_QT5WEBENGINE=yBut that fails building v8_snapshot/gen-regexp-special-case. Notice the -m32 that get passed:
[19941/21833] LINK v8_snapshot/gen-regexp-special-case
FAILED: v8_snapshot/gen-regexp-special-case/home/peko/source/buildroot/output-qt/build/qt5webengine-5.15.8/host-bin/python"../../3rdparty/chromium/build/toolchain/gcc_li
nk_wrapper.py"
--output="v8_snapshot/gen-regexp-special-case" --/usr/bin/g++-pie(quoted diff) +0
-5-Wl,--fatal-warnings -Wl,--build-id=sha1 -fP IC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,--as-needed -m32 -pie -Wl,--disable-new-dtags -Wl,-O2 -Wl,--gc-se ctions -L/usr/lib -o "v8_snapshot/gen-regexp-special-case" -Wl,--start-group @"v8_snapshot/gen-regexp-special-case.rsp" -Wl,-- end-group -ldl -lpthread -lrt -licui18n -licuuc -licudata
/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicui18n.sowhen searching for -licui18n/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicui18n.awhen searching for -licui18n/usr/bin/ld: cannot find -licui18n/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicui18n.sowhen searching for -licui18n/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicuuc.sowhen searching for -licuuc/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicuuc.awhen searching for -licuuc/usr/bin/ld: cannot find -licuuc/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicuuc.sowhen searching for -licuuc/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicudata.sowhen searching for -licudata/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicudata.awhen searching for -licudata/usr/bin/ld: cannot find -licudata/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicudata.sowhen searching for -licudata
collect2: error: ld returned 1 exit status
[19945/21833] CXXv8_snapshot/obj/v8/v8_libsampler/sampler.o
ninja: build stopped: subcommand failed.
make[5]: *** [Makefile.gn_run:362:run_ninja] Error 1
make[4]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 2 make[3]: *** [Makefile:79: sub-core-make_first] Error 2
make[2]: *** [Makefile:49: sub-src-make_first] Error 2
make[1]: *** [package/pkg-generic.mk:293:/home/peko/source/buildroot/output-qt/build/qt5webengine-5.15.8/.stamp_built] Error 2
Quoted 1 line
Any ideas? Notice that I did NOT apply patch 4 yet.
I think patch 4 was needed for fixing some linker issues with pkg-config resolved dependencies like icu.
Quoted 26 lines
Quoted 23 lines
---
Changes v7 -> v8:
- add missingBR2_PACKAGE_QT5BASE_HARFBUZZselectChanges v5 -> v6:
- switch to python3
- fix up config flags and rebaseChanges v3 -> v4:
- linker fixesChanges v2 -> v3:
- add kconfig entries--- package/qt5/qt5.mk | 1 - .../0002-Add-python3-build-support.patch | 168 +++ ...m-breakpad-fix-build-with-glibc-2.34.patch | 76 -- package/qt5/qt5webengine/Config.in | 14 + .../qt5/qt5webengine/host-python-wrapper.in | 3 + package/qt5/qt5webengine/qt5webengine.hash | 1001 +---------------- package/qt5/qt5webengine/qt5webengine.mk | 160 ++- 7 files changed, 323 insertions(+), 1100 deletions(-)Quoted 3 lines
create mode 100644
package/qt5/qt5webengine/0002-Add-python3-build-support.patchdelete mode 100644package/qt5/qt5webengine/0002-chromium-breakpad-fix-build-with-glibc-2.34.patchcreate mode 100644 package/qt5/qt5webengine/host-python-wrapper.in
Quoted 5 lines
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 5/5] package/qt5/qt5webengine: bump to version 5.15.8
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"James" == James Hilliard <[email protected]> writes:
Hi,
Quoted 54 lines
Quoted 54 lines
But that fails building v8_snapshot/gen-regexp-special-case. Notice the -m32 that get passed:
[19941/21833] LINK v8_snapshot/gen-regexp-special-case
FAILED: v8_snapshot/gen-regexp-special-case/home/peko/source/buildroot/output-qt/build/qt5webengine-5.15.8/host-bin/python"../../3rdparty/chromium/build/toolchain/gcc_li
nk_wrapper.py" --output="v8_snapshot/gen-regexp-special-case" --/usr/bin/g++-pie -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro
(quoted diff) +0
-2-Wl,-z,now -Wl,-z,defs -Wl,--as-needed -m32 -pie -Wl,--disable-new-dtags -Wl,-O2 -Wl,--gc-sections -L/usr/lib -o "v8_snapshot/gen-regexp-special-case" -Wl,--start-group @"v8_snapshot/gen-regexp-special-case.rsp" -Wl,--
end-group -ldl
-lpthread -lrt -licui18n -licuuc -licudata/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicui18n.sowhen searching for -licui18n/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicui18n.awhen searching for -licui18n/usr/bin/ld: cannot find -licui18n/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicui18n.sowhen searching for -licui18n/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicuuc.sowhen searching for -licuuc/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicuuc.awhen searching for -licuuc/usr/bin/ld: cannot find -licuuc/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicuuc.sowhen searching for -licuuc/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicudata.sowhen searching for -licudata/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicudata.awhen searching for -licudata/usr/bin/ld: cannot find -licudata/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicudata.sowhen searching for -licudata
collect2: error: ld returned 1 exit status
[19945/21833] CXXv8_snapshot/obj/v8/v8_libsampler/sampler.o
ninja: build stopped: subcommand failed.
make[5]: *** [Makefile.gn_run:362:run_ninja] Error 1
make[4]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 2 make[3]: *** [Makefile:79: sub-core-make_first] Error 2
make[2]: *** [Makefile:49: sub-src-make_first] Error 2
make[1]: *** [package/pkg-generic.mk:293:/home/peko/source/buildroot/output-qt/build/qt5webengine-5.15.8/.stamp_built] Error 2
Quoted 4 lines
Quoted 1 line
Any ideas? Notice that I did NOT apply patch 4 yet.
I think patch 4 was needed for fixing some linker issues with pkg-config resolved dependencies like icu.
That unfortunately seems unrelated, because the build fails with the same error here after applying patch 4 :/
From the command line passing -m32 to HOSTCC, it sounds like some cross compilation confusion to me.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 5/5] package/qt5/qt5webengine: bump to version 5.15.8
Quoted 63 lines · Peter Korsgaard
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
"James" == James Hilliard <[email protected]> writes:
Hi,
Quoted 54 lines
Quoted 54 lines
But that fails building v8_snapshot/gen-regexp-special-case. Notice the -m32 that get passed:
[19941/21833] LINK v8_snapshot/gen-regexp-special-case
FAILED: v8_snapshot/gen-regexp-special-case/home/peko/source/buildroot/output-qt/build/qt5webengine-5.15.8/host-bin/python"../../3rdparty/chromium/build/toolchain/gcc_li
nk_wrapper.py" --output="v8_snapshot/gen-regexp-special-case" --/usr/bin/g++-pie -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro
(quoted diff) +0
-2-Wl,-z,now -Wl,-z,defs -Wl,--as-needed -m32 -pie -Wl,--disable-new-dtags -Wl,-O2 -Wl,--gc-sections -L/usr/lib -o "v8_snapshot/gen-regexp-special-case" -Wl,--start-group @"v8_snapshot/gen-regexp-special-case.rsp" -Wl,--
end-group -ldl
-lpthread -lrt -licui18n -licuuc -licudata/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicui18n.sowhen searching for -licui18n/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicui18n.awhen searching for -licui18n/usr/bin/ld: cannot find -licui18n/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicui18n.sowhen searching for -licui18n/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicuuc.sowhen searching for -licuuc/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicuuc.awhen searching for -licuuc/usr/bin/ld: cannot find -licuuc/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicuuc.sowhen searching for -licuuc/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicudata.sowhen searching for -licudata/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicudata.awhen searching for -licudata/usr/bin/ld: cannot find -licudata/usr/bin/ld: skipping incompatible/usr/lib/x86_64-linux-gnu/libicudata.sowhen searching for -licudata
collect2: error: ld returned 1 exit status
[19945/21833] CXXv8_snapshot/obj/v8/v8_libsampler/sampler.o
ninja: build stopped: subcommand failed.
make[5]: *** [Makefile.gn_run:362:run_ninja] Error 1
make[4]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 2 make[3]: *** [Makefile:79: sub-core-make_first] Error 2
make[2]: *** [Makefile:49: sub-src-make_first] Error 2
make[1]: *** [package/pkg-generic.mk:293:/home/peko/source/buildroot/output-qt/build/qt5webengine-5.15.8/.stamp_built] Error 2Quoted 4 lines
Quoted 1 line
Any ideas? Notice that I did NOT apply patch 4 yet.
I think patch 4 was needed for fixing some linker issues with pkg-config resolved dependencies like icu.
Quoted 5 lines
That unfortunately seems unrelated, because the build fails with the same error here after applying patch 4 :/
From the command line passing -m32 to HOSTCC, it sounds like some cross compilation confusion to me.
Yeah, I recall there were a bunch of issues related to cross compile confusion, guess I had missed this one, although I was mostly testing against aarch64.
Quoted 3 lines
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 5/5] package/qt5/qt5webengine: bump to version 5.15.8
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"James" == James Hilliard <[email protected]> writes:
Hi,
Quoted 11 lines
Quoted 8 lines
Quoted 2 lines
I think patch 4 was needed for fixing some linker issues with pkg-config resolved dependencies like icu.
That unfortunately seems unrelated, because the build fails with the same error here after applying patch 4 :/
From the command line passing -m32 to HOSTCC, it sounds like some cross compilation confusion to me.
Yeah, I recall there were a bunch of issues related to cross compile confusion, guess I had missed this one, although I was mostly testing against aarch64.
Yes, so there might still be some patches neeed.
With that said, it is still better than the current situation which is completely broken, so the best way to make progress is most likely to apply it.
So I'll do that, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 5/5] package/qt5/qt5webengine: bump to version 5.15.8
Quoted 14 lines · Peter Korsgaard
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
"James" == James Hilliard <[email protected]> writes:
Hi,
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines
I think patch 4 was needed for fixing some linker issues with pkg-config resolved dependencies like icu.
That unfortunately seems unrelated, because the build fails with the same error here after applying patch 4 :/
From the command line passing -m32 to HOSTCC, it sounds like some cross compilation confusion to me.
Quoted 8 lines
Quoted 2 lines
Yeah, I recall there were a bunch of issues related to cross compile confusion, guess I had missed this one, although I was mostly testing against aarch64.
Yes, so there might still be some patches neeed.
With that said, it is still better than the current situation which is completely broken, so the best way to make progress is most likely to apply it.
Yeah, I went ahead and bumped the other qt5 packages which might help fix some issues:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
Quoted 5 lines
So I'll do that, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v8 5/5] package/qt5/qt5webengine: bump to version 5.15.8
In reply to James HilliardQuoted 18 lines · James Hilliard
We need to use the separate package for the chromium submodule which has python3 support patches.
We also need to apply a patch to qt5webengine to allow building with python3.
Drop a patch which is now upstream.
We need to set
QT5WEBENGINE_SYNC_QT_HEADERS= YES as we are building from a repository archive instead of a release archive.We need to add some new required dependencies to qt5webengine so that it will build.
Switch libraries to system libraries instead of bundled when possible.
Migrate unsupported
WEBENGINE_CONFIGto new config flag option.
Quoted 7 lines
Override feature detection using config override flags to ensure we get the expected features enabled/disabled as autodetection logic may otherwise disable features without throwing build errors.
Signed-off-by James Hilliard <[email protected]>---
Changes v7 -> v8 > - add missingBR2_PACKAGE_QT5BASE_HARFBUZZselect
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi,
Quoted 8 lines · James Hilliard
This should be cleaner than editing
mkspecs/common/g++-base.conf.This should be more reliable with qt5webengine gn build system.
Signed-off-by James Hilliard <[email protected]>---
Changes v6 -> v7:
- removeQT5BASE_CONFIGURE_HOSTCCvariable
Committed, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 17 lines · James Hilliard
This should be cleaner than editing
mkspecs/common/g++-base.conf.This should be more reliable with qt5webengine gn build system.
Signed-off-by James Hilliard <[email protected]>---
Changes v6 -> v7:
- removeQT5BASE_CONFIGURE_HOSTCCvariable--- package/qt5/qt5base/qt5base.mk | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)package/qt5/qt5base/qt5base.mk +0
-0
package/qt5/qt5base/qt5base.mk endef · line 302
Quoted 6 lines
package/qt5/qt5base/qt5base.mk +0
-3@@ -297,10 +297,9 @@ endef endif # This allows to use ccache when available -define QT5BASE_CONFIGURE_HOSTCC - $(SED) 's,^QMAKE_CC\s*=.*,QMAKE_CC = $(HOSTCC),' $(@D)/mkspecs/common/g++-base.conf - $(SED) 's,^QMAKE_CXX\s*=.*,QMAKE_CXX = $(HOSTCXX),' $(@D)/mkspecs/common/g++-base.conf
As pointed out by Yann on IRC, with this dropped we no longer enforce that HOSTCC / HOSTCXX is used, so I've left in this hunk but changed to the _NOCCACHE variants.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot