-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qt5_webengine: compile requires Python 2 (which has been sunset in 2020) #340
Comments
I get the |
Thanks a lot @cproc! That helped a lot to pinpoint the problem. Just for debugging purposes, I set Now it fails due to a python error ( $ time ./tool/depot/create NINJAJOBS=-j1 VERBOSE= FORCE=1 REBUILD= UPDATE_VERSIONS=1 mewmew/bin/x86_64/qt5_webengine
...
[142/21294] touch obj/cc/mojom/mojom__type_mappings__validator.stamp
[143/21294] touch obj/cc/base/base__jumbo_merge.stamp
[144/21294] touch obj/chrome/browser/chrome_internal_resources_gen.stamp
[145/21294] python ../../../../../../../../../../src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/build/write_buildflag_header.py --output chrome/common/buildflags.h --rulename //chrome/common:buildflags --gen-dir gen --definitions 7142641371257702246.rsp
[146/21294] python ../../../../../../../../../../src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/mojo/public/tools/bindings/validate_typemap_config.py //components/services/filesystem/public/mojom/mojom:mojom /home/u/Desktop/sculpt_play/genode/depot/mewmew/bin/x86_64/qt5_webengine/2023-09-12.build/var/libcache/qt5_webengine/src/core/release/gen/components/services/filesystem/public/mojom/mojom_blink.typemap_config /home/u/Desktop/sculpt_play/genode/depot/mewmew/bin/x86_64/qt5_webengine/2023-09-12.build/var/libcache/qt5_webengine/src/core/release/gen/components/services/filesystem/public/mojom/mojom_blink.typemap_config.validated
[147/21294] touch obj/chrome/common/buildflags.stamp
[148/21294] python ../../../../../../../../../../src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/mojo/public/tools/mojom/mojom_parser.py --input-root /home/u/Desktop/sculpt_play/genode/depot/mewmew/src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/ --input-root /home/u/Desktop/sculpt_play/genode/depot/mewmew/bin/x86_64/qt5_webengine/2023-09-12.build/var/libcache/qt5_webengine/src/core/release/gen --output-root /home/u/Desktop/sculpt_play/genode/depot/mewmew/bin/x86_64/qt5_webengine/2023-09-12.build/var/libcache/qt5_webengine/src/core/release/gen --mojom-file-list=12959865804793651387..rsp --enable-feature is_posix --enable-feature is_linux
[149/21294] touch obj/chrome/browser/resource_coordinator/mojo_bindings__parser.stamp
[150/21294] touch obj/components/apdu/apdu.inputdeps.stamp
[151/21294] /usr/local/genode/tool/23.05/bin/genode-x86-g++ -MMD -MF obj/components/apdu/apdu/apdu_command.o.d -DIS_APDU_IMPL -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 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen -I../../../../../../../../../../src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium -I../../../../../../../../../../src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/third_party/boringssl/src/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -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 -fvisibility-inlines-hidden -pipe -pipe -D__FreeBSD__=12 -D__GENODE__ -ffunction-sections -fno-strict-aliasing -nostdinc -m64 -mcmodel=large -fPIC -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/mesa/2021-08-28/include/drm-uapi -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/nss3/2023-04-27/include/nspr -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/nss3/2023-04-27/include/nss -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/stdcxx/2023-06-15/include/stdcxx -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/stdcxx/2023-06-15/include/stdcxx/std -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/stdcxx/2023-06-15/include/stdcxx/c_global -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/stdcxx/2023-06-15/include/stdcxx/../spec/x86_64/stdcxx -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/libc/2023-05-26/include/spec/x86 -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/libc/2023-05-26/include/spec/x86_64 -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/stdcxx/2023-06-15/include/spec/x86_64 -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/libc/2023-05-26/include/libc -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/libc/2023-05-26/include/spec/x86_64/libc -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/libc/2023-05-26/include/spec/x86/libc -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/libc/2023-05-26/include/libc-genode -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/libc/2023-05-26/include/libc -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/libc/2023-05-26/include/spec/x86_64/libc -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/libc/2023-05-26/include/spec/x86/libc -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/libc/2023-05-26/include/libc-genode -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/expat/2022-11-16/include -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/libc/2023-05-26/include -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/mesa/2021-08-28/include -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/nss3/2023-04-27/include -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/qt5_base/2023-05-26/include -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/api/stdcxx/2023-06-15/include -I/usr/local/genode/tool/23.05/bin/../lib/gcc/x86_64-pc-elf/12.3.0/include -I/home/u/Desktop/sculpt_play/genode/depot/mewmew/bin/x86_64/qt5_webengine/2023-09-12.build/var/libcache/qt5_webengine/qmake_root/include/QtCore/spec/genode-x86_64-g++ -fpermissive -c ../../../../../../../../../../src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/components/apdu/apdu_command.cc -o obj/components/apdu/apdu/apdu_command.o
[152/21294] python ../../../../../../../../../../src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/tools/polymer/polymer.py --js_file app.js --html_file app.html --html_type v3-ready --in_folder ../../../../../../../../../../src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/chrome/browser/resources/browser_switch --out_folder gen/chrome/browser/resources/browser_switch --namespace_rewrites cr_slider.SliderTick\|SliderTick cr.addSingletonGetter\|addSingletonGetter cr.addWebUIListener\|addWebUIListener cr.dispatchSimpleEvent\|dispatchSimpleEvent cr.icon.getFavicon\|getFavicon cr.icon.getImage\|getImage cr.isAndroid\|isAndroid cr.isChromeOS\|isChromeOS cr.isIOS\|isIOS cr.isLinux\|isLinux cr.isMac\|isMac cr.isWindows\|isWindows cr.png.convertImageSequenceToPng\|convertImageSequenceToPng cr.removeWebUIListener\|removeWebUIListener cr.sendWithPromise\|sendWithPromise cr.toastManager.getToastManager\|getToastManager cr.ui.FocusOutlineManager\|FocusOutlineManager cr.ui.FocusRowBehavior\|FocusRowBehavior cr.ui.focusWithoutInk\|focusWithoutInk cr.ui.Store\|Store Polymer.dom.flush\|flush Polymer.IronA11yAnnouncer\|IronA11yAnnouncer Polymer.PaperRippleBehavior\|PaperRippleBehavior Polymer.RenderStatus.afterNextRender\|afterNextRender Polymer.RenderStatus.beforeNextRender\|beforeNextRender --auto_imports third_party/polymer/v1_0/components-chromium/iron-a11y-announcer/iron-a11y-announcer.html\|IronA11yAnnouncer third_party/polymer/v1_0/components-chromium/paper-behaviors/paper-ripple-behavior.html\|PaperRippleBehavior ui/webui/resources/cr_elements/cr_scrollable_behavior.html\|CrScrollableBehavior ui/webui/resources/cr_elements/cr_radio_button/cr_radio_button_behavior.html\|CrRadioButtonBehavior ui/webui/resources/cr_elements/policy/cr_policy_pref_behavior.html\|CrPolicyPrefBehavior ui/webui/resources/html/cr/ui/focus_outline_manager.html\|FocusOutlineManager ui/webui/resources/html/cr/ui/focus_row_behavior.html\|FocusRowBehavior ui/webui/resources/html/cr/ui/focus_without_ink.html\|focusWithoutInk ui/webui/resources/html/find_shortcut_behavior.html\|FindShortcutBehavior ui/webui/resources/html/i18n_behavior.html\|I18nBehavior ui/webui/resources/html/list_property_update_behavior.html\|ListPropertyUpdateBehavior ui/webui/resources/html/load_time_data.html\|loadTimeData ui/webui/resources/html/parse_html_subset.html\|parseHtmlSubset ui/webui/resources/html/polymer.html\|Polymer,html ui/webui/resources/html/promise_resolver.html\|PromiseResolver ui/webui/resources/html/web_ui_listener_behavior.html\|WebUIListenerBehavior
[153/21294] python ../../../../../../../../../../src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/mojo/public/tools/bindings/mojom_bindings_generator.py -o gen verify --filelist=9642632244953993194..rsp -f gen/chrome/browser/resource_coordinator/mojo_bindings.deps_sources_list --depth ../../../../../../../../../../src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/
FAILED: gen/chrome/browser/resource_coordinator/lifecycle_unit_state.v
python ../../../../../../../../../../src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/mojo/public/tools/bindings/mojom_bindings_generator.py -o gen verify --filelist=9642632244953993194..rsp -f gen/chrome/browser/resource_coordinator/mojo_bindings.deps_sources_list --depth ../../../../../../../../../../src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/
Traceback (most recent call last):
File "/home/u/Desktop/sculpt_play/genode/depot/mewmew/bin/x86_64/qt5_webengine/2023-09-12.build/var/libcache/qt5_webengine/src/core/release/../../../../../../../../../../src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/mojo/public/tools/bindings/mojom_bindings_generator.py", line 43, in <module>
from mojom.generate import template_expander
File "/home/u/Desktop/sculpt_play/genode/depot/mewmew/src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/mojo/public/tools/mojom/mojom/generate/template_expander.py", line 13, in <module>
import jinja2
File "/home/u/Desktop/sculpt_play/genode/depot/mewmew/src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/third_party/jinja2/__init__.py", line 33, in <module>
from jinja2.environment import Environment, Template
File "/home/u/Desktop/sculpt_play/genode/depot/mewmew/src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/third_party/jinja2/environment.py", line 16, in <module>
from jinja2.defaults import BLOCK_START_STRING, \
File "/home/u/Desktop/sculpt_play/genode/depot/mewmew/src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/third_party/jinja2/defaults.py", line 32, in <module>
from jinja2.tests import TESTS as DEFAULT_TESTS
File "/home/u/Desktop/sculpt_play/genode/depot/mewmew/src/qt5_webengine/2023-09-12/src/lib/qt5/qtwebengine/src/3rdparty/chromium/third_party/jinja2/tests.py", line 13, in <module>
from collections import Mapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.11/collections/__init__.py)
ninja: build stopped: subcommand failed.
make[10]: *** [Makefile.gn_run:346: run_ninja] Error 1
make[9]: *** [Makefile:82: sub-gn_run-pro-make_first] Error 2
make[8]: *** [Makefile:77: sub-core-make_first] Error 2
make[7]: *** [Makefile:46: sub-src] Error 2
make[6]: *** [/home/u/Desktop/sculpt_play/genode/depot/mewmew/src/qt5_webengine/2023-09-12/lib/mk/qt5_webengine.inc:31: built.tag] Error 2
make[5]: *** [var/libdeps:402: qt5_webengine.lib] Error 2
make[4]: *** [Makefile:336: gen_deps_and_build_targets] Error 2
make[3]: *** [/home/u/Desktop/sculpt_play/genode/tool/depot/mk/build_bin_archive:208: /home/u/Desktop/sculpt_play/genode/depot/mewmew/bin/x86_64/qt5_webengine/2023-09-12.build/bin] Error 1
make[2]: *** [/home/u/Desktop/sculpt_play/genode/depot/var/build.mk:12: mewmew/bin/x86_64/qt5_webengine/2023-09-12] Error 2
make[1]: *** [/home/u/Desktop/sculpt_play/genode/tool/depot/build:136: execute_generated_build_mk_file] Error 2
make: *** [tool/depot/create:59: build] Error 2 Edit: looks like the |
Applying the following patch to https://github.com/cproc/qt5 (on top of the issue4863 branch) fixes the commit 04242a3f1f49841cb1d430b8344a48666035ac99
Author: Robin Eklind
Date: Wed Sep 13 01:52:56 2023 +0200
jinja2: update to use dict (Python 3) instead of collections.Mapping (Python 2)
diff --git a/qtwebengine/src/3rdparty/chromium/third_party/jinja2/tests.py b/qtwebengine/src/3rdparty/chromium/third_party/jinja2/tests.py
index 0adc3d4dbc..b043d1fb0d 100644
--- a/qtwebengine/src/3rdparty/chromium/third_party/jinja2/tests.py
+++ b/qtwebengine/src/3rdparty/chromium/third_party/jinja2/tests.py
@@ -10,7 +10,6 @@
"""
import operator
import re
-from collections import Mapping
from jinja2.runtime import Undefined
from jinja2._compat import text_type, string_types, integer_types
import decimal
@@ -84,7 +83,7 @@ def test_mapping(value):
.. versionadded:: 2.6
"""
- return isinstance(value, Mapping)
+ return isinstance(value, dict)
def test_number(value): |
Upstream issue tracking update from Python 2 to Python 3 for generating ninja build files. https://bugs.chromium.org/p/chromium/issues/detail?id=941669 |
Updated the issue title to indicate that the issue is related to the requirement of using Python 2 to build qt5_webengine. Python 2 was sunset in 2020. From https://www.python.org/doc/sunset-python-2/
(Highlighted extract related to security issues not being patched or backported to Pyhon 2 anymore). Hopefully the upstream issue (https://bugs.chromium.org/p/chromium/issues/detail?id=941669) will be able to mitigate this situation in the future. Cheers, |
I wanted to try and compile Falkon, and as a prerequisite tried to compile the
qt5_webengine
library from genode-world staging branch (ref 9e06bf7).Command used to build
qt5_webengine
:However, the following build error was presented:
Note: I am able to build
qt5_base
successfully (using./tool/depot/create FORCE=1 REBUILD= UPDATE_VERSIONS=1 mewmew/bin/x86_64/qt5_base
). The same is true for each ofqt5_component
,qt5_declarative
,qt5_quickcontrols
,qt5_svg
andqt5_webchannel
.Below follows the full build output for
qt5_webengine
which gave the above error message.detailed build output
Edit: the "Cross compiling without sysroot. Disabling pkg-config" message seems to be from
configure
templates from qt5_base:grep for
Cross compiling without sysroot
indepot/mewmew/src/qt5_webengine
:And the "
--exists
command not found" error is likely related to the$PKG_CONFIG
variable not being set.grep for
--exists
indepot/mewmew/src/qt5_webengine
:The text was updated successfully, but these errors were encountered: