Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933368 - dev-qt/qtwebengine-5.15.14 chrome/grit/generated_resources.h: No such file or directory
Summary: dev-qt/qtwebengine-5.15.14 chrome/grit/generated_resources.h: No such file or...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL: https://codereview.qt-project.org/c/q...
Whiteboard:
Keywords:
Depends on:
Blocks: parallel-make
  Show dependency tree
 
Reported: 2024-06-01 12:36 UTC by Benjamin Réveillé
Modified: 2024-07-03 19:51 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix_build_pdf_extension_util.patch (fix_build_pdf_extension_util.patch,336 bytes, patch)
2024-07-03 19:51 UTC, sergio
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Réveillé 2024-06-01 12:36:14 UTC
Fails with :

[31mFAILED: [0mobj/qtwebengine/browser/pdf/pdf/pdf_extension_util.o 
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -MMD -MF obj/qtwebengine/browser/pdf/pdf/pdf_extension_util.o.d -DCONTENT_IMPLEMENTATION -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 -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_BUILTIN_ISAC_FIX=0 -DWEBRTC_USE_BUILTIN_ISAC_FLOAT=1 -DWEBRTC_USE_X11 -DWEBRTC_USE_X11 -DHAVE_SCTP -DNO_MAIN_THREAD_WRAPPING -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_USE_LIBGIFCODEC -DSK_VULKAN_HEADER=\"../../skia/config/SkVulkanConfig.h\" -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -DUSE_SYSTEM_ZLIB=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -DLEVELDB_PLATFORM_CHROMIUM=1 -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 -Igen -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen -Igen -Igen -Igen -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/libyuv/include -Igen -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/jsoncpp/source/include -Igen -Igen -Igen -Igen -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/vulkan_headers/include -Igen -Igen -Igen -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/khronos -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/gpu -Igen/third_party/dawn/src/include -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/dawn/src/include -Igen -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/protobuf/src -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/ced/src -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/webrtc_overrides -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/skia -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/libgifcodec -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/vulkan/include -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/vulkan_headers/include -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/crashpad/crashpad -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/non_mac -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/linux -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/non_win -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/mesa_headers -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/libwebm/source -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/leveldatabase -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/leveldatabase/src -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/third_party/leveldatabase/src/include -I../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/v8/include -Igen/v8/include -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 -g0 -fvisibility=hidden -I/usr/include/nss -I/usr/include/nspr -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 -Wno-deprecated-declarations -c ../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/qtwebengine/browser/pdf/pdf_extension_util.cc -o obj/qtwebengine/browser/pdf/pdf/pdf_extension_util.o
../../../../qtwebengine-5.15.13_p20240510/src/3rdparty/chromium/qtwebengine/browser/pdf/pdf_extension_util.cc:49:10: fatal error: chrome/grit/generated_resources.h: No such file or directory
   49 | #include "chrome/grit/generated_resources.h"

Suspected it was a cchache issue and confirmed by successfully emerging with FEATURES="-ccache" worked confirming its a ccache issue.

Ebuild should worn it is incompatible with ccache
Comment 1 Ionen Wolkens gentoo-dev 2024-06-01 12:52:57 UTC
Looks like the same that previously hit with qtwebengine:6, it's a race condition that started happening when using ninja-1.12 due to a missing Gn dependency.

Not directly related to ccache but is easier to hit because it builds quicker with it (or at least when not mostly getting cache misses).

We have a downstream patch for Qt6 and the fix is also pending upstream ($URL), but Qt5 never received that bit afaik (I never really touch/try that one).
Comment 2 Ionen Wolkens gentoo-dev 2024-06-01 13:02:50 UTC
(note that this is a different missing dependency than the one that already got fixed and about everyone was hitting, it's missing in one of Qt's BUILD.gn rather than chromium's).
Comment 3 Christophe PEREZ 2024-06-02 02:40:21 UTC
(In reply to Benjamin Réveillé from comment #0)
> Suspected it was a ccache issue and confirmed by successfully emerging with
> FEATURES="-ccache" worked confirming its a ccache issue.

Same here. Thanks
Comment 4 Attila Tóth 2024-06-04 11:03:31 UTC
There seems to be a problem with the package version according to my understanding: qtwebengine-5.15.13_p20240510 vs qtwebengine-5.15.14_p20240510!
asturm should take a look.
His distfiles directory (https://dev.gentoo.org/~asturm/distfiles/) contains qtwebengine-5.15.14_p20240510-patchset.tar.xz, but qtwebengine-5.15.13_p20240510.tar.xz and the ebuild is looking for qtwebengine-5.15.14_p20240510.tar.xz...
Comment 5 Andreas Sturmlechner gentoo-dev 2024-06-04 14:53:47 UTC
Not a problem, version is modified by ebuild.
Comment 6 sergio 2024-07-03 12:36:32 UTC
we got the same problem on Fedora
Comment 7 sergio 2024-07-03 19:51:22 UTC
Created attachment 896907 [details, diff]
fix_build_pdf_extension_util.patch

I did this patch and works for me ...