Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-139959

qtwebengine fails to build from source

XMLWordPrintable

    • Linux/Wayland
    • 767383497 (134-based), 0a3701523 (130-based)

      Hi,

      I'm trying to upgrade the `qtwebengine` package in Guix, and it fails to build due to what looks like a dependency problem:

      FAILED: [code=1] obj/components/autofill/core/browser/browser/autofill_data_util.o 
      /gnu/store/nrqwmn4ir01xgnhd8xmr3h0vv99ygnhd-clang-20.1.8/bin/clang++ -MD -MF obj/components/autofill/core/browser/browser/autofill_data_util.o.d -DCHROME_VERSION_MAJOR=130 -DUSE_UDEV -DUSE_AURA=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_NONE -D_GLIBCXX_ASSERTIONS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DLEVELDB_PLATFORM_CHROMIUM=1 -DCHROMIUM -DLIBYUV_DISABLE_NEON -DLIBYUV_DISABLE_SVE -DLIBYUV_DISABLE_SME -DLIBYUV_DISABLE_LSX -DLIBYUV_DISABLE_LASX -DSK_ENABLE_SKSL -DSK_UNTIL_CRBUG_1187654_IS_FIXED -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_WIN_FONTMGR_NO_SIMULATIONS -DSK_DISABLE_LEGACY_INIT_DECODERS -DSK_DISABLE_LEGACY_BACKEND_TEXTURE_FUNCS -DSK_DISABLE_LEGACY_TEXTURE_INFO_FUNCS -DSK_DISABLE_LEGACY_BACKEND_SEMAPHORE_FUNCS -DSK_DISABLE_LEGACY_GRAPHITE_IMAGES -DSK_DISABLE_LEGACY_DAWN_TEXTURE_INFO_FUNCS -DSK_DISABLE_LEGACY_DAWN_BACKEND_TEXTURE_FUNCS -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_GANESH -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DSK_GL -DSK_VULKAN=1 -DSK_GRAPHITE -DVK_USE_PLATFORM_XCB_KHR -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DHAVE_PTHREAD -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -Igen -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/leveldatabase -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/leveldatabase/src -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/leveldatabase/src/include -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/net/third_party/quiche/overrides -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/net/third_party/quiche/src/quiche/common/platform/default -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/net/third_party/quiche/src -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/libyuv/include -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/skia -Igen/third_party/skia -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/wuffs/src/release/c -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/vulkan/include -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/vulkan-headers/src/include -Igen/third_party/dawn/include -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/dawn/include -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/khronos -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/gpu -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/base/allocator/partition_allocator/src -Igen/base/allocator/partition_allocator/src -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/ced/src -I../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/third_party/ipcz/include -Igen/net/third_party/quiche/src -Wall -Wextra -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wimplicit-fallthrough -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wno-deprecated-declarations -Wno-cast-function-type -Wno-vla-extension -Wno-thread-safety-reference-return -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -Wno-unknown-argument -Wno-unknown-attributes -Wno-unknown-warning-option -Wno-ignored-attributes -Wno-predefined-identifier-outside-function -Wno-self-assign -Wno-unknown-pragmas -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -fno-sized-deallocation -m64 -msse3 -no-canonical-prefixes -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -fno-omit-frame-pointer -gdwarf-4 -g1 -gdwarf-aranges -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wexit-time-destructors -Wno-redundant-parens -Wno-redundant-parens -DPROTOBUF_ALLOW_DEPRECATED=1 -DNOMINMAX -isystem/gnu/store/82v1mvhpq8yjfqp5giy78xz6yaa1ic0q-nss-3.101.4/include/nss -isystem/gnu/store/gyqmi0lswdm13vhbnjpqh3yyxqjs14y8-nspr-4.36/include/nspr -Wno-invalid-offsetof -Wenum-compare-conditional -Wno-c++11-narrowing-const-reference -Wno-missing-template-arg-list-after-template-kw -Wno-dangling-assignment-gsl -Wno-parentheses-equality -Wno-tautological-compare -Wno-thread-safety-attributes -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/components/autofill/core/browser/autofill_data_util.cc -o obj/components/autofill/core/browser/browser/autofill_data_util.o
      ../../../../../qtwebengine-everywhere-src-6.9.2/src/3rdparty/chromium/components/autofill/core/browser/autofill_data_util.cc:27:10: fatal error: 'components/grit/components_scaled_resources.h' file not found
         27 | #include "components/grit/components_scaled_resources.h"
            |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      1 error generated.

      The missing `components_scaled_resources.h` header is grit-generated, and the dependency on it seems to be present in the `qtwebengine/src/3rdparty/chromium/components/autofill/core/browser/DEPS` file:

      [...]
        "+components/grit/components_scaled_resources.h",
      [...]

      The build log suggests it's never built. It's not a grit problem, as calling something like `ninja -C src/core/RelWithDebInfo/x86_64 components_scaled_resources` in the build directory successfully generates the missing header.

      I'm attaching the complete build log, xz-compressed due to its large size.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            moheim Moss Heim
            apteryx Maxim Cournoyer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes