PF4Public / gentoo-overlay

Personal Gentoo overlay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

www-client/ungoogled-chromium-121.0.6167.139_p1: ../../third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc:137:7: error: no matching function for call to 'xmlSetStructuredErrorFunc'

fordfrog opened this issue · comments

FAILED: obj/third_party/blink/renderer/core/core/xslt_processor_libxslt.o 
x86_64-pc-linux-gnu-clang++ -MMD -MF obj/third_party/blink/renderer/core/core/xslt_processor_libxslt.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -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_EXTENSIVE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=caccdb0407e84357ca6490165e88dcad64e47d17 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBLINK_CORE_IMPLEMENTATION=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DBASE_USE_PERFETTO_CLIENT_LIBRARY=1 -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_DISABLE_LEGACY_GRDIRECTCONTEXT_FLUSH -DSK_DISABLE_LEGACY_GRDIRECTCONTEXT_BOOLS -DSK_DISABLE_LEGACY_GL_GRDIRECTCONTEXT_FACTORIES -DSK_DISABLE_LEGACY_PNG_WRITEBUFFER -DSK_SLUG_DISABLE_LEGACY_DESERIALIZE -DSK_DISABLE_LEGACY_VK_GRDIRECTCONTEXT_FACTORIES -DSK_DEFAULT_TYPEFACE_IS_EMPTY -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_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 -DU_IMPORT=U_EXPORT -DWEBRTC_ENABLE_AVX2 -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_X11 -DLOGGING_INSIDE_WEBRTC -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WARNINGS -DV8_USE_PERFETTO -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../../buildtools/third_party/libc++ -Igen/shim_headers/zlib_shim -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen/shim_headers/jsoncpp_shim -Igen/shim_headers/double_conversion_shim -Igen/shim_headers/libevent_shim -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../../net/third_party/quiche/overrides -I../../net/third_party/quiche/src/quiche/common/platform/default -I../../net/third_party/quiche/src -Igen/shim_headers/brotli_shim -Igen/shim_headers/zstd_shim -I../../third_party/libyuv/include -Igen/shim_headers/opus_shim -Igen/shim_headers/ffmpeg_shim -Igen/shim_headers/openh264_shim -Igen/shim_headers/crc32c_shim -I../../third_party/skia -Igen/third_party/skia -I../../third_party/wuffs/src/release/c -I../../third_party/vulkan/include -I../../third_party/vulkan-deps/vulkan-headers/src/include -Igen/shim_headers/libpng_shim -Igen/shim_headers/libwebp_shim -Igen/shim_headers/libXNVCtrl_shim -Igen/third_party/dawn/include -I../../third_party/dawn/include -I../../third_party/khronos -I../../gpu -Igen/shim_headers/flac_shim -Igen/shim_headers/snappy_shim -Igen/shim_headers/woff2_shim -I../../third_party/protobuf/src -Igen/protoc_out -I../../base/allocator/partition_allocator/src -Igen/base/allocator/partition_allocator/src -I../../third_party/abseil-cpp -I../../third_party/boringssl/src/include -I../../third_party/ipcz/include -I../../third_party/ced/src -Igen/net/third_party/quiche/src -I../../third_party/webrtc_overrides -I../../third_party/webrtc -Igen/third_party/webrtc -I../../v8/include -I../../third_party/libwebm/source -I../../third_party/mesa_headers -I../../third_party/leveldatabase -I../../third_party/leveldatabase/src -I../../third_party/leveldatabase/src/include -I../../third_party/crashpad/crashpad -I../../third_party/crashpad/crashpad/compat/linux -I../../third_party/crashpad/crashpad/compat/non_win -I../../third_party/libaom/source/libaom -I../../third_party/ots/src/include -Igen/v8/include -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wno-invalid-offsetof -Wno-vla-extension -Wno-thread-safety-reference-return -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -flto=thin -fno-split-lto-unit -fwhole-program-vtables -fcomplete-member-pointers -no-canonical-prefixes -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-6167-1706004111-41f78c57fb3a1fe49a5c549b16f0221465339af9.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wexit-time-destructors -Wglobal-constructors -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -g0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -Wno-redundant-parens -Wno-redundant-parens -DPROTOBUF_ALLOW_DEPRECATED=1 -Wconversion -Wno-float-conversion -Wno-sign-conversion -Wno-implicit-float-conversion -Wno-implicit-int-conversion -I/usr/include/nss -I/usr/include/nspr -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind -I/usr/include/libpng16 -I/usr/include/libxml2 -I/usr/include/libxml2 -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -nostdinc++ -isystem../../third_party/libc++/src/include -isystem../../third_party/libc++abi/src/include -fvisibility-inlines-hidden  -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=alderlake -pipe -frecord-gcc-switches -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc -o obj/third_party/blink/renderer/core/core/xslt_processor_libxslt.o
../../third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc:137:7: error: no matching function for call to 'xmlSetStructuredErrorFunc'
  137 |       xmlSetStructuredErrorFunc(console, XSLTProcessor::ParseErrorFunc);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/xmlerror.h:897:5: note: candidate function not viable: no known conversion from 'void (void *, xmlError *)' (aka 'void (void *, _xmlError *)') to 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const _xmlError *)') for 2nd argument
  897 |     xmlSetStructuredErrorFunc   (void *ctx,
      |     ^
  898 |                                  xmlStructuredErrorFunc handler);
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
# emerge -vp ungoogled-chromium

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 4.87 s (backtrack: 0/20).

[ebuild     U #] www-client/ungoogled-chromium-121.0.6167.139_p1::pf4public [119.0.6045.199_p1::pf4public] USE="X bluetooth clang convert-dict cups hevc libcxx%* nvidia official optimize-thinlto optimize-webui pgo proprietary-codecs pulseaudio qt5 qt6 system-brotli system-crc32c system-double-conversion system-ffmpeg system-harfbuzz system-icu system-jsoncpp system-libevent system-libusb system-openh264 system-openjpeg system-png system-snappy system-woff2 system-zstd thinlto vaapi widevine -cfi -cromite% -custom-cflags -debug -enable-driver -gtk4 -hangouts -headless -kerberos -override-data-dir -pax-kernel -screencast (-selinux) -system-abseil-cpp -system-av1 -system-libvpx -system-re2 -wayland (-uazo-bromite%)" L10N="cs -af -am -ar -bg -bn -ca -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

what might be the cause? some of the system use flags?

You'll need to revert chromium-121-libxml.patch in your build tree if you wish to continue the build. You'll also need to apply a patch from bc357a2 as there is another failure later on.

PS: I am at [51/3391] so there might be something else to fix :)

You'll need to revert chromium-121-libxml.patch in your build tree if you wish to continue the build. You'll also need to apply a patch from bc357a2 as there is another failure later on.

PS: I am at [51/3391] so there might be something else to fix :)

i already started over with the fix you provided. will see in ~3 hours whether it passes :-)

Looks good: https://github.com/PF4Public/ungoogled-chromium-bin/releases/tag/121.0.6167.139

You may need to disable system-jsoncpp if yours fails.

