Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943213 - net-libs/webkit-gtk-2.44.4-r410 with dev-libs/icu-76.1-r1: /usr/include/unicode/uset.h:1660:21: error: ‘ConstChar16Ptr’ was not declared in this scope
Summary: net-libs/webkit-gtk-2.44.4-r410 with dev-libs/icu-76.1-r1: /usr/include/unico...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH, PullRequest
: 943305 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-11-11 03:24 UTC by Alfred Wingate
Modified: 2024-11-12 15:32 UTC (History)
15 users (show)

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


Attachments
net-libs/webkit-gtk-2.44.4-r410 build.log (xz compressed) (webkit-gtk-2.44.4-r410:20241111-021150.log.xz,19.75 KB, application/x-xz)
2024-11-11 03:24 UTC, Alfred Wingate
Details
emerge --info (emerge--info.txt,22.96 KB, text/plain)
2024-11-11 03:25 UTC, Alfred Wingate
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alfred Wingate 2024-11-11 03:24:15 UTC
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 {
      |     ^~~~~~~~~~~~~
Comment 1 Alfred Wingate 2024-11-11 03:25:13 UTC
Created attachment 908441 [details]
emerge --info
Comment 2 Alfred Wingate 2024-11-11 03:27:22 UTC
ICU upstream jira issue https://unicode-org.atlassian.net/jira/software/c/projects/ICU/issues/ICU-22954
Comment 3 crabbed halo ablution 2024-11-11 07:55:49 UTC
The patch at https://github.com/WebKit/WebKit/commit/63f7badbada070ebaadd318b2801818ecf7e7ea0 fixed this for me.
Comment 4 Johannes Penßel 2024-11-11 15:37:58 UTC
I run into the same issue trying to build webkit-gtk-2.46.3-{r410,r600}. The same patch works here, too.
Comment 5 Gary E. Miller 2024-11-11 20:58:24 UTC
#MeToo
Comment 6 Larry the Git Cow gentoo-dev 2024-11-11 23:33:42 UTC
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(+)
Comment 7 Alfred Wingate 2024-11-12 15:32:25 UTC
*** Bug 943305 has been marked as a duplicate of this bug. ***