OS: Gentoo Linux amd64 musl libc (LLVM profile)
clang --version
clang version 18.1.8+libcxx
Target: x86_64-pc-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-musl-clang.cfg
uconv --version
uconv v2.1 ICU 76.0.1
Currently the cmake build fails when compiling with system icu:
[131/2641] /usr/lib/ccache/bin/clang++ -DENABLE_COMPILETIME_FORMAT_CHECK -DLibUnicode_EXPORTS -D_FILE_OFFSET_BITS=64 -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999 -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999/Userland/Services -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999/Userland/Libraries -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999_build/Lagom -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999_build/Lagom/Userland/Services -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999_build/Lagom/Userland/Libraries -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999/Meta/Lagom/../.. -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999/Meta/Lagom/../../Userland -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999/Meta/Lagom/../../Userland/Libraries -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999/Meta/Lagom/../../Userland/Services -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999_build -O3 -pipe -march=native -D_FORTIFY_SOURCE=3 -g0 -Werror=odr -Werror=conditional-type-mismatch -Werror=pointer-type-mismatch -Werror=selector-type-mismatch -Werror=strict-aliasing -flto -Wno-register -stdlib=libc++ -std=c++23 -fPIC -fcolor-diagnostics -Wall -Wextra -fno-exceptions -ffp-contract=off -Wcast-qual -Wformat=2 -Wimplicit-fallthrough -Wmissing-declarations -Wsuggest-override -Wno-invalid-offsetof -Wno-unknown-warning-option -Wno-unused-command-line-argument -Wpadded-bitfield -Werror -fconstexpr-steps=16777216 -Wmissing-prototypes -Wno-implicit-const-int-float-conversion -Wno-user-defined-literals -Wno-vla-cxx-extension -Wno-unqualified-std-cast-call -fno-semantic-interposition -fvisibility-inlines-hidden -fstack-protector-strong -fstrict-flex-arrays=2 -Wno-maybe-uninitialized -Wno-shorten-64-to-32 -fsigned-char -ggnu-pubnames -fPIC -O2 -g1 -Wno-overloaded-virtual -Wno-unused-private-field -MD -MT Lagom/Userland/Libraries/LibUnicode/CMakeFiles/LibUnicode.dir/Locale.cpp.o -MF Lagom/Userland/Libraries/LibUnicode/CMakeFiles/LibUnicode.dir/Locale.cpp.o.d -o Lagom/Userland/Libraries/LibUnicode/CMakeFiles/LibUnicode.dir/Locale.cpp.o -c /var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999/Userland/Libraries/LibUnicode/Locale.cpp
FAILED: Lagom/Userland/Libraries/LibUnicode/CMakeFiles/LibUnicode.dir/Locale.cpp.o
/usr/lib/ccache/bin/clang++ -DENABLE_COMPILETIME_FORMAT_CHECK -DLibUnicode_EXPORTS -D_FILE_OFFSET_BITS=64 -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999 -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999/Userland/Services -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999/Userland/Libraries -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999_build/Lagom -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999_build/Lagom/Userland/Services -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999_build/Lagom/Userland/Libraries -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999/Meta/Lagom/../.. -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999/Meta/Lagom/../../Userland -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999/Meta/Lagom/../../Userland/Libraries -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999/Meta/Lagom/../../Userland/Services -I/var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999_build -O3 -pipe -march=native -D_FORTIFY_SOURCE=3 -g0 -Werror=odr -Werror=conditional-type-mismatch -Werror=pointer-type-mismatch -Werror=selector-type-mismatch -Werror=strict-aliasing -flto -Wno-register -stdlib=libc++ -std=c++23 -fPIC -fcolor-diagnostics -Wall -Wextra -fno-exceptions -ffp-contract=off -Wcast-qual -Wformat=2 -Wimplicit-fallthrough -Wmissing-declarations -Wsuggest-override -Wno-invalid-offsetof -Wno-unknown-warning-option -Wno-unused-command-line-argument -Wpadded-bitfield -Werror -fconstexpr-steps=16777216 -Wmissing-prototypes -Wno-implicit-const-int-float-conversion -Wno-user-defined-literals -Wno-vla-cxx-extension -Wno-unqualified-std-cast-call -fno-semantic-interposition -fvisibility-inlines-hidden -fstack-protector-strong -fstrict-flex-arrays=2 -Wno-maybe-uninitialized -Wno-shorten-64-to-32 -fsigned-char -ggnu-pubnames -fPIC -O2 -g1 -Wno-overloaded-virtual -Wno-unused-private-field -MD -MT Lagom/Userland/Libraries/LibUnicode/CMakeFiles/LibUnicode.dir/Locale.cpp.o -MF Lagom/Userland/Libraries/LibUnicode/CMakeFiles/LibUnicode.dir/Locale.cpp.o.d -o Lagom/Userland/Libraries/LibUnicode/CMakeFiles/LibUnicode.dir/Locale.cpp.o -c /var/tmp/portage/www-client/ladybird-9999/work/ladybird-9999/Userland/Libraries/LibUnicode/Locale.cpp
In file included from ../ladybird-9999/Userland/Libraries/LibUnicode/Locale.cpp:12:
In file included from ../ladybird-9999/Userland/Libraries/LibUnicode/ICU.h:16:
/usr/include/unicode/locid.h:1274:37: error: chosen constructor is explicit in copy-initialization
1274 | if (U_FAILURE(status)) { return {}; }
| ^~
../ladybird-9999/Userland/Libraries/LibUnicode/Locale.cpp:505:26: note: in instantiation of function template specialization 'icu::Locale::getUnicodeKeywordValue<AK::StringBuilder>' requested here
505 | auto result = locale.getUnicodeKeywordValue<StringBuilder>(icu_string_piece(key), status);
| ^
../ladybird-9999/AK/StringBuilder.h:26:14: note: explicit constructor declared here
26 | explicit StringBuilder(size_t initial_capacity = inline_capacity);
| ^
In file included from ../ladybird-9999/Userland/Libraries/LibUnicode/Locale.cpp:12:
In file included from ../ladybird-9999/Userland/Libraries/LibUnicode/ICU.h:16:
/usr/include/unicode/locid.h:1188:37: error: chosen constructor is explicit in copy-initialization
1188 | if (U_FAILURE(status)) { return {}; }
| ^~
../ladybird-9999/Userland/Libraries/LibUnicode/Locale.cpp:554:47: note: in instantiation of function template specialization 'icu::Locale::toLanguageTag<AK::StringBuilder>' requested here
554 | auto locale_name = locale_list[i].toLanguageTag<StringBuilder>(status);
| ^
../ladybird-9999/AK/StringBuilder.h:26:14: note: explicit constructor declared here
26 | explicit StringBuilder(size_t initial_capacity = inline_capacity);
| ^
2 errors generated.
ninja: build stopped: subcommand failed.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too