looks like i got the same error even though i'm using the latest commit of the ebuild:

FAILED: obj/third_party/blink/renderer/core/core/xslt_processor_libxslt.o 
x86_64-pc-linux-gnu-clang++ -MMD -MF obj/third_party/blink/renderer/core/core/xslt_processor_libxslt.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -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_EXTENSIVE -D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS -D_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS -DCR_LIBCXX_REVISION=caccdb0407e84357ca6490165e88dcad64e47d17 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DBLINK_CORE_IMPLEMENTATION=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DBASE_USE_PERFETTO_CLIENT_LIBRARY=1 -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_DISABLE_LEGACY_GRDIRECTCONTEXT_FLUSH -DSK_DISABLE_LEGACY_GRDIRECTCONTEXT_BOOLS -DSK_DISABLE_LEGACY_GL_GRDIRECTCONTEXT_FACTORIES -DSK_DISABLE_LEGACY_PNG_WRITEBUFFER -DSK_SLUG_DISABLE_LEGACY_DESERIALIZE -DSK_DISABLE_LEGACY_VK_GRDIRECTCONTEXT_FACTORIES -DSK_DEFAULT_TYPEFACE_IS_EMPTY -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_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 -DU_IMPORT=U_EXPORT -DWEBRTC_ENABLE_AVX2 -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_X11 -DLOGGING_INSIDE_WEBRTC -DV8_COMPRESS_POINTERS -DV8_COMPRESS_POINTERS_IN_SHARED_CAGE -DV8_31BIT_SMIS_ON_64BIT_ARCH -DV8_ENABLE_SANDBOX -DV8_DEPRECATION_WARNINGS -DV8_USE_PERFETTO -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../../buildtools/third_party/libc++ -Igen/shim_headers/zlib_shim -I../../third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen/shim_headers/jsoncpp_shim -Igen/shim_headers/double_conversion_shim -Igen/shim_headers/libevent_shim -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I../../net/third_party/quiche/overrides -I../../net/third_party/quiche/src/quiche/common/platform/default -I../../net/third_party/quiche/src -Igen/shim_headers/brotli_shim -Igen/shim_headers/zstd_shim -I../../third_party/libyuv/include -Igen/shim_headers/opus_shim -Igen/shim_headers/ffmpeg_shim -Igen/shim_headers/openh264_shim -Igen/shim_headers/crc32c_shim -I../../third_party/skia -Igen/third_party/skia -I../../third_party/wuffs/src/release/c -I../../third_party/vulkan/include -I../../third_party/vulkan-deps/vulkan-headers/src/include -Igen/shim_headers/libpng_shim -Igen/shim_headers/libwebp_shim -Igen/shim_headers/libXNVCtrl_shim -Igen/third_party/dawn/include -I../../third_party/dawn/include -I../../third_party/khronos -I../../gpu -Igen/shim_headers/flac_shim -Igen/shim_headers/snappy_shim -Igen/shim_headers/woff2_shim -I../../third_party/protobuf/src -Igen/protoc_out -I../../base/allocator/partition_allocator/src -Igen/base/allocator/partition_allocator/src -I../../third_party/abseil-cpp -I../../third_party/boringssl/src/include -I../../third_party/ipcz/include -I../../third_party/ced/src -Igen/net/third_party/quiche/src -I../../third_party/webrtc_overrides -I../../third_party/webrtc -Igen/third_party/webrtc -I../../v8/include -I../../third_party/libwebm/source -I../../third_party/mesa_headers -I../../third_party/leveldatabase -I../../third_party/leveldatabase/src -I../../third_party/leveldatabase/src/include -I../../third_party/crashpad/crashpad -I../../third_party/crashpad/crashpad/compat/linux -I../../third_party/crashpad/crashpad/compat/non_win -I../../third_party/libaom/source/libaom -I../../third_party/ots/src/include -Igen/v8/include -Wimplicit-fallthrough -Wextra-semi -Wunreachable-code-aggressive -Wthread-safety -Wno-missing-field-initializers -Wno-unused-parameter -Wno-psabi -Wloop-analysis -Wno-unneeded-internal-declaration -Wenum-compare-conditional -Wno-ignored-pragma-optimize -Wno-deprecated-builtins -Wno-bitfield-constant-conversion -Wno-deprecated-this-capture -Wno-invalid-offsetof -Wno-vla-extension -Wno-thread-safety-reference-return -Wshadow -fno-delete-null-pointer-checks -fno-ident -fno-strict-aliasing -fstack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -flto=thin -fno-split-lto-unit -fwhole-program-vtables -fcomplete-member-pointers -no-canonical-prefixes -ftrivial-auto-var-init=pattern -fno-omit-frame-pointer -fprofile-use=../../chrome/build/pgo_profiles/chrome-linux-6167-1706004111-41f78c57fb3a1fe49a5c549b16f0221465339af9.profdata -Wno-profile-instr-unprofiled -Wno-profile-instr-out-of-date -Wno-backend-plugin -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wexit-time-destructors -Wglobal-constructors -O2 -fdata-sections -ffunction-sections -fno-unique-section-names -fno-math-errno -g0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -Wno-redundant-parens -Wno-redundant-parens -DPROTOBUF_ALLOW_DEPRECATED=1 -Wconversion -Wno-float-conversion -Wno-sign-conversion -Wno-implicit-float-conversion -Wno-implicit-int-conversion -I/usr/include/nss -I/usr/include/nspr -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/elogind -I/usr/include/libpng16 -I/usr/include/libxml2 -I/usr/include/libxml2 -std=c++20 -Wno-trigraphs -gsimple-template-names -fno-exceptions -fno-rtti -nostdinc++ -isystem../../third_party/libc++/src/include -isystem../../third_party/libc++abi/src/include -fvisibility-inlines-hidden  -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -march=alderlake -pipe -frecord-gcc-switches -Wno-unknown-warning-option -Wno-builtin-macro-redefined -c ../../third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc -o obj/third_party/blink/renderer/core/core/xslt_processor_libxslt.o
../../third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc:137:7: error: no matching function for call to 'xmlSetStructuredErrorFunc'
  137 |       xmlSetStructuredErrorFunc(console, XSLTProcessor::ParseErrorFunc);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/libxml2/libxml/xmlerror.h:897:5: note: candidate function not viable: no known conversion from 'void (void *, xmlError *)' (aka 'void (void *, _xmlError *)') to 'xmlStructuredErrorFunc' (aka 'void (*)(void *, const _xmlError *)') for 2nd argument
  897 |     xmlSetStructuredErrorFunc   (void *ctx,
      |     ^
  898 |                                  xmlStructuredErrorFunc handler);
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

What is your libxml2 version?

What is your libxml2 version?

# equery list libxml2
 * Searching for libxml2 ...
[IP-] [  ] dev-libs/libxml2-2.12.4:2
# grep -A1 xmlSetStructuredErrorFunc /usr/include/libxml2/libxml/*
/usr/include/libxml2/libxml/xmlerror.h:    xmlSetStructuredErrorFunc	(void *ctx,
/usr/include/libxml2/libxml/xmlerror.h-				 xmlStructuredErrorFunc handler);

