| Summary: | package/qt5/qt5webengine: build fails with unicode/uchar.h not found | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | wg |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED MOVED | ||
| Severity: | normal | CC: | buildroot, yann.morin.1998 |
| Priority: | P5 | ||
| Version: | 2022.02.4 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: | Buildroot defconfig | ||
(In reply to wg from comment #0) Hi Wolfgang, we are currently working on a solution and already have found one (it needs some more polishing but until it gets upstreamed, you can take a look at it): https://paste.debian.net/1251470/ Hello Stefan, I can confirm, that the patch fixes that issue, thanks! But now I'm struggle with other problems! Building qt5webengine is always a challenge! What I see is that the build first eats up *all* of the 16 GB memory and next the swap space. When it's exchausted, I get: x86_64-buildroot-linux-gnu-g++.br_real: fatal error: Killed signal terminated program cc1plus Weird, maybe it's related to my i7-12700 running Ubuntu 22.04... I'm now building on another system... Hello Stefan, could you please reupload the fix as the paste on debian is no longer available? I tried to update our buildroot to 2022.02.12 and 2023.02 and both have the same issue. Thanks Maik Does anyone have the patch that resolves this issue so we can push it through and mark this issue as resolved? If not, I can dig back into this but would rather not have to start from scratch. If anyone on this issue has a moment, please add it as an attachment to this issue. I have just submitted a patch to this bug: https://lists.buildroot.org/pipermail/buildroot/2023-October/677826.html It manifests itself in 2 ways: - If the build host has unicode/uchar.h in default include dirs, e.g. on ubuntu /usr/include/unicode/uchar.h provided by libicu-dev package, build finds the header and later on linking fails. - Otherwise fails with the error described in this bug. By removing "webengine-icu" config option qt5webengine, build uses the one bundled in qt, which addresses at least the build failure. Here are the some hints in qt config files: qtwebengine/src/core/configure.json:16: "webengine-icu": { "type": "enum", "name": "webengine-system-icu", "values": { "system": "yes", "qt": "no" } }, qtwebengine/config_help.txt:8: -webengine-icu ................. Use system ICU libraries [system/qt] Thank you for your report.
The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
https://gitlab.com/buildroot.org/buildroot/-/issues
We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.
Thank you!
|
Created attachment 9351 [details] Buildroot defconfig The build of the package webengine fails with the error shown below. The missing file "unicode/uchar.h" is not under "/usr/include" but "$(HOST_DIR)/usr/include", which is obviously not used. I'm using Buildroot 2022.02.4 under Ubuntu 22.04 LTS. Thanks for your support. Wolfgang [6734/21974] CXX v8_snapshot/obj/v8/v8_libbase/cpu.o [6735/21974] CXX v8_snapshot/obj/v8/gen-regexp-special-case/gen-regexp-special-case.o FAILED: v8_snapshot/obj/v8/gen-regexp-special-case/gen-regexp-special-case.o /usr/bin/g++ -MMD -MF v8_snapshot/obj/v8/gen-regexp-special-case/gen-regexp-special-case.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 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DV8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=64 -DENABLE_MINOR_MC -DV8_INTL_SUPPORT -DV8_CONCURRENT_MARKING -DV8_ENABLE_LAZY_SOURCE_POSITIONS -DV8_WIN64_UNWINDING_INFO -DV8_ENABLE_REGEXP_INTERPRETER_THREADED_DISPATCH -DV8_SNAPSHOT_COMPRESSION -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -DV8_TARGET_ARCH_X64 -DV8_HAVE_TARGET_OS -DV8_TARGET_OS_LINUX -DDISABLE_UNTRUSTED_CODE_MITIGATIONS -DV8_COMPRESS_POINTERS -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_DEPRECATION_WARNINGS -DV8_REVERSE_JSARGS -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -Iv8_snapshot/gen -I../../3rdparty/chromium -I../../3rdparty/chromium/v8 -I../../3rdparty/chromium/v8/include -Iv8_snapshot/gen/v8 -Iv8_snapshot/gen -Iv8_snapshot/gen -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 -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wno-strict-overflow -Wno-return-type -O3 -fno-ident -fdata-sections -ffunction-sections -I/usr/include -I/usr/include -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 -c ../../3rdparty/chromium/v8/src/regexp/gen-regexp-special-case.cc -o v8_snapshot/obj/v8/gen-regexp-special-case/gen-regexp-special-case.o In file included from ../../3rdparty/chromium/v8/src/regexp/gen-regexp-special-case.cc:10: ../../3rdparty/chromium/v8/src/regexp/special-case.h:12:10: fatal error: unicode/uchar.h: No such file or directory 12 | #include "unicode/uchar.h" | ^~~~~~~~~~~~~~~~~ compilation terminated. [6736/21974] CXX v8_snapshot/obj/v8/v8_libbase/stack_trace.o [6737/21974] CXX host/obj/third_party/protobuf/protoc_lib/js_generator.o [6738/21974] CXX v8_snapshot/obj/v8/v8_libbase/division-by-constant.o [6739/21974] CXX v8_snapshot/obj/v8/v8_libbase/file-utils.o [6740/21974] CXX v8_snapshot/obj/v8/v8_libbase/functional.o [6741/21974] CXX v8_snapshot/obj/v8/bytecode_builtins_list_generator/bytecode-operands.o [6742/21974] ACTION //third_party/blink/public/mojom:mojom_platform__generator(/home/wolf/test/pc_x86_64_efi/build/qt5webengine-5.15.8/src/toolchain:target) [6743/21974] CXX v8_snapshot/obj/v8/v8_libbase/bounded-page-allocator.o [6744/21974] ACTION //third_party/devtools-frontend/src/front_end/sdk:devtools_entrypoint-bundle-tsconfig(/home/wolf/test/pc_x86_64_efi/build/qt5webengine-5.15.8/src/toolchain:target) [6745/21974] CXX v8_snapshot/obj/v8/bytecode_builtins_list_generator/generate-bytecodes-builtins-list.o [6746/21974] CXX v8_snapshot/obj/v8/bytecode_builtins_list_generator/bytecodes.o [6747/21974] ACTION //third_party/devtools-frontend/src/front_end/ui:devtools_entrypoint-bundle-tsconfig(/home/wolf/test/pc_x86_64_efi/build/qt5webengine-5.15.8/src/toolchain:target) [6748/21974] CXX host/obj/third_party/protobuf/protoc_lib/python_generator.o [6749/21974] ACTION //third_party/dav1d:dav1d_asm_action(/home/wolf/test/pc_x86_64_efi/build/qt5webengine-5.15.8/src/toolchain:target) [6750/21974] ACTION //third_party/dav1d:dav1d_asm_action(/home/wolf/test/pc_x86_64_efi/build/qt5webengine-5.15.8/src/toolchain:target) [6751/21974] CXX v8_snapshot/obj/v8/torque/torque.o [6752/21974] CXX v8_snapshot/obj/v8/torque_base/torque_base_jumbo_1.o [6753/21974] CXX host/obj/third_party/perfetto/src/trace_processor/db/lib/column.o [6754/21974] CXX v8_snapshot/obj/v8/torque_base/torque_base_jumbo_2.o [6755/21974] CXX v8_snapshot/obj/v8/torque_base/torque_base_jumbo_3.o ninja: build stopped: subcommand failed. make[5]: *** [Makefile.gn_run:360: 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/wolf/test/pc_x86_64_efi/build/qt5webengine-5.15.8/.stamp_built] Error 2 make: *** [Makefile:23: _all] Error 2