Excerpt from poudriere build log below. [ 99% 30402/30658] AR obj/components/visitedlink/renderer/librenderer.a [ 99% 30403/30658] AR obj/components/web_cache/renderer/librenderer.a [ 99% 30404/30658] STAMP obj/extensions/renderer/renderer.stamp [ 99% 30405/30658] LINK ./v8_context_snapshot_generator [ 99% 30406/30658] ACTION //tools/v8_context_snapshot:generate_v8_context_snapshot(/wrkdirs/usr/ports/www/qt6-webengine/work/.build/src/core/target_toolchain:target) FAILED: v8_context_snapshot.bin /usr/local/bin/python3.9 ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/build/gn_run_binary.py ./v8_context_snapshot_generator --output_file=v8_context_snapshot.bin ./v8_context_snapshot_generator failed with exit code -5 [ 99% 30406/30658] CXX obj/QtWebEngineCore/accessibility_tree_formatter_qt.o /wrkdirs/usr/ports/www/qt6-webengine/work/qtwebengine-everywhere-src-6.6.3/src/core/accessibility_tree_formatter_qt.cpp:148:14: warning: declaration shadows a local variable [-Wshadow] 148 | if (auto error_value = node.FindString("error")) | ^ /wrkdirs/usr/ports/www/qt6-webengine/work/qtwebengine-everywhere-src-6.6.3/src/core/accessibility_tree_formatter_qt.cpp:147:17: note: previous declaration is here 147 | std::string error_value; | ^ /wrkdirs/usr/ports/www/qt6-webengine/work/qtwebengine-everywhere-src-6.6.3/src/core/accessibility_tree_formatter_qt.cpp:153:14: warning: declaration shadows a local variable [-Wshadow] 153 | if (auto role_value = node.FindString("role")) | ^ /wrkdirs/usr/ports/www/qt6-webengine/work/qtwebengine-everywhere-src-6.6.3/src/core/accessibility_tree_formatter_qt.cpp:152:17: note: previous declaration is here 152 | std::string role_value; | ^ /wrkdirs/usr/ports/www/qt6-webengine/work/qtwebengine-everywhere-src-6.6.3/src/core/accessibility_tree_formatter_qt.cpp:170:14: warning: variable 'id_value' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 170 | if (auto maybe_id = node.FindInt("id")) | ^~~~~~~~ /wrkdirs/usr/ports/www/qt6-webengine/work/qtwebengine-everywhere-src-6.6.3/src/core/accessibility_tree_formatter_qt.cpp:172:55: note: uninitialized use occurs here 172 | WriteAttribute(false, base::StringPrintf("id=%d", id_value), &line); | ^~~~~~~~ /wrkdirs/usr/ports/www/qt6-webengine/work/qtwebengine-everywhere-src-6.6.3/src/core/accessibility_tree_formatter_qt.cpp:170:5: note: remove the 'if' if its condition is always true 170 | if (auto maybe_id = node.FindInt("id")) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 171 | id_value = *maybe_id; /wrkdirs/usr/ports/www/qt6-webengine/work/qtwebengine-everywhere-src-6.6.3/src/core/accessibility_tree_formatter_qt.cpp:169:17: note: initialize the variable 'id_value' to silence this warning 169 | int id_value; | ^ | = 0 3 warnings generated. [ 99% 30406/30658] CXX obj/QtWebEngineCore/autofill_popup_controller.o [ 99% 30406/30658] CXX obj/QtWebEngineCore/browser_accessibility_qt.o [ 99% 30406/30658] CXX obj/QtWebEngineCore/authentication_dialog_controller.o [ 99% 30406/30658] CXX obj/QtWebEngineCore/autofill_client_qt.o In file included from /wrkdirs/usr/ports/www/qt6-webengine/work/qtwebengine-everywhere-src-6.6.3/src/core/autofill_client_qt.cpp:8: In file included from /wrkdirs/usr/ports/www/qt6-webengine/work/qtwebengine-everywhere-src-6.6.3/src/core/render_widget_host_view_qt.h:8: In file included from /wrkdirs/usr/ports/www/qt6-webengine/work/qtwebengine-everywhere-src-6.6.3/src/core/delegated_frame_host_client_qt.h:9: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/content/browser/renderer_host/delegated_frame_host.h:23: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/components/viz/host/host_frame_sink_manager.h:22: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/components/viz/host/client_frame_sink_video_capturer.h:23: In file included from gen/services/viz/privileged/mojom/compositing/frame_sink_video_capture.mojom.h:30: In file included from gen/media/mojo/mojom/media_types.mojom.h:31: In file included from gen/media/mojo/mojom/encryption_pattern.mojom.h:34: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/media/mojo/mojom/encryption_pattern_mojom_traits.h:9: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/media/base/ipc/media_param_traits.h:10: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/media/base/ipc/media_param_traits_macros.h:34: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/media/base/supported_video_decoder_config.h:13: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/media/base/video_decoder_config.h:17: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/media/base/video_color_space.h:9: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/ui/gfx/color_space.h:15: ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/skia/ext/skcolorspace_trfn.h:26:68: warning: missing field 'b' initializer [-Wmissing-field-initializers] 26 | static constexpr skcms_TransferFunction kRec470SystemM = {2.2f, 1.f}; | ^ ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/skia/ext/skcolorspace_trfn.h:30:69: warning: missing field 'b' initializer [-Wmissing-field-initializers] 30 | static constexpr skcms_TransferFunction kRec470SystemBG = {2.8f, 1.f}; | ^ ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/skia/ext/skcolorspace_trfn.h:51:76: warning: missing field 'e' initializer [-Wmissing-field-initializers] 51 | 2.4, 0.947867345704f, 0.052132654296f, 0.077399380805f, 0.040449937172f}; | ^ ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/skia/ext/skcolorspace_trfn.h:61:75: warning: missing field 'b' initializer [-Wmissing-field-initializers] 61 | 1.034080527699f}; | ^ ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/skia/ext/skcolorspace_trfn.h:70:60: warning: missing field 'b' initializer [-Wmissing-field-initializers] 70 | static constexpr skcms_TransferFunction kA98RGB = {2.2f, 1.}; | ^ ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/skia/ext/skcolorspace_trfn.h:73:65: warning: missing field 'b' initializer [-Wmissing-field-initializers] 73 | static constexpr skcms_TransferFunction kProPhotoRGB = {1.8f, 1.}; | ^ ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/skia/ext/skcolorspace_trfn.h:82:54: warning: missing field 'a' initializer [-Wmissing-field-initializers] 82 | static constexpr skcms_TransferFunction kInvalid = {0}; | ^ ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/skia/ext/skcolorspace_trfn.h:86:67: warning: missing field 'b' initializer [-Wmissing-field-initializers] 86 | static constexpr skcms_TransferFunction kRec709Apple = {1.961f, 1.}; | ^ In file included from /wrkdirs/usr/ports/www/qt6-webengine/work/qtwebengine-everywhere-src-6.6.3/src/core/autofill_client_qt.cpp:8: In file included from /wrkdirs/usr/ports/www/qt6-webengine/work/qtwebengine-everywhere-src-6.6.3/src/core/render_widget_host_view_qt.h:8: In file included from /wrkdirs/usr/ports/www/qt6-webengine/work/qtwebengine-everywhere-src-6.6.3/src/core/delegated_frame_host_client_qt.h:9: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/content/browser/renderer_host/delegated_frame_host.h:23: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/components/viz/host/host_frame_sink_manager.h:22: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/components/viz/host/client_frame_sink_video_capturer.h:23: In file included from gen/services/viz/privileged/mojom/compositing/frame_sink_video_capture.mojom.h:30: In file included from gen/media/mojo/mojom/media_types.mojom.h:31: In file included from gen/media/mojo/mojom/encryption_pattern.mojom.h:34: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/media/mojo/mojom/encryption_pattern_mojom_traits.h:9: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/media/base/ipc/media_param_traits.h:10: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/media/base/ipc/media_param_traits_macros.h:34: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/media/base/supported_video_decoder_config.h:13: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/media/base/video_decoder_config.h:23: In file included from ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/ui/gfx/hdr_metadata.h:10: ../../../../../qtwebengine-everywhere-src-6.6.3/src/3rdparty/chromium/skia/ext/skcolorspace_primaries.h:115:53: warning: missing field 'fRY' initializer [-Wmissing-field-initializers] 115 | static constexpr SkColorSpacePrimaries kInvalid = {0}; | ^ 9 warnings generated. ninja: build stopped: subcommand failed. *** [src/core/Release/amd64/QtWebEngineCore.stamp] Error code 1 make[3]: stopped in /wrkdirs/usr/ports/www/qt6-webengine/work/.build 1 error make[3]: stopped in /wrkdirs/usr/ports/www/qt6-webengine/work/.build *** [src/core/CMakeFiles/QtWebEngineCore_Release_amd64.dir/all] Error code 2 make[2]: stopped in /wrkdirs/usr/ports/www/qt6-webengine/work/.build 1 error make[2]: stopped in /wrkdirs/usr/ports/www/qt6-webengine/work/.build *** [all] Error code 2 make[1]: stopped in /wrkdirs/usr/ports/www/qt6-webengine/work/.build 1 error make[1]: stopped in /wrkdirs/usr/ports/www/qt6-webengine/work/.build ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make: stopped in /usr/ports/www/qt6-webengine
It looks like it should build fine, with no errors on PortsFallout[1] and 6.6.3 builds fine on FreeBSD 13 and CURRENT according to FreshPorts[2]. 1. https://portsfallout.com/fallout?port=+www%2Fqt6-webengine 2. https://www.freshports.org/www/qt6-webengine
www/chromium fails with almost the same error [ 99% 62300/62307] python3 ../../build/gn_run_binary.py ./v8_context_snapshot_generator --output_file=v8_context_snapshot.bin FAILED: v8_context_snapshot.bin python3 ../../build/gn_run_binary.py ./v8_context_snapshot_generator --output_file=v8_context_snapshot.bin ./v8_context_snapshot_generator failed with exit code -5 Any clues on what could be the culprit ?
Perhaps building www/qt6-webengine and www/chromium on poudriere-devel running in jail is the cause of problems with linking ?
Perhaps using tmpfs for everything was the culprit. I am no longer able to reproduce the failure.
It is probably still relevant, follow the thread: https://lists.freebsd.org/archives/freebsd-current/2024-November/006663.html
I tried on the most recent CURRENT, but the problems persist.
Trace the v8_context_snapshot_generator command and see why it actually fails. Just go to workdir/chromium*/out/Release and do ktrace -di python3 ../../build/gn_run_binary.py ./v8_context_snapshot_generator --output_file=v8_context_snapshot.bin
(In reply to Robert Nagy from comment #7) That's really challenging. Building takes several hours, everything is done by poudriere in tmpfs, and the time window to do the tests is concise, even if I can spot the right time and kill poudriere to freeze cleanup.
(In reply to Marek Zarychta from comment #8) run your jail, enter it and run the build manually using tmpfs for everything :) or just build outside of poudriere on tmpfs
It will be hard to progress with troubleshooting this issue considering that building Chromium takes a lot of CPU cycles.