grep ParseErrorFunc in third_party/blink/renderer/core/xml/xslt_processor*

# grep ParseErrorFunc third_party/blink/renderer/core/xml/xslt_processor*
third_party/blink/renderer/core/xml/xslt_processor.h:  static void ParseErrorFunc(void* user_data, xmlError*);
third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc:void XSLTProcessor::ParseErrorFunc(void* user_data, xmlError* error) {
third_party/blink/renderer/core/xml/xslt_processor_libxslt.cc:      xmlSetStructuredErrorFunc(console, XSLTProcessor::ParseErrorFunc);

Annnnd grep libxml /var/tmp/portage/www-client/ungoogled-chromium-121.0.6167.139_p1/temp/environment?

# grep libxml /var/tmp/portage/www-client/ungoogled-chromium-121.0.6167.139_p1/temp/environment
declare BDEPEND=$'\n\t\n\tsystem-abseil-cpp? ( >=dev-cpp/abseil-cpp-20230125.2 )\n\tsystem-brotli? ( >=app-arch/brotli-9999 )\n\tsystem-crc32c? ( dev-libs/crc32c )\n\tsystem-double-conversion? ( dev-libs/double-conversion )\n\tsystem-woff2? ( media-libs/woff2 )\n\tsystem-snappy? ( app-arch/snappy )\n\tsystem-jsoncpp? ( dev-libs/jsoncpp )\n\tsystem-libevent? ( dev-libs/libevent )\n\tsystem-openjpeg? ( media-libs/openjpeg:2= )\n\tsystem-re2? ( >=dev-libs/re2-0.2019.08.01:= )\n\tsystem-libvpx? ( >=media-libs/libvpx-1.13.0:=[postproc] )\n\tsystem-libusb? ( virtual/libusb:1 )\n\tsystem-icu? ( >=dev-libs/icu-71.1:= )\n\t>=dev-libs/libxml2-2.9.4-r3:=[icu]\n\tdev-libs/nspr:=\n\t>=dev-libs/nss-3.26:=\n\tdev-libs/libxslt:=\n\tmedia-libs/fontconfig:=\n\t>=media-libs/freetype-2.11.0-r1:=\n\tsystem-harfbuzz? ( >=media-libs/harfbuzz-3:0=[icu(-)] )\n\tmedia-libs/libjpeg-turbo:=\n\tsystem-png? ( media-libs/libpng:= )\n\tsystem-zstd? ( >=app-arch/zstd-1.5.5:= )\n\t>=media-libs/libwebp-0.4.0:=\n\tmedia-libs/mesa:=[gbm(+)]\n\t>=media-libs/openh264-1.6.0:=\n\tsystem-av1? (\n\t\t>=media-libs/dav1d-1.0.0:=\n\t\t>=media-libs/libaom-3.7.0:=\n\t)\n\tsys-libs/zlib:=\n\tx11-libs/libdrm:=\n\t!headless? (\n\t\tdev-libs/glib:2\n\t\t>=media-libs/alsa-lib-1.0.19:=\n\t\tpulseaudio? (\n\t\t\t|| (\n\t\t\t\tmedia-libs/libpulse\n\t\t\t\t>=media-sound/apulse-0.1.9\n\t\t\t)\n\t\t)\n\t\tsys-apps/pciutils:=\n\t\tkerberos? ( virtual/krb5 )\n\t\tvaapi? ( >=media-libs/libva-2.7:=[X?,wayland?] )\n\t\tX? (\n\t\t\tx11-libs/libX11:=\n\t\t\tx11-libs/libXext:=\n\t\t\tx11-libs/libxcb:=\n\t\t)\n\t\tx11-libs/libxkbcommon:=\n\t\twayland? (\n\t\t\tdev-libs/libffi:=\n\t\t\tdev-libs/wayland:=\n\t\t\tscreencast? ( media-video/pipewire:= )\n\t\t)\n\t)\n\n\t|| ( dev-lang/python:3.11[xml(+)] dev-lang/python:3.10[xml(+)] )\n\t|| ( ( dev-lang/python:3.11[xml(+)] \n\t\tdev-python/setuptools[python_targets_python3_11(-)]\n\t ) ( dev-lang/python:3.10[xml(+)] \n\t\tdev-python/setuptools[python_targets_python3_10(-)]\n\t ) )\n\t>=app-arch/gzip-1.7\n\t!headless? (\n\t\tqt5? ( dev-qt/qtcore:5 )\n\t\tqt6? ( dev-qt/qtbase:6 )\n\t)\n\t>=dev-build/gn-0.2114\n\tdev-lang/perl\n\tapp-alternatives/ninja\n\t>=dev-util/gperf-3.0.3\n\tdev-vcs/git\n\t>=net-libs/nodejs-7.6.0[inspector]\n\t>=sys-devel/bison-2.4.3\n\tapp-alternatives/lex\n\tvirtual/pkgconfig\n\tclang? (\n\t\tpgo? ( >=sys-devel/clang-18 >=sys-devel/lld-18\t)\n\t\t!pgo? ( sys-devel/clang sys-devel/lld )\n\t)\n\tcfi? ( sys-devel/clang-runtime[sanitize] )\n '
declare -- COMMON_DEPEND=$'\n\t\n\tsystem-abseil-cpp? ( >=dev-cpp/abseil-cpp-20230125.2 )\n\tsystem-brotli? ( >=app-arch/brotli-9999 )\n\tsystem-crc32c? ( dev-libs/crc32c )\n\tsystem-double-conversion? ( dev-libs/double-conversion )\n\tsystem-woff2? ( media-libs/woff2 )\n\tsystem-snappy? ( app-arch/snappy )\n\tsystem-jsoncpp? ( dev-libs/jsoncpp )\n\tsystem-libevent? ( dev-libs/libevent )\n\tsystem-openjpeg? ( media-libs/openjpeg:2= )\n\tsystem-re2? ( >=dev-libs/re2-0.2019.08.01:= )\n\tsystem-libvpx? ( >=media-libs/libvpx-1.13.0:=[postproc] )\n\tsystem-libusb? ( virtual/libusb:1 )\n\tsystem-icu? ( >=dev-libs/icu-71.1:= )\n\t>=dev-libs/libxml2-2.9.4-r3:=[icu]\n\tdev-libs/nspr:=\n\t>=dev-libs/nss-3.26:=\n\tdev-libs/libxslt:=\n\tmedia-libs/fontconfig:=\n\t>=media-libs/freetype-2.11.0-r1:=\n\tsystem-harfbuzz? ( >=media-libs/harfbuzz-3:0=[icu(-)] )\n\tmedia-libs/libjpeg-turbo:=\n\tsystem-png? ( media-libs/libpng:= )\n\tsystem-zstd? ( >=app-arch/zstd-1.5.5:= )\n\t>=media-libs/libwebp-0.4.0:=\n\tmedia-libs/mesa:=[gbm(+)]\n\t>=media-libs/openh264-1.6.0:=\n\tsystem-av1? (\n\t\t>=media-libs/dav1d-1.0.0:=\n\t\t>=media-libs/libaom-3.7.0:=\n\t)\n\tsys-libs/zlib:=\n\tx11-libs/libdrm:=\n\t!headless? (\n\t\tdev-libs/glib:2\n\t\t>=media-libs/alsa-lib-1.0.19:=\n\t\tpulseaudio? (\n\t\t\t|| (\n\t\t\t\tmedia-libs/libpulse\n\t\t\t\t>=media-sound/apulse-0.1.9\n\t\t\t)\n\t\t)\n\t\tsys-apps/pciutils:=\n\t\tkerberos? ( virtual/krb5 )\n\t\tvaapi? ( >=media-libs/libva-2.7:=[X?,wayland?] )\n\t\tX? (\n\t\t\tx11-libs/libX11:=\n\t\t\tx11-libs/libXext:=\n\t\t\tx11-libs/libxcb:=\n\t\t)\n\t\tx11-libs/libxkbcommon:=\n\t\twayland? (\n\t\t\tdev-libs/libffi:=\n\t\t\tdev-libs/wayland:=\n\t\t\tscreencast? ( media-video/pipewire:= )\n\t\t)\n\t)\n\n\tapp-arch/bzip2:=\n\tdev-libs/expat:=\n\tsystem-ffmpeg? (\n\t\t>=media-video/ffmpeg-4.3:=\n\t\t|| (\n\t\t\tmedia-video/ffmpeg[-samba]\n\t\t\t>=net-fs/samba-4.5.10-r1[-debug(-)]\n\t\t)\n\t\t>=media-libs/opus-1.3.1:=\n\t)\n\tnet-misc/curl[ssl]\n\tsys-apps/dbus:=\n\tmedia-libs/flac:=\n\tsys-libs/zlib:=[minizip]\n\t!headless? (\n\t\tX? ( \n\tx11-libs/libXcomposite:=\n\tx11-libs/libXcursor:=\n\tx11-libs/libXdamage:=\n\tx11-libs/libXfixes:=\n\t>=x11-libs/libXi-1.6.0:=\n\tx11-libs/libXrandr:=\n\tx11-libs/libXrender:=\n\tx11-libs/libXtst:=\n\tx11-libs/libxshmfence:=\n )\n\t\t>=app-accessibility/at-spi2-core-2.46.0:2\n\t\tmedia-libs/mesa:=[X?,wayland?]\n\t\tcups? ( >=net-print/cups-1.3.11:= )\n\t\tvirtual/udev\n\t\tx11-libs/cairo:=\n\t\tx11-libs/gdk-pixbuf:2\n\t\tx11-libs/pango:=\n\t\tqt5? (\n\t\t\tdev-qt/qtcore:5\n\t\t\tdev-qt/qtwidgets:5\n\t\t)\n\t\tqt6? ( dev-qt/qtbase:6[gui,widgets] )\n\t)\n'
declare -- COMMON_SNAPSHOT_DEPEND=$'\n\tsystem-abseil-cpp? ( >=dev-cpp/abseil-cpp-20230125.2 )\n\tsystem-brotli? ( >=app-arch/brotli-9999 )\n\tsystem-crc32c? ( dev-libs/crc32c )\n\tsystem-double-conversion? ( dev-libs/double-conversion )\n\tsystem-woff2? ( media-libs/woff2 )\n\tsystem-snappy? ( app-arch/snappy )\n\tsystem-jsoncpp? ( dev-libs/jsoncpp )\n\tsystem-libevent? ( dev-libs/libevent )\n\tsystem-openjpeg? ( media-libs/openjpeg:2= )\n\tsystem-re2? ( >=dev-libs/re2-0.2019.08.01:= )\n\tsystem-libvpx? ( >=media-libs/libvpx-1.13.0:=[postproc] )\n\tsystem-libusb? ( virtual/libusb:1 )\n\tsystem-icu? ( >=dev-libs/icu-71.1:= )\n\t>=dev-libs/libxml2-2.9.4-r3:=[icu]\n\tdev-libs/nspr:=\n\t>=dev-libs/nss-3.26:=\n\tdev-libs/libxslt:=\n\tmedia-libs/fontconfig:=\n\t>=media-libs/freetype-2.11.0-r1:=\n\tsystem-harfbuzz? ( >=media-libs/harfbuzz-3:0=[icu(-)] )\n\tmedia-libs/libjpeg-turbo:=\n\tsystem-png? ( media-libs/libpng:= )\n\tsystem-zstd? ( >=app-arch/zstd-1.5.5:= )\n\t>=media-libs/libwebp-0.4.0:=\n\tmedia-libs/mesa:=[gbm(+)]\n\t>=media-libs/openh264-1.6.0:=\n\tsystem-av1? (\n\t\t>=media-libs/dav1d-1.0.0:=\n\t\t>=media-libs/libaom-3.7.0:=\n\t)\n\tsys-libs/zlib:=\n\tx11-libs/libdrm:=\n\t!headless? (\n\t\tdev-libs/glib:2\n\t\t>=media-libs/alsa-lib-1.0.19:=\n\t\tpulseaudio? (\n\t\t\t|| (\n\t\t\t\tmedia-libs/libpulse\n\t\t\t\t>=media-sound/apulse-0.1.9\n\t\t\t)\n\t\t)\n\t\tsys-apps/pciutils:=\n\t\tkerberos? ( virtual/krb5 )\n\t\tvaapi? ( >=media-libs/libva-2.7:=[X?,wayland?] )\n\t\tX? (\n\t\t\tx11-libs/libX11:=\n\t\t\tx11-libs/libXext:=\n\t\t\tx11-libs/libxcb:=\n\t\t)\n\t\tx11-libs/libxkbcommon:=\n\t\twayland? (\n\t\t\tdev-libs/libffi:=\n\t\t\tdev-libs/wayland:=\n\t\t\tscreencast? ( media-video/pipewire:= )\n\t\t)\n\t)\n'
declare DEPEND=$'\n\t\n\tsystem-abseil-cpp? ( >=dev-cpp/abseil-cpp-20230125.2 )\n\tsystem-brotli? ( >=app-arch/brotli-9999 )\n\tsystem-crc32c? ( dev-libs/crc32c )\n\tsystem-double-conversion? ( dev-libs/double-conversion )\n\tsystem-woff2? ( media-libs/woff2 )\n\tsystem-snappy? ( app-arch/snappy )\n\tsystem-jsoncpp? ( dev-libs/jsoncpp )\n\tsystem-libevent? ( dev-libs/libevent )\n\tsystem-openjpeg? ( media-libs/openjpeg:2= )\n\tsystem-re2? ( >=dev-libs/re2-0.2019.08.01:= )\n\tsystem-libvpx? ( >=media-libs/libvpx-1.13.0:=[postproc] )\n\tsystem-libusb? ( virtual/libusb:1 )\n\tsystem-icu? ( >=dev-libs/icu-71.1:= )\n\t>=dev-libs/libxml2-2.9.4-r3:=[icu]\n\tdev-libs/nspr:=\n\t>=dev-libs/nss-3.26:=\n\tdev-libs/libxslt:=\n\tmedia-libs/fontconfig:=\n\t>=media-libs/freetype-2.11.0-r1:=\n\tsystem-harfbuzz? ( >=media-libs/harfbuzz-3:0=[icu(-)] )\n\tmedia-libs/libjpeg-turbo:=\n\tsystem-png? ( media-libs/libpng:= )\n\tsystem-zstd? ( >=app-arch/zstd-1.5.5:= )\n\t>=media-libs/libwebp-0.4.0:=\n\tmedia-libs/mesa:=[gbm(+)]\n\t>=media-libs/openh264-1.6.0:=\n\tsystem-av1? (\n\t\t>=media-libs/dav1d-1.0.0:=\n\t\t>=media-libs/libaom-3.7.0:=\n\t)\n\tsys-libs/zlib:=\n\tx11-libs/libdrm:=\n\t!headless? (\n\t\tdev-libs/glib:2\n\t\t>=media-libs/alsa-lib-1.0.19:=\n\t\tpulseaudio? (\n\t\t\t|| (\n\t\t\t\tmedia-libs/libpulse\n\t\t\t\t>=media-sound/apulse-0.1.9\n\t\t\t)\n\t\t)\n\t\tsys-apps/pciutils:=\n\t\tkerberos? ( virtual/krb5 )\n\t\tvaapi? ( >=media-libs/libva-2.7:=[X?,wayland?] )\n\t\tX? (\n\t\t\tx11-libs/libX11:=\n\t\t\tx11-libs/libXext:=\n\t\t\tx11-libs/libxcb:=\n\t\t)\n\t\tx11-libs/libxkbcommon:=\n\t\twayland? (\n\t\t\tdev-libs/libffi:=\n\t\t\tdev-libs/wayland:=\n\t\t\tscreencast? ( media-video/pipewire:= )\n\t\t)\n\t)\n\n\tapp-arch/bzip2:=\n\tdev-libs/expat:=\n\tsystem-ffmpeg? (\n\t\t>=media-video/ffmpeg-4.3:=\n\t\t|| (\n\t\t\tmedia-video/ffmpeg[-samba]\n\t\t\t>=net-fs/samba-4.5.10-r1[-debug(-)]\n\t\t)\n\t\t>=media-libs/opus-1.3.1:=\n\t)\n\tnet-misc/curl[ssl]\n\tsys-apps/dbus:=\n\tmedia-libs/flac:=\n\tsys-libs/zlib:=[minizip]\n\t!headless? (\n\t\tX? ( \n\tx11-libs/libXcomposite:=\n\tx11-libs/libXcursor:=\n\tx11-libs/libXdamage:=\n\tx11-libs/libXfixes:=\n\t>=x11-libs/libXi-1.6.0:=\n\tx11-libs/libXrandr:=\n\tx11-libs/libXrender:=\n\tx11-libs/libXtst:=\n\tx11-libs/libxshmfence:=\n )\n\t\t>=app-accessibility/at-spi2-core-2.46.0:2\n\t\tmedia-libs/mesa:=[X?,wayland?]\n\t\tcups? ( >=net-print/cups-1.3.11:= )\n\t\tvirtual/udev\n\t\tx11-libs/cairo:=\n\t\tx11-libs/gdk-pixbuf:2\n\t\tx11-libs/pango:=\n\t\tqt5? (\n\t\t\tdev-qt/qtcore:5\n\t\t\tdev-qt/qtwidgets:5\n\t\t)\n\t\tqt6? ( dev-qt/qtbase:6[gui,widgets] )\n\t)\n\n\t!headless? (\n\t\tgtk4? ( gui-libs/gtk:4[X?,wayland?] )\n\t\t!gtk4? ( x11-libs/gtk+:3[X?,wayland?] )\n\t)\n !!sys-devel/llvm:0'
declare RDEPEND=$'\n\t\n\tsystem-abseil-cpp? ( >=dev-cpp/abseil-cpp-20230125.2 )\n\tsystem-brotli? ( >=app-arch/brotli-9999 )\n\tsystem-crc32c? ( dev-libs/crc32c )\n\tsystem-double-conversion? ( dev-libs/double-conversion )\n\tsystem-woff2? ( media-libs/woff2 )\n\tsystem-snappy? ( app-arch/snappy )\n\tsystem-jsoncpp? ( dev-libs/jsoncpp )\n\tsystem-libevent? ( dev-libs/libevent )\n\tsystem-openjpeg? ( media-libs/openjpeg:2= )\n\tsystem-re2? ( >=dev-libs/re2-0.2019.08.01:= )\n\tsystem-libvpx? ( >=media-libs/libvpx-1.13.0:=[postproc] )\n\tsystem-libusb? ( virtual/libusb:1 )\n\tsystem-icu? ( >=dev-libs/icu-71.1:= )\n\t>=dev-libs/libxml2-2.9.4-r3:=[icu]\n\tdev-libs/nspr:=\n\t>=dev-libs/nss-3.26:=\n\tdev-libs/libxslt:=\n\tmedia-libs/fontconfig:=\n\t>=media-libs/freetype-2.11.0-r1:=\n\tsystem-harfbuzz? ( >=media-libs/harfbuzz-3:0=[icu(-)] )\n\tmedia-libs/libjpeg-turbo:=\n\tsystem-png? ( media-libs/libpng:= )\n\tsystem-zstd? ( >=app-arch/zstd-1.5.5:= )\n\t>=media-libs/libwebp-0.4.0:=\n\tmedia-libs/mesa:=[gbm(+)]\n\t>=media-libs/openh264-1.6.0:=\n\tsystem-av1? (\n\t\t>=media-libs/dav1d-1.0.0:=\n\t\t>=media-libs/libaom-3.7.0:=\n\t)\n\tsys-libs/zlib:=\n\tx11-libs/libdrm:=\n\t!headless? (\n\t\tdev-libs/glib:2\n\t\t>=media-libs/alsa-lib-1.0.19:=\n\t\tpulseaudio? (\n\t\t\t|| (\n\t\t\t\tmedia-libs/libpulse\n\t\t\t\t>=media-sound/apulse-0.1.9\n\t\t\t)\n\t\t)\n\t\tsys-apps/pciutils:=\n\t\tkerberos? ( virtual/krb5 )\n\t\tvaapi? ( >=media-libs/libva-2.7:=[X?,wayland?] )\n\t\tX? (\n\t\t\tx11-libs/libX11:=\n\t\t\tx11-libs/libXext:=\n\t\t\tx11-libs/libxcb:=\n\t\t)\n\t\tx11-libs/libxkbcommon:=\n\t\twayland? (\n\t\t\tdev-libs/libffi:=\n\t\t\tdev-libs/wayland:=\n\t\t\tscreencast? ( media-video/pipewire:= )\n\t\t)\n\t)\n\n\tapp-arch/bzip2:=\n\tdev-libs/expat:=\n\tsystem-ffmpeg? (\n\t\t>=media-video/ffmpeg-4.3:=\n\t\t|| (\n\t\t\tmedia-video/ffmpeg[-samba]\n\t\t\t>=net-fs/samba-4.5.10-r1[-debug(-)]\n\t\t)\n\t\t>=media-libs/opus-1.3.1:=\n\t)\n\tnet-misc/curl[ssl]\n\tsys-apps/dbus:=\n\tmedia-libs/flac:=\n\tsys-libs/zlib:=[minizip]\n\t!headless? (\n\t\tX? ( \n\tx11-libs/libXcomposite:=\n\tx11-libs/libXcursor:=\n\tx11-libs/libXdamage:=\n\tx11-libs/libXfixes:=\n\t>=x11-libs/libXi-1.6.0:=\n\tx11-libs/libXrandr:=\n\tx11-libs/libXrender:=\n\tx11-libs/libXtst:=\n\tx11-libs/libxshmfence:=\n )\n\t\t>=app-accessibility/at-spi2-core-2.46.0:2\n\t\tmedia-libs/mesa:=[X?,wayland?]\n\t\tcups? ( >=net-print/cups-1.3.11:= )\n\t\tvirtual/udev\n\t\tx11-libs/cairo:=\n\t\tx11-libs/gdk-pixbuf:2\n\t\tx11-libs/pango:=\n\t\tqt5? (\n\t\t\tdev-qt/qtcore:5\n\t\t\tdev-qt/qtwidgets:5\n\t\t)\n\t\tqt6? ( dev-qt/qtbase:6[gui,widgets] )\n\t)\n\n\t!headless? (\n\t\t|| (\n\t\t\tx11-libs/gtk+:3[X?,wayland?]\n\t\t\tgui-libs/gtk:4[X?,wayland?]\n\t\t)\n\t\tqt5? ( dev-qt/qtgui:5[X?,wayland?] )\n\t\tqt6? ( dev-qt/qtbase:6[X?,wayland?] )\n\t)\n\tvirtual/ttf-fonts\n\tselinux? ( sec-policy/selinux-chromium )\n\t!override-data-dir? (\n\t\t!www-client/chromium\n\t\t!www-client/chromium-bin\n\t\t!www-client/ungoogled-chromium-bin\n\t\t!www-client/cromite[-override-data-dir]\n\t)\n '
    local gn_system_libraries=(flac fontconfig freetype libdrm libjpeg libwebp libxml libxslt zlib);
    local PATCHES=("${WORKDIR}/chromium-patches-${PATCH_V}" "${FILESDIR}/chromium-cross-compile.patch" "${FILESDIR}/chromium-use-oauth2-client-switches-as-default.patch" "${FILESDIR}/chromium-108-EnumTable-crash.patch" "${FILESDIR}/chromium-109-system-openh264.patch" "${FILESDIR}/chromium-109-system-zlib.patch" "${FILESDIR}/chromium-111-InkDropHost-crash.patch" "${FILESDIR}/chromium-117-system-zstd.patch" "${FILESDIR}/chromium-119-minizip-cast.patch" "${FILESDIR}/chromium-121-libxml.patch" "${FILESDIR}/chromium-121-qrcode.patch" "${FILESDIR}/perfetto-system-zlib.patch" "${FILESDIR}/gtk-fix-prefers-color-scheme-query.diff" "${FILESDIR}/restore-x86-r2.patch");
    keeplibs+=(third_party/libwebm third_party/libx11 third_party/libxcb-keysyms third_party/libxml/chromium third_party/libyuv third_party/lit third_party/llvm third_party/lottie third_party/lss third_party/lzma_sdk third_party/mako third_party/maldoca third_party/maldoca/src/third_party/tensorflow_protos third_party/maldoca/src/third_party/zlibwrapper third_party/markupsafe third_party/material_color_utilities third_party/mesa third_party/metrics_proto third_party/minigbm third_party/modp_b64 third_party/nasm third_party/nearby third_party/neon_2_sse third_party/node third_party/omnibox_proto third_party/one_euro_filter third_party/openscreen third_party/openscreen/src/third_party/ third_party/openscreen/src/third_party/tinycbor/src/src third_party/ots third_party/pdfium third_party/pdfium/third_party/agg23 third_party/pdfium/third_party/base third_party/pdfium/third_party/bigint third_party/pdfium/third_party/freetype third_party/pdfium/third_party/lcms);

"${FILESDIR}/chromium-121-libxml.patch"

I'm sorry, but you're not using latest commit.

yeah, idk why but i checked the ebuild in build-info and it does not contain the newest restriction on libxml. that's weird. sorry for wasting your time...

i just reversed the patch to get to the end of the build, as diffing the ebuild in build-info and the one from your overlay did not show any other changes (except that libxml version restriction)

#300 (comment) huh?

i started the build over again previously so i thought the fix is already in the ebuild. i did that even before your comment. but the fix probably landed later in my copy of your overlay so i used an older version of the ebuild:

# diff /var/tmp/portage/www-client/ungoogled-chromium-121.0.6167.139_p1/build-info/ungoogled-chromium-121.0.6167.139_p1.ebuild /var/db/repos/pf4public/www-client/ungoogled-chromium/ungoogled-chromium-121.0.6167.139_p1.ebuild 
144c144
< 	>=dev-libs/libxml2-2.9.4-r3:=[icu]
---
> 	>=dev-libs/libxml2-2.12.4:=[icu]
407d406
< 		"${FILESDIR}/chromium-121-libxml.patch"

Perhaps you pull changes from https://github.com/gentoo-mirror/pf4public instead.

# eselect repository list -i | grep -i pf4
  [244] pf4public * (https://github.com/PF4Public/gentoo-overlay)

last 6k files to go...

i obviously got the fix much later than i started the build:

# LC_ALL=C ls -l  /var/tmp/portage/www-client/ungoogled-chromium-121.0.6167.139_p1/build-info/ungoogled-chromium-121.0.6167.139_p1.ebuild /var/db/repos/pf4public/www-client/ungoogled-chromium/ungoogled-chromium-121.0.6167.139_p1.ebuild
-rw-r--r-- 1 root    root    53005 Feb  4 15:17 /var/db/repos/pf4public/www-client/ungoogled-chromium/ungoogled-chromium-121.0.6167.139_p1.ebuild
-rw-r--r-- 1 portage portage 53049 Feb  4 13:42 /var/tmp/portage/www-client/ungoogled-chromium-121.0.6167.139_p1/build-info/ungoogled-chromium-121.0.6167.139_p1.ebuild

so it fails on json...

[4800/7131] "python3.11" "../../build/toolchain/gcc_link_wrapper.py" --output="./mksnapshot" -- x86_64-pc-linux-gnu-clang++ -pie -fuse-ld=lld -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -flto=thin -Wl,--thinlto-jobs=all -Wl,-mllvm,-import-instr-limit=30 -fwhole-program-vtables -Wl,--undefined-version -no-canonical-prefixes -Wl,-z,defs -Wl,--as-needed -nostdlib++ -Wl,--lto-O0 -Wl,-mllvm,-enable-ext-tsp-block-placement=1 -rdynamic -pie -Wl,--disable-new-dtags -Wl,-O2 -Wl,--gc-sections -Wl,--as-needed -Wl,--thinlto-jobs=30 -o "./mksnapshot" -Wl,--start-group @"./mksnapshot.rsp"  -Wl,--end-group  -ldl -lpthread -lrt -licui18n -licuuc -licudata -ljsoncpp -lz 
FAILED: mksnapshot 
"python3.11" "../../build/toolchain/gcc_link_wrapper.py" --output="./mksnapshot" -- x86_64-pc-linux-gnu-clang++ -pie -fuse-ld=lld -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -flto=thin -Wl,--thinlto-jobs=all -Wl,-mllvm,-import-instr-limit=30 -fwhole-program-vtables -Wl,--undefined-version -no-canonical-prefixes -Wl,-z,defs -Wl,--as-needed -nostdlib++ -Wl,--lto-O0 -Wl,-mllvm,-enable-ext-tsp-block-placement=1 -rdynamic -pie -Wl,--disable-new-dtags -Wl,-O2 -Wl,--gc-sections -Wl,--as-needed -Wl,--thinlto-jobs=30 -o "./mksnapshot" -Wl,--start-group @"./mksnapshot.rsp"  -Wl,--end-group  -ldl -lpthread -lrt -licui18n -licuuc -licudata -ljsoncpp -lz 
ld.lld: error: undefined symbol: Json::Value::Value(std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>> const&)
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::ExportJson(perfetto::trace_processor::TraceStorage const*, perfetto::trace_processor::json::OutputWriter*, std::__Cr::function<bool (char const*, char const*, std::__Cr::function<bool (char const*)>*)>, std::__Cr::function<bool (char const*)>, std::__Cr::function<bool (char const*)>))
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::ExportJson(perfetto::trace_processor::TraceStorage const*, perfetto::trace_processor::json::OutputWriter*, std::__Cr::function<bool (char const*, char const*, std::__Cr::function<bool (char const*)>*)>, std::__Cr::function<bool (char const*)>, std::__Cr::function<bool (char const*)>))
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::ExportJson(perfetto::trace_processor::TraceStorage const*, perfetto::trace_processor::json::OutputWriter*, std::__Cr::function<bool (char const*, char const*, std::__Cr::function<bool (char const*)>*)>, std::__Cr::function<bool (char const*)>, std::__Cr::function<bool (char const*)>))
>>> referenced 35 more times

