Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933492 - dev-qt/qtwebengine-6.7.1 fails to build
Summary: dev-qt/qtwebengine-6.7.1 fails to build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-03 20:26 UTC by Tobias Leupold
Modified: 2024-06-04 05:36 UTC (History)
2 users (show)

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


Attachments
Output of emerge --info '=dev-qt/qtwebengine-6.7.1::gentoo' (emerge-info.txt,7.08 KB, text/plain)
2024-06-03 20:26 UTC, Tobias Leupold
Details
Output of emerge -pqv '=dev-qt/qtwebengine-6.7.1::gentoo' (emerge-pqv.txt,285 bytes, text/plain)
2024-06-03 20:27 UTC, Tobias Leupold
Details
The complete build log (build.log.xz,610.50 KB, application/x-xz)
2024-06-03 20:28 UTC, Tobias Leupold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Leupold 2024-06-03 20:26:40 UTC
Created attachment 895010 [details]
Output of emerge --info '=dev-qt/qtwebengine-6.7.1::gentoo'

The build of dev-qt/qtwebengine-6.7.1 fails. The respective command is:

FAILED: obj/third_party/blink/renderer/core/core/core_jumbo_162.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -MMD -MF obj/third_party/blink/renderer/core/core/core_jumbo_162.o.d -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 -DBLINK_CORE_IMPLEMENTATION=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DLIBYUV_DISABLE_NEON -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_SKSURFACE_METHODS -DSK_DISABLE_LEGACY_GRAPHITE_IMAGE_FACTORIES -DSK_DISABLE_LEGACY_GRAPHITE_IMAGE_METHODS -DSK_DISABLE_LEGACY_SKSURFACE_FACTORIES -DSK_DISABLE_LEGACY_SKSURFACE_FLUSH -DSK_DISABLE_LEGACY_SKSURFACE_AS_IMAGE -DSK_DISABLE_LEGACY_SKSURFACE_DISPLAYLIST -DSK_DISABLE_LEGACY_IMAGE_SUBSET_METHODS -DSK_DISABLE_LEGACY_IMAGE_COLORSPACE_METHODS -DSK_DISABLE_LEGACY_IMAGE_RELEASE_PROCS -DSK_DISABLE_LEGACY_GL_BACKEND_SURFACE -DSK_DISABLE_LEGACY_INIT_DECODERS -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 -DUSE_GLX -DUSE_EGL -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DGOOGLE_PROTOBUF_INTERNAL_DONATE_STEAL_INLINE=0 -DHAVE_PTHREAD -DBLINK_IMPLEMENTATION=1 -DINSIDE_BLINK -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -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 -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 -DLEVELDB_PLATFORM_CHROMIUM=1 -DCRASHPAD_ZLIB_SOURCE_EXTERNAL -DUSE_SYSTEM_ZLIB=1 -DWTF_USE_WEBAUDIO_PFFFT=1 -DUSE_INNER_HTML_PARSER_FAST_PATH=1 -DUSE_SYSTEM_LIBJPEG -I. -Igen -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/net/third_party/quiche/overrides -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/net/third_party/quiche/src/quiche/common/platform/default -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/net/third_party/quiche/src -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/libyuv/include -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/skia -Igen/third_party/skia -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/wuffs/src/release/c -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/vulkan/include -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/vulkan-deps/vulkan-headers/src/include -Igen/third_party/dawn/include -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/dawn/include -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/khronos -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/gpu -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/ipcz/include -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/ced/src -Igen/net/third_party/quiche/src -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/webrtc_overrides -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/v8/include -Igen/v8/include -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/libwebm/source -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/mesa_headers -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/leveldatabase -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/leveldatabase/src -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/leveldatabase/src/include -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/crashpad/crashpad -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/linux -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/crashpad/crashpad/compat/non_win -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/libaom/source/libaom -I../../../../../qtwebengine-everywhere-src-6.7.1/src/3rdparty/chromium/third_party/ots/src/include -O2 -pipe -march=x86-64 -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 -Wno-unused-variable -I/usr/include/nss -I/usr/include/nspr -I/usr/include/gio-unix-2.0 -I/usr/lib64/libffi/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/libpng16 -I/usr/include/webp -I/usr/include/libxml2 -I/usr/include/libxml2 -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 -c gen/third_party/blink/renderer/core/core_jumbo_162.cc -o obj/third_party/blink/renderer/core/core/core_jumbo_162.o
{standard input}: Assembler messages:
{standard input}:9812: Warning: end of file not at end of a line; newline inserted
{standard input}:10952: Error: bad register name `%ed'
x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
Comment 1 Tobias Leupold 2024-06-03 20:27:12 UTC
Created attachment 895011 [details]
Output of emerge -pqv '=dev-qt/qtwebengine-6.7.1::gentoo'
Comment 2 Tobias Leupold 2024-06-03 20:28:41 UTC
Created attachment 895012 [details]
The complete build log
Comment 3 Ionen Wolkens gentoo-dev 2024-06-04 01:07:09 UTC
>x86_64-pc-linux-gnu-g++: fatal error: Killed signal terminated program cc1plus
This almost always means that you ran out of ram while building and the out-of-memory (OOM) killer terminated the process. If you look at dmesg's output and haven't rebooted since, should see a message about it.

The ebuild does try to check if have enough ram starting up (roughly 12*2GiB=24GB using MAKEOPTS' -jX), but if something else used it up (e.g. /var/tmp on tmpfs, or building multiple things at same time, your emerge --info is saying 21GB free currently), then it's easy to run out anyway even if you have 32GiB + no swap.

So, either lower the -jX value for this package, or ensure whatever else used the ram up doesn't.
Comment 4 Tobias Leupold 2024-06-04 05:36:45 UTC
Dang, you're right:

[351003.702327] Out of memory: Killed process 28373 (cc1plus) total-vm:3278284kB, anon-rss:3120884kB, file-rss:3200kB, shmem-rss:0kB, UID:250 pgtables:6260kB oom_score_adj:0

I tried it two times and it failed at this exact point both times. So tbh, I didn't think about that.

Well, so nowadays, even 32 GB RAM aren't enough anymore to build QtWebEngine without tweaking the build parameters. I'm really wondering when anybody puts an end to this lunacy, with whatever means.

Thanks for the quick reply and sorry for the noise however!