Created attachment 908440 [details] net-libs/webkit-gtk-2.44.4-r410 build.log (xz compressed) FAILED: Source/WTF/wtf/CMakeFiles/WTF.dir/text/StringView.cpp.o /usr/bin/x86_64-pc-linux-gnu-g++ -DBUILDING_GTK__=1 -DBUILDING_WEBKIT=1 -DBUILDING_WITH_CMAKE=1 -DBUILDING_WTF -DBWRAP_EXECUTABLE=\"/usr/bin/bwrap\" -DDBUS_PROXY_EXECUTABLE=\"/usr/bin/xdg-dbus-proxy\" -DGETTEXT_PACKAGE=\"WebKitGTK-4.1\" -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DPAS_BMALLOC=1 -DSTATICALLY_LINKED_WITH_bmalloc -I/var/tmp/portage/net-libs/webkit-gtk-2.44.4-r410/work/webkitgtk-2.44.4_build -I/var/tmp/portage/net-libs/webkit-gtk-2.44.4-r410/work/webkitgtk-2.44.4_build/WTF/DerivedSources -I/var/tmp/portage/net-libs/webkit-gtk-2.44.4-r410/work/webkitgtk-2.44.4/Source/WTF -I/var/tmp/portage/net-libs/webkit-gtk-2.44.4-r410/work/webkitgtk-2.44.4/Source/WTF/wtf -I/var/tmp/portage/net-libs/webkit-gtk-2.44.4-r410/work/webkitgtk-2.44.4/Source/WTF/wtf/dtoa -I/var/tmp/portage/net-libs/webkit-gtk-2.44.4-r410/work/webkitgtk-2.44.4/Source/WTF/wtf/fast_float -I/var/tmp/portage/net-libs/webkit-gtk-2.44.4-r410/work/webkitgtk-2.44.4/Source/WTF/wtf/persistence -I/var/tmp/portage/net-libs/webkit-gtk-2.44.4-r410/work/webkitgtk-2.44.4/Source/WTF/wtf/text -I/var/tmp/portage/net-libs/webkit-gtk-2.44.4-r410/work/webkitgtk-2.44.4/Source/WTF/wtf/text/icu -I/var/tmp/portage/net-libs/webkit-gtk-2.44.4-r410/work/webkitgtk-2.44.4/Source/WTF/wtf/threads -I/var/tmp/portage/net-libs/webkit-gtk-2.44.4-r410/work/webkitgtk-2.44.4/Source/WTF/wtf/unicode -I/var/tmp/portage/net-libs/webkit-gtk-2.44.4-r410/work/webkitgtk-2.44.4_build/bmalloc/Headers -isystem /usr/include/gio-unix-2.0 -isystem /usr/lib64/libffi/include -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/libmount -isystem /usr/include/blkid -DNDEBUG -fdiagnostics-color=always -Wextra -Wall -pipe -fmax-errors=20 -Wno-odr -Wno-stringop-overread -Wno-stringop-overflow -Wno-nonnull -Wno-array-bounds -Wno-expansion-to-defined -Wno-noexcept-type -Wno-psabi -Wno-misleading-indentation -Wno-maybe-uninitialized -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -Wno-tautological-compare -fdebug-types-section -O3 -march=znver2 -pipe -fuse-linker-plugin -frecord-gcc-switches -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-lto -Wno-error=odr -fno-strict-aliasing -fno-exceptions -fno-rtti -std=c++20 -fPIC -fvisibility=hidden -MD -MT Source/WTF/wtf/CMakeFiles/WTF.dir/text/StringView.cpp.o -MF Source/WTF/wtf/CMakeFiles/WTF.dir/text/StringView.cpp.o.d -o Source/WTF/wtf/CMakeFiles/WTF.dir/text/StringView.cpp.o -c /var/tmp/portage/net-libs/webkit-gtk-2.44.4-r410/work/webkitgtk-2.44.4/Source/WTF/wtf/text/StringView.cpp In file included from /usr/include/unicode/unorm2.h:35, from /var/tmp/portage/net-libs/webkit-gtk-2.44.4-r410/work/webkitgtk-2.44.4/Source/WTF/wtf/text/StringView.cpp:31: /usr/include/unicode/uset.h: In member function ‘std::u16string_view icu::header::USetStringIterator::operator*() const’: /usr/include/unicode/uset.h:1660:21: error: ‘ConstChar16Ptr’ was not declared in this scope 1660 | return {ConstChar16Ptr(uchars), static_cast<uint32_t>(length)}; | ^~~~~~~~~~~~~~ /usr/include/unicode/uset.h:1660:74: error: could not convert ‘{<expression error>, ((uint32_t)length)}’ from ‘<brace-enclosed initializer list>’ to ‘std::u16string_view’ {aka ‘std::basic_string_view<char16_t>’} 1660 | return {ConstChar16Ptr(uchars), static_cast<uint32_t>(length)}; | ^ | | | <brace-enclosed initializer list> /usr/include/unicode/uset.h: At global scope: /usr/include/unicode/uset.h:1763:5: error: ‘UnicodeString’ does not name a type 1763 | UnicodeString operator*() const { | ^~~~~~~~~~~~~
Created attachment 908441 [details] emerge --info
ICU upstream jira issue https://unicode-org.atlassian.net/jira/software/c/projects/ICU/issues/ICU-22954
The patch at https://github.com/WebKit/WebKit/commit/63f7badbada070ebaadd318b2801818ecf7e7ea0 fixed this for me.
I run into the same issue trying to build webkit-gtk-2.46.3-{r410,r600}. The same patch works here, too.
#MeToo
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=401e6c9f7882c77a9abbb33f08f1e6791086ab31 commit 401e6c9f7882c77a9abbb33f08f1e6791086ab31 Author: Alfred Wingate <parona@protonmail.com> AuthorDate: 2024-11-11 23:24:07 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-11-11 23:32:56 +0000 net-libs/webkit-gtk: fix build against icu-76.1 Closes: https://bugs.gentoo.org/943213 Signed-off-by: Alfred Wingate <parona@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/39279 Signed-off-by: Sam James <sam@gentoo.org> net-libs/webkit-gtk/files/2.44.4-fix-icu76.1.patch | 31 ++++++++++++++++++++++ net-libs/webkit-gtk/webkit-gtk-2.44.4-r410.ebuild | 3 +++ net-libs/webkit-gtk/webkit-gtk-2.44.4-r600.ebuild | 3 +++ net-libs/webkit-gtk/webkit-gtk-2.44.4.ebuild | 3 +++ net-libs/webkit-gtk/webkit-gtk-2.46.3-r410.ebuild | 3 +++ net-libs/webkit-gtk/webkit-gtk-2.46.3-r600.ebuild | 3 +++ net-libs/webkit-gtk/webkit-gtk-2.46.3.ebuild | 3 +++ 7 files changed, 49 insertions(+)
*** Bug 943305 has been marked as a duplicate of this bug. ***