ld.lld: error: undefined symbol: Json::Value::toStyledString() const
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::ExportJson(perfetto::trace_processor::TraceStorage const*, perfetto::trace_processor::json::OutputWriter*, std::__Cr::function<bool (char const*, char const*, std::__Cr::function<bool (char const*)>*)>, std::__Cr::function<bool (char const*)>, std::__Cr::function<bool (char const*)>))
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::ExportJson(perfetto::trace_processor::TraceStorage const*, perfetto::trace_processor::json::OutputWriter*, std::__Cr::function<bool (char const*, char const*, std::__Cr::function<bool (char const*)>*)>, std::__Cr::function<bool (char const*)>, std::__Cr::function<bool (char const*)>))

ld.lld: error: undefined symbol: Json::Value::operator[](std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>> const&)
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::ExportJson(perfetto::trace_processor::TraceStorage const*, perfetto::trace_processor::json::OutputWriter*, std::__Cr::function<bool (char const*, char const*, std::__Cr::function<bool (char const*)>*)>, std::__Cr::function<bool (char const*)>, std::__Cr::function<bool (char const*)>))
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::ExportJson(perfetto::trace_processor::TraceStorage const*, perfetto::trace_processor::json::OutputWriter*, std::__Cr::function<bool (char const*, char const*, std::__Cr::function<bool (char const*)>*)>, std::__Cr::function<bool (char const*)>, std::__Cr::function<bool (char const*)>))
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::ExportJson(perfetto::trace_processor::TraceStorage const*, perfetto::trace_processor::json::OutputWriter*, std::__Cr::function<bool (char const*, char const*, std::__Cr::function<bool (char const*)>*)>, std::__Cr::function<bool (char const*)>, std::__Cr::function<bool (char const*)>))
>>> referenced 16 more times

