Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 915953

Summary: dev-qt/qtwebengine-6.6.0: fatal error: QtWebEngineCore/private/qtwebenginecoreglobal_p.h: No such file or directory
Product: Gentoo Linux Reporter: Andrew Ammerlaan <andrewammerlaan>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Status: RESOLVED FIXED    
Severity: normal CC: ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 351559    
Attachments: build log

Description Andrew Ammerlaan gentoo-dev 2023-10-18 11:32:30 UTC
[ebuild  NS    ] dev-qt/qtwebengine-6.6.0:6/6.6.0::gentoo [5.15.11_p20230927:5/5.15::gentoo] USE="alsa geolocation jumbo-build opengl%* pdfium%* pulseaudio qml%* screencast system-icu vaapi%* vulkan%* widgets -bindist -custom-cflags% -designer -kerberos -test (-debug%)" 0 KiB

Fails with:

FAILED: obj/QtWebEngineCore/authentication_dialog_controller.o
/usr/bin/x86_64-pc-linux-gnu-g++ -MMD -MF obj/QtWebEngineCore/authentication_dialog_controller.o.d -DCHROMIUM_VERSION=112.0.5615.213 -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 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DQT_NO_KEYWORDS-DQT_USE_QSTRINGBUILDER -DQTWEBENGINECORE_VERSION_STR=6.6.0 -DQTWEBENGINEPROCESS_NAME=QtWebEngineProcess -DBUILDING_CHROMIUM -DQ_FORWARD_DECLARE_OBJC_CLASS=QT_FORWARD_DECLARE_CLASS -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_DEPRECATED_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_WEBENGINECORE_LIB -DQT_DISABLE_DEPRECATED_UP_TO=0x050000 -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DQT_NO_EXCEPTIONS -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_QUICK_LIB -DQT_QML_LIB -DQT_QMLINTEGRATION_LIB -DQT_QMLMODELS_LIB -DQT_OPENGL_LIB -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_AS_CONST -DQT_NO_QEXCHANGE -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_WEBCHANNEL_LIB -DQT_POSITIONING_LIB -DLIBYUV_DISABLE_NEON -DVK_USE_PLATFORM_XCB_KHR -DGL_GLEXT_PROTOTYPES -DUSE_GLX -DUSE_EGL -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 -DSK_CODEC_DECODES_PNG -DSK_CODEC_DECODES_WEBP -DSK_ENCODE_PNG -DSK_ENCODE_WEBP -DSK_ENABLE_SKSL -DSK_UNTIL_CRBUG_1187654_IS_FIXED -DSK_USER_CONFIG_HEADER=\"../../skia/config/SkUserConfig.h\" -DSK_WIN_FONTMGR_NO_SIMULATIONS -DSK_GL -DSK_CODEC_DECODES_JPEG -DSK_ENCODE_JPEG -DSK_HAS_WUFFS_LIBRARY -DSK_VULKAN=1 -DSK_SUPPORT_GPU=1 -DSK_GPU_WORKAROUNDS_HEADER=\"gpu/config/gpu_driver_bug_workaround_autogen.h\" -DV8_USE_EXTERNAL_STARTUP_DATA -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1-DWEBRTC_USE_X11 -DWEBRTC_USE_PIPEWIRE -DWEBRTC_USE_GIO -DLOGGING_INSIDE_WEBRTC -DLEVELDB_PLATFORM_CHROMIUM=1 -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -DUSE_SYSTEM_ZLIB=1 -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WARNINGS -DCPPGC_CAGED_HEAP -DCPPGC_YOUNG_GENERATION -DCPPGC_POINTER_COMPRESSION -DCPPGC_SLIM_WRITE_BARRIER -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/skia/config -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/skia/include/core -Igen -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium -I/tmp/portage/dev-qt/qtwebengine-6.6.0/work/qtwebengine-everywhere-src-6.6.0_build/include -I/tmp/portage/dev-qt/qtwebengine-6.6.0/work/qtwebengine-everywhere-src-6.6.0_build/include/QtWebEngineCore -I/tmp/portage/dev-qt/qtwebengine-6.6.0/work/qtwebengine-everywhere-src-6.6.0/src/core/api -I/tmp/portage/dev-qt/qtwebengine-6.6.0/work/qtwebengine-everywhere-src-6.6.0_build/src/core/api -I/tmp/portage/dev-qt/qtwebengine-6.6.0/work/qtwebengine-everywhere-src-6.6.0_build/include/QtWebEngineCore/6.6.0 -I/tmp/portage/dev-qt/qtwebengine-6.6.0/work/qtwebengine-everywhere-src-6.6.0_build/include/QtWebEngineCore/6.6.0/QtWebEngineCore -I/tmp/portage/dev-qt/qtwebengine-6.6.0/work/qtwebengine-everywhere-src-6.6.0_build/src/core/api/WebEngineCore_autogen/include -I/tmp/portage/dev-qt/qtwebengine-6.6.0/work/qtwebengine-everywhere-src-6.6.0/src/core -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto -Igen/third_party/perfetto/build_config -I/usr/include/qt6/QtCore -I/usr/include/qt6 -I/usr/lib64/qt6/mkspecs/linux-g++ -I/usr/include/qt6/QtGui -I/usr/include -I/usr/include/qt6/QtNetwork -I/usr/include/qt6/QtQuick -I/usr/include/qt6/QtQml -I/usr/include/qt6/QtQmlIntegration -I/usr/include/qt6/QtQmlModels -I/usr/include/qt6/QtOpenGL -I/usr/include/qt6/QtCore/6.6.0 -I/usr/include/qt6/QtCore/6.6.0/QtCore -I/usr/include/qt6/QtGui/6.6.0 -I/usr/include/qt6/QtGui/6.6.0/QtGui -I/usr/include/qt6/QtQuick/6.6.0 -I/usr/include/qt6/QtQuick/6.6.0/QtQuick -I/usr/include/qt6/QtQmlModels/6.6.0 -I/usr/include/qt6/QtQmlModels/6.6.0/QtQmlModels -I/usr/include/qt6/QtQml/6.6.0 -I/usr/include/qt6/QtQml/6.6.0/QtQml -I/usr/include/qt6/QtWebChannel -I/usr/include/qt6/QtPositioning -Igen/.moc -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/libyuv/include -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/jsoncpp/source/include -Igen/third_party/dawn/include -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/dawn/include -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/khronos -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/gpu -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/vulkan-deps/vulkan-headers/src/include -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/ipcz/include -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/ced/src -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/skia -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/wuffs/src/release/c -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/vulkan/include -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/net/third_party/quiche/overrides -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/net/third_party/quiche/src/quiche/common/platform/default -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/net/third_party/quiche/src -Igen/net/third_party/quiche/src -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/webrtc_overrides -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/libwebm/source -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/mesa_headers -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/leveldatabase -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/leveldatabase/src -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/leveldatabase/src/include -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/crashpad/crashpad -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/linux -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/non_win -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/third_party/libaom/source/libaom -I../../../../../qtwebengine-everywhere-src-6.6.0/src/3rdparty/chromium/v8/include -Igen/v8/include -O2 -pipe -march=skylake -mtune=skylake -Wall -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 -Wno-psabi -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-unknown-pragmas -Wno-address -Wno-parentheses -Wno-sign-compare -Wno-stringop-overflow -Wno-stringop-overread -Wno-psabi -Wno-multichar -Wno-format-zero-length -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pipe -pthread -m64 -msse3 -fno-omit-frame-pointer -fvisibility=hidden -Wall -Wextra -fno-exceptions -Wno-unused-parameter -Wno-expansion-to-defined -Wno-packed-not-aligned -fPIC -I/usr/include/nss -I/usr/include/nspr -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -Wno-deprecated-copy -Wno-expansion-to-defined -std=gnu++20 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -std=c++20 -Wno-ignored-qualifiers -Wall -Wextra -fno-exceptions -Wno-unused-parameter -Wno-expansion-to-defined -Wno-packed-not-aligned -fPIC -Wsuggest-override -c /tmp/portage/dev-qt/qtwebengine-6.6.0/work/qtwebengine-everywhere-src-6.6.0/src/core/authentication_dialog_controller.cpp -o obj/QtWebEngineCore/authentication_dialog_controller.o
In file included from /tmp/portage/dev-qt/qtwebengine-6.6.0/work/qtwebengine-everywhere-src-6.6.0/src/core/authentication_dialog_controller.cpp:4:
/tmp/portage/dev-qt/qtwebengine-6.6.0/work/qtwebengine-everywhere-src-6.6.0/src/core/authentication_dialog_controller.h:18:10: fatal error: QtWebEngineCore/private/qtwebenginecoreglobal_p.h: No such file or directory
18 | #include <QtWebEngineCore/private/qtwebenginecoreglobal_p.h>
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Comment 1 Andrew Ammerlaan gentoo-dev 2023-10-18 11:34:15 UTC
Created attachment 873078 [details]
build log
Comment 2 Ionen Wolkens gentoo-dev 2023-10-18 13:14:53 UTC
Never ran into this but giving it another build with same USE in case I missed something in 6.6.0.