ld.lld: error: undefined symbol: Json::Value::getMemberNames() const
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::ExportJson(perfetto::trace_processor::TraceStorage const*, perfetto::trace_processor::json::OutputWriter*, std::__Cr::function<bool (char const*, char const*, std::__Cr::function<bool (char const*)>*)>, std::__Cr::function<bool (char const*)>, std::__Cr::function<bool (char const*)>))
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::ExportJson(perfetto::trace_processor::TraceStorage const*, perfetto::trace_processor::json::OutputWriter*, std::__Cr::function<bool (char const*, char const*, std::__Cr::function<bool (char const*)>*)>, std::__Cr::function<bool (char const*)>, std::__Cr::function<bool (char const*)>))
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::ExportJson(perfetto::trace_processor::TraceStorage const*, perfetto::trace_processor::json::OutputWriter*, std::__Cr::function<bool (char const*, char const*, std::__Cr::function<bool (char const*)>*)>, std::__Cr::function<bool (char const*)>, std::__Cr::function<bool (char const*)>))
>>> referenced 2 more times

ld.lld: error: undefined symbol: Json::Value::operator[](std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>> const&) const
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::ExportJson(perfetto::trace_processor::TraceStorage const*, perfetto::trace_processor::json::OutputWriter*, std::__Cr::function<bool (char const*, char const*, std::__Cr::function<bool (char const*)>*)>, std::__Cr::function<bool (char const*)>, std::__Cr::function<bool (char const*)>))
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::(anonymous namespace)::JsonExporter::ExportMemorySnapshots())
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::(anonymous namespace)::JsonExporter::ExportMemorySnapshots())

ld.lld: error: undefined symbol: Json::Value::asString() const
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::ExportJson(perfetto::trace_processor::TraceStorage const*, perfetto::trace_processor::json::OutputWriter*, std::__Cr::function<bool (char const*, char const*, std::__Cr::function<bool (char const*)>*)>, std::__Cr::function<bool (char const*)>, std::__Cr::function<bool (char const*)>))
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::ExportJson(perfetto::trace_processor::TraceStorage const*, perfetto::trace_processor::json::OutputWriter*, std::__Cr::function<bool (char const*, char const*, std::__Cr::function<bool (char const*)>*)>, std::__Cr::function<bool (char const*)>, std::__Cr::function<bool (char const*)>))
>>> referenced by export_json.cc
>>>               obj/third_party/perfetto/src/trace_processor/export_json/mksnapshot.lto.export_json.o:(perfetto::trace_processor::json::ExportJson(perfetto::trace_processor::TraceStorage const*, perfetto::trace_processor::json::OutputWriter*, std::__Cr::function<bool (char const*, char const*, std::__Cr::function<bool (char const*)>*)>, std::__Cr::function<bool (char const*)>, std::__Cr::function<bool (char const*)>))
>>> referenced 6 more times
x86_64-pc-linux-gnu-clang++: error: linker command failed with exit code 1 (use -v to see invocation)