Your /tmp isn't a symlink by any chances? (just a guess given there's been a lot of nonsense with that, I think that may be improved in upcoming 6.6.1 or 6.7.0 if not backported, need to check again).
Comment 3 Andrew Ammerlaan gentoo-dev 2023-10-18 13:18:27 UTC
(In reply to Ionen Wolkens from comment #2)
> Your /tmp isn't a symlink by any chances? (just a guess given there's been a
> lot of nonsense with that, I think that may be improved in upcoming 6.6.1 or
> 6.7.0 if not backported, need to check again).

Nope, no symlink, just a 24G tmpfs. 6.5.3 used to work, but I didn't try this USE flag combination on that version.
Comment 4 Ionen Wolkens gentoo-dev 2023-10-18 13:32:30 UTC
(In reply to Andrew Ammerlaan from comment #3)
> (In reply to Ionen Wolkens from comment #2)
> > Your /tmp isn't a symlink by any chances? (just a guess given there's been a
> > lot of nonsense with that, I think that may be improved in upcoming 6.6.1 or
> > 6.7.0 if not backported, need to check again).
> 
> Nope, no symlink, just a 24G tmpfs. 6.5.3 used to work, but I didn't try
> this USE flag combination on that version.
Alright. Upon closer look there may just be misdetection going on with pdfium given:

Qt PDF:
  Support V8 ............................. no
  Support XFA ............................ no
  Support XFA-BMP ........................ no
  Support XFA-GIF ........................ no
  Support XFA-PNG ........................ no
  Support XFA-TIFF ....................... no
  Bitcode support ........................ no
  Use static runtime ..................... no

(I can reproduce that with same USE)

Pretty sure it was fine when I pushed 6.6.0 though given I had all USE enabled on everything qt6, but maybe something happens if missing something -- I'll recheck the build rules.
Comment 5 Ionen Wolkens gentoo-dev 2023-10-18 13:36:16 UTC
(In reply to Ionen Wolkens from comment #4)
> Qt PDF:
>   Support V8 ............................. no
>   Support XFA ............................ no
>   Support XFA-BMP ........................ no
>   Support XFA-GIF ........................ no
>   Support XFA-PNG ........................ no
>   Support XFA-TIFF ....................... no
>   Bitcode support ........................ no
>   Use static runtime ..................... no
Or wait, was this always like this. Can't remember now.

Just noticed v8 is just disabled by default and it disables the rest, so it's probably not this.
Comment 6 Ionen Wolkens gentoo-dev 2023-10-18 13:38:09 UTC
(In reply to Ionen Wolkens from comment #5)
> (In reply to Ionen Wolkens from comment #4)
> > Qt PDF:
> >   Support V8 ............................. no
> >   Support XFA ............................ no
> >   Support XFA-BMP ........................ no
> >   Support XFA-GIF ........................ no
> >   Support XFA-PNG ........................ no
> >   Support XFA-TIFF ....................... no
> >   Bitcode support ........................ no
> >   Use static runtime ..................... no
> Or wait, was this always like this. Can't remember now.
> 
> Just noticed v8 is just disabled by default and it disables the rest, so
> it's probably not this.
(unrelated, but should probably enable that.. guess I'll have a look next version -- v8 is built either way)
Comment 7 Ionen Wolkens gentoo-dev 2023-10-18 14:04:16 UTC
I get the feeling this may be a case of failing if qtwebengine:6 is not already installed when USE=pdfium is enabled. Pretty sure I did try this before for 6.5.3 but with 6.6.0 I already had 6.6.0-rc installed.

But well, will know when this build finishes (I took care to unmerge qtwebengine:6 first).
Comment 8 Ionen Wolkens gentoo-dev 2023-10-18 17:02:24 UTC
(In reply to Ionen Wolkens from comment #7)
> I get the feeling this may be a case of failing if qtwebengine:6 is not
> already installed when USE=pdfium is enabled. Pretty sure I did try this
> before for 6.5.3 but with 6.6.0 I already had 6.6.0-rc installed.
> 
> But well, will know when this build finishes (I took care to unmerge
> qtwebengine:6 first).
Well that wasn't it, build succeeded using:

[ebuild   R   ] dev-qt/qtwebengine-6.6.0  USE="alsa geolocation jumbo-build opengl pdfium pulseaudio qml screencast system-icu vaapi vulkan widgets -bindist -custom-cflags -designer -kerberos -test" 

So no idea how you ran into this at the moment.
Comment 9 Andrew Ammerlaan gentoo-dev 2023-10-19 10:21:09 UTC
This USE configuration worked:

[binary   R    ] dev-qt/qtwebengine-6.6.0-1:6/6.6.0::gentoo  USE="alsa geolocation jumbo-build opengl pulseaudio qml screencast system-icu vaapi vulkan widgets -bindist -custom-cflags -designer -kerberos -pdfium -test" 0KiB

Now re-trying the original one that failed yesterday.
Comment 10 Andrew Ammerlaan gentoo-dev 2023-10-19 11:55:19 UTC
Hmm, now it works. Maybe it was just a fluke.
Comment 11 Larry the Git Cow gentoo-dev 2024-01-10 09:15:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e0505f87184b97e3eeb1621171beda057b5ba9c

commit 2e0505f87184b97e3eeb1621171beda057b5ba9c
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2024-01-10 08:35:38 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2024-01-10 09:08:21 +0000

    dev-qt/qtwebengine: tentatively work around race condition (qt6)
    
    Unknown if this really helps, depend on if the file was missing
    or if it was just failing to find where it is with bad include
    search -- but given it is generated good odds it is the former.
    
    Have not actually reproduced myself and it is possible another
    target also needs to be run, could potentially fail differently
    if that does not resolve it (forcing -j1 is of course out of the
    question for this package).
    
    Needs a proper investigation/fix, but given this tend to fail
    very late in the build it is not obvious and ccache likely makes
    it harder to fail. Does not help that these rules are created
    through several Qt cmake wrapper functions (the sync headers
    bits come from qtbase cmake files, not from here).
    
    May tentatively try to remove in a somewhat-distant future to see
    if it is still an issue, and/or when related-sounding fixes occurred
    in qtbase or qtwebengine.
    
    Closes: https://bugs.gentoo.org/915953
    Closes: https://bugs.gentoo.org/921680
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-qt/qtwebengine/qtwebengine-6.6.1.ebuild    | 7 +++++++
 dev-qt/qtwebengine/qtwebengine-6.6.9999.ebuild | 7 +++++++
 dev-qt/qtwebengine/qtwebengine-6.7.9999.ebuild | 7 +++++++
 dev-qt/qtwebengine/qtwebengine-6.9999.ebuild   | 7 +++++++
 4 files changed, 28 insertions(+)