I warned you 🤷🏻

system-woff2 is a problem too:

FAILED: v8_context_snapshot_generator 
"python3.11" "../../build/toolchain/gcc_link_wrapper.py" --output="./v8_context_snapshot_generator" -- x86_64-pc-linux-gnu-clang++ -fuse-ld=lld -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -flto=thin -Wl,--thinlto-jobs=all -Wl,-mllvm,-import-instr-limit=30 -fwhole-program-vtables -Wl,--undefined-version -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections -Wl,-z,defs -Wl,--as-needed -nostdlib++ -Wl,--lto-O0 -Wl,-mllvm,-enable-ext-tsp-block-placement=1 -rdynamic -pie -Wl,--disable-new-dtags -Wl,--icf=none -Wl,--as-needed -Wl,--thinlto-jobs=30 -o "./v8_context_snapshot_generator" -Wl,--start-group @"./v8_context_snapshot_generator.rsp"  -Wl,--end-group  -ldl -lpthread -lrt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -licui18n -licuuc -licudata -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ldbus-1 -latk-1.0 -latk-bridge-2.0 -lcups -latomic -lz -ldouble-conversion -levent -lresolv -lgio-2.0 -lbrotlidec -lzstd -lexpat -lpng16 -lwebp -lwebpdemux -lwebpmux -lfreetype -ljpeg -lfontconfig -lharfbuzz-subset -lharfbuzz -ldrm -lxcb -lxkbcommon -lgbm -lX11 -lXi -lXext -lpci -lXNVCtrl -lpangocairo-1.0 -lpango-1.0 -lcairo -lopus -lavcodec -lavformat -lavutil -lopenh264 -lXcomposite -lXdamage -lXfixes -lXrender -lXrandr -lXtst -lcrc32c -lasound -lpulse -lFLAC -lsnappy -latspi -lxml2 -lminizip -lxslt -lwoff2dec 
ld.lld: error: undefined symbol: woff2::WOFF2StringOut::WOFF2StringOut(std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>*)
>>> referenced by ots.cc
>>>               obj/third_party/ots/v8_context_snapshot_generator.lto.libots.a(ots.o at 42870).o:(ots::OTSContext::Process(ots::OTSStream*, unsigned char const*, unsigned long, unsigned int))
x86_64-pc-linux-gnu-clang++: error: linker command failed with exit code 1 (use -v to see invocation)

It's a pity :(

and another one, just at the end:

[52044/52044] "python3.11" "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- x86_64-pc-linux-gnu-clang++ -Wl,--version-script=../../build/linux/chrome.map -fuse-ld=lld -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -flto=thin -Wl,--thinlto-jobs=all -Wl,-mllvm,-import-instr-limit=30 -fwhole-program-vtables -Wl,--undefined-version -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections -Wl,-z,defs -Wl,--as-needed -nostdlib++ -Wl,-mllvm,-enable-ext-tsp-block-placement=1 -rdynamic -pie -Wl,--disable-new-dtags -Wl,--lto-O2 -Wl,--as-needed -Wl,--thinlto-jobs=30 -o "./chrome" -Wl,--start-group @"./chrome.rsp"  -Wl,--end-group  -ldl -lpthread -lrt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -licui18n -licuuc -licudata -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ldbus-1 -latk-1.0 -latk-bridge-2.0 -lcups -lgio-2.0 -ldrm -lfontconfig -latomic -lz -ldouble-conversion -levent -latspi -lresolv -lbrotlidec -lzstd -lexpat -lpng16 -lwebp -lwebpdemux -lwebpmux -lfreetype -ljpeg -lharfbuzz-subset -lharfbuzz -lopus -lavcodec -lavformat -lavutil -lopenh264 -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lcrc32c -lxcb -lxkbcommon -lgbm -lXi -lpci -lXNVCtrl -lpangocairo-1.0 -lpango-1.0 -lcairo -lasound -lpulse -lFLAC -lsnappy -lminizip -lxml2 -lxslt -lxshmfence -lstdc++ -llcms2 -llcms2_fast_float -llcms2_threaded -lopenjp2 -lpng -lbrotlienc 
FAILED: chrome 
"python3.11" "../../build/toolchain/gcc_link_wrapper.py" --output="./chrome" -- x86_64-pc-linux-gnu-clang++ -Wl,--version-script=../../build/linux/chrome.map -fuse-ld=lld -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--icf=all -Wl,--color-diagnostics -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy=cache_size=10\%:cache_size_bytes=40g:cache_size_files=100000 -flto=thin -Wl,--thinlto-jobs=all -Wl,-mllvm,-import-instr-limit=30 -fwhole-program-vtables -Wl,--undefined-version -no-canonical-prefixes -Wl,-O2 -Wl,--gc-sections -Wl,-z,defs -Wl,--as-needed -nostdlib++ -Wl,-mllvm,-enable-ext-tsp-block-placement=1 -rdynamic -pie -Wl,--disable-new-dtags -Wl,--lto-O2 -Wl,--as-needed -Wl,--thinlto-jobs=30 -o "./chrome" -Wl,--start-group @"./chrome.rsp"  -Wl,--end-group  -ldl -lpthread -lrt -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -licui18n -licuuc -licudata -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -ldbus-1 -latk-1.0 -latk-bridge-2.0 -lcups -lgio-2.0 -ldrm -lfontconfig -latomic -lz -ldouble-conversion -levent -latspi -lresolv -lbrotlidec -lzstd -lexpat -lpng16 -lwebp -lwebpdemux -lwebpmux -lfreetype -ljpeg -lharfbuzz-subset -lharfbuzz -lopus -lavcodec -lavformat -lavutil -lopenh264 -lX11 -lXcomposite -lXdamage -lXext -lXfixes -lXrender -lXrandr -lXtst -lcrc32c -lxcb -lxkbcommon -lgbm -lXi -lpci -lXNVCtrl -lpangocairo-1.0 -lpango-1.0 -lcairo -lasound -lpulse -lFLAC -lsnappy -lminizip -lxml2 -lxslt -lxshmfence -lstdc++ -llcms2 -llcms2_fast_float -llcms2_threaded -lopenjp2 -lpng -lbrotlienc 
ld.lld: error: undefined symbol: snappy::Compress(char const*, unsigned long, std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>*)
>>> referenced by compression_module.cc
>>>               obj/components/reporting/compression/chrome.lto.libcompression_module.a(compression_module.o at 1208).o:(reporting::CompressionModule::CompressRecord(std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>, scoped_refptr<reporting::ResourceManager>, base::OnceCallback<void (std::__Cr::basic_string<char, std::__Cr::char_traits<char>, std::__Cr::allocator<char>>, std::__Cr::optional<reporting::CompressionInformation>)>) const)
x86_64-pc-linux-gnu-clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

so turning off system-snappy.

i just woke up, i didn't search for any related bug... so i already started over... we'll see whether it passes now :-D