Updating from 6.2.4 to 6.3.0 during a @world update leads to this error: FAILED: obj/base/i18n/icu_string_conversions.o /usr/bin/x86_64-pc-linux-gnu-g++ -MMD -MF obj/base/i18n/icu_string_conversions.o.d -DBASE_I18N_IMPLEMENTATION -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURC E -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTAT IONS_ENABLED=0 -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -DUCHAR_TYPE=uint16_t -Igen -I.. /../../../../qtwebengine-everywhere-src-6.3.0/src/3rdparty/chromium -Igen -Igen -I../../../../../qtwebengine-e verywhere-src-6.3.0/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -Igen -Igen -I../../../../../qtwebengine-everywhere-src-6.3.0/src/3rdparty/chromiu m/third_party/ced/src -I../../../../../qtwebengine-everywhere-src-6.3.0/src/3rdparty/chromium/third_party/abse il-cpp -I../../../../../qtwebengine-everywhere-src-6.3.0/src/3rdparty/chromium/third_party/boringssl/src/inclu de -I../../../../../qtwebengine-everywhere-src-6.3.0/src/3rdparty/chromium/third_party/protobuf/src -Igen/prot oc_out -Igen/third_party/perfetto -fno-ident -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-unknown-pragmas -Wno-parentheses -Wno-sign-compare -Wno-stringop-overflow -Wno-stringop-overread -Wno-psa bi -Wno-multichar -Wno-format-zero-length -funwind-tables -fPIC -pipe -pthread -m64 -Wno-builtin-macro-redefin ed -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wno-unused-local-type defs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno- packed-not-aligned -Wno-dangling-else -Wno-missing-field-initializers -Wno-unused-parameter -fno-omit-frame-po inter -g1 -fvisibility=hidden -O2 -fdata-sections -ffunction-sections -std=gnu++14 -Wno-narrowing -Wno-class-m emaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../../../../../qtwebengine-everywhere-src-6.3.0/src/3rdparty/chromium/base/i18n/icu_string_conversions.cc -o obj/base/i18n/icu_string_conversions.o ../../../../../qtwebengine-everywhere-src-6.3.0/src/3rdparty/chromium/base/i18n/icu_string_conversions.cc: In function ‘bool base::{anonymous}::ConvertFromUTF16(UConverter*, base::StringPiece16, base::OnStringConversionError::Type, std::string*)’: ../../../../../qtwebengine-everywhere-src-6.3.0/src/3rdparty/chromium/base/i18n/icu_string_conversions.cc:110:78: error: invalid conversion from ‘base::BasicStringPiece<char16_t>::const_pointer’ {aka ‘const char16_t*’} to ‘const UChar*’ {aka ‘const short unsigned int*’} [-fpermissive] 110 | ucnv_fromUChars(converter, &(*encoded)[0], encoded_max_length, src.data(), | ~~~~~~~~^~ | | | base::BasicStringPiece<char16_t>::const_pointer {aka const char16_t*} n file included from gen/third_party/icu/source/common/unicode/ucnv.h:5, from ../../../../../qtwebengine-everywhere-src-6.3.0/src/3rdparty/chromium/base/i18n/icu_string_conversions.cc:17: /usr/include/unicode/ucnv.h:1265:30: note: initializing argument 4 of ‘int32_t ucnv_fromUChars(UConverter*, char*, int32_t, const UChar*, int32_t, UErrorCode*)’ 1265 | const UChar *src, int32_t srcLength, | ~~~~~~~~~~~~~^~~ ../../../../../qtwebengine-everywhere-src-6.3.0/src/3rdparty/chromium/base/i18n/icu_string_conversions.cc: In function ‘bool base::CodepageToUTF16(base::StringPiece, const char*, base::OnStringConversionError::Type, std::u16string*)’: ../../../../../qtwebengine-everywhere-src-6.3.0/src/3rdparty/chromium/base/i18n/icu_string_conversions.cc:183:28: error: invalid conversion from ‘std::unique_ptr<char16_t []>::pointer’ {aka ‘char16_t*’} to ‘UChar*’ {aka ‘short unsigned int*’} [-fpermissive] 183 | converter, buffer.get(), static_cast<int>(uchar_max_length), | ~~~~~~~~~~^~ | | | std::unique_ptr<char16_t []>::pointer {aka char16_t*} In file included from gen/third_party/icu/source/common/unicode/ucnv.h:5, from ../../../../../qtwebengine-everywhere-src-6.3.0/src/3rdparty/chromium/base/i18n/icu_string_conversions.cc:17: /usr/include/unicode/ucnv.h:1296:22: note: initializing argument 2 of ‘int32_t ucnv_toUChars(UConverter*, UChar*, int32_t, const char*, int32_t, UErrorCode*)’ 1296 | UChar *dest, int32_t destCapacity, | ~~~~~~~^~~~ followed by two similar errors for which I refer to the attached build log. Reproducible: Always Steps to Reproduce: 1. Unmask Qt6 packages 2. emerge qtwebengine:6 3. # emerge -pqv qtwebengine:6 [ebuild U ] dev-qt/qtwebengine-6.3.0 [6.2.4] USE="alsa designer geolocation jumbo-build pulseaudio system-ffmpeg system-icu widgets -bindist -debug -kerberos -pipewire -test" # emerge --info qtwebengine:6 Portage 3.0.30 (python 3.9.12-final-0, default/linux/amd64/17.1/systemd, gcc-11.2.1, glibc-2.35-r2, 5.16.20-gentoo-0 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.16.20-gentoo-0-x86_64-AMD_Ryzen_7_3800X_8-Core_Processor-with-glibc2.35 KiB Mem: 32888656 total, 4979736 free KiB Swap: 33554428 total, 33195748 free Head commit of repository guru: 318009746930e0b83ed39e6b74968f2a44720b1c Timestamp of repository steam-overlay: Tue, 12 Apr 2022 06:05:17 +0000 Head commit of repository steam-overlay: bcbdb4376c317ba442aae5736123c321fbc12fb2 Head commit of repository qt: 39446364fe1d89b16dc283cac1380a8f3ad5e0b6 Head commit of repository science: 3035ba13ef60bd1b7062589aa965617ae3fe5ebe Head commit of repository gentoo-git: e646333e25d8775e8f79e47cb751fd55a3f57946 Head commit of repository waebbl: c467be8783853cfd1691794c5635fc36624ffa74 Timestamp of repository gentoo: Fri, 15 Apr 2022 10:19:28 +0000 Head commit of repository gentoo: 6db3cc03d4f792391b6672b3f193dfcc14887c97 sh bash 5.1_p16 ld GNU ld (Gentoo 2.38 p3) 2.38 app-misc/pax-utils: 1.3.3::gentoo app-shells/bash: 5.1_p16::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.1::gentoo dev-lang/python: 2.7.18_p15::gentoo, 3.9.12::gentoo, 3.10.4::gentoo dev-lang/rust: 1.60.0::gentoo dev-util/cmake: 3.23.1::gentoo dev-util/meson: 0.61.4-r2::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/sandbox: 2.29::gentoo sys-apps/systemd: 250.4-r1::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.38-r1::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 13.0.1::gentoo, 14.0.1::gentoo sys-devel/gcc: 11.2.1_p20220115::gentoo sys-devel/gcc-config: 2.5-r1::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/lld: 14.0.0::gentoo sys-devel/llvm: 13.0.1::gentoo, 14.0.1::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.16::gentoo (virtual/os-headers) sys-libs/glibc: 2.35-r2::gentoo sys-libs/libselinux: 3.4_rc1::gentoo Repositories: guru location: /mnt/data/code/github/portage-overlays/guru sync-type: git sync-uri: git@git.gentoo.org:repo/proj/guru.git masters: gentoo priority: -1000 steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/steam-overlay.git masters: gentoo qt location: /mnt/data/code/github/portage-overlays/qt sync-type: git sync-uri: https://github.com/gentoo-mirror/qt.git masters: gentoo priority: 60 science location: /mnt/data/code/github/portage-overlays/sci sync-type: git sync-uri: git://github.com/waebbl/sci.git masters: gentoo priority: 60 gentoo-git location: /mnt/data/code/github/portage-overlays/gentoo-git sync-type: git sync-uri: https://github.com/waebbl/gentoo.git masters: gentoo priority: 99 waebbl location: /mnt/data/code/github/portage-overlays/waebbl sync-type: git sync-uri: https://github.com/waebbl/waebbl-gentoo.git masters: gentoo priority: 99 gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: 100 Installed sets: @3D, @Qt6, @admin-tools, @desktop, @dev-tools, @docs, @esteam, @games, @net-tools, @science ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=znver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=znver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--complete-graph --keep-going --fail-clean --usepkg --buildpkg --buildpkg-exclude='x11-drivers/nvidia-drivers virtual/* acct-user/* acct-group/* app-eselect/* dev-util/nvidia-cuda-toolkit' --autounmask=n --binpkg-respect-use=y --binpkg-changed-deps=y" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -march=znver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live buildsyspkg cgroup clean-logs config-protect-if-modified distlocks downgrade-backup ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-elog split-log strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=znver2 -frecord-gcc-switches -fstack-protector-strong -fstack-check" GENTOO_MIRRORS="https://ftp.fau.de/gentoo/ https://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ https://ftp.halifax.rwth-aachen.de/gentoo/" INSTALL_MASK="/usr/share/locale -/usr/share/locale/de* -/usr/share/locale/en*" LANG="C.UTF8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" MAKEOPTS="-j4" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/bash" USE="X acl alsa amd64 branding bzip2 cli crypt dbus dri egl emacs fortran gdbm gif gnome gtk-doc iconv ipv6 jpeg jpeg2k kde lcms libglvnd libinput libtirpc man multilib ncurses networkmanager nls nptl offensive ogg opengl openmp pam pcre pic png policykit pulseaudio python qml qt5 readline seccomp sound split-usr ssl svg systemd tga theora threads tiff udev unicode vorbis webp wifi x264 x265 xattr xpm zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc multiboot qemu" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="de de-DE en en-GB en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LLVM_TARGETS="NVPTX WebAssembly" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby31" STEAMGAMES="witcher2" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= dev-qt/qtwebengine-6.2.4::qt was built with the following: USE="alsa designer geolocation jumbo-build pulseaudio system-ffmpeg system-icu widgets -bindist -debug -kerberos -pipewire -test" ABI_X86="(64)" FEATURES="news merge-sync pid-sandbox sfperms xattr sandbox unmerge-logs buildpkg-live multilib-strict network-sandbox ipc-sandbox split-log fixlafiles userpriv binpkg-logs cgroup ebuild-locks userfetch binpkg-docompress binpkg-dostrip buildsyspkg unmerge-orphans buildpkg downgrade-backup preserve-libs strict-keepdir protect-owned usersync sign fail-clean distlocks clean-logs parallel-fetch unknown-features-warn config-protect-if-modified qa-unresolved-soname-deps strict split-elog usersandbox assume-digests"
Created attachment 770972 [details] qtwebengine-6.3.0:20220415-135256.log.xz build log, compressed due to size
This was fixed in chromium one year ago: https://crrev.com/c/2830820 Following should fix it in qtwebengine: --- a/src/3rdparty/chromium/third_party/icu/BUILD.gn +++ b/src/3rdparty/chromium/third_party/icu/BUILD.gn @@ -410,12 +410,6 @@ config("system_icu_config") { "USING_SYSTEM_ICU=1", "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC", ] - - if (is_win) { - defines += [ "UCHAR_TYPE=wchar_t" ] - } else { - defines += [ "UCHAR_TYPE=uint16_t" ] - } } if (use_system_icu) {
I can confirm that this patch is working.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/qt.git/commit/?id=ce687067d9fd189ca0faab3c31dc5b8f4db0d00f commit ce687067d9fd189ca0faab3c31dc5b8f4db0d00f Author: Jimi Huotari <chiitoo@gentoo.org> AuthorDate: 2022-04-26 14:59:32 +0000 Commit: Jimi Huotari <chiitoo@gentoo.org> CommitDate: 2022-04-26 14:59:32 +0000 dev-qt/qtwebengine: fix 6.3.0 build with system-icu Closes: https://bugs.gentoo.org/838742 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Jimi Huotari <chiitoo@gentoo.org> .../files/qtwebengine-6.3.0-system-icu.patch | 38 ++++++++++++++++++++++ dev-qt/qtwebengine/qtwebengine-6.3.0.ebuild | 2 ++ 2 files changed, 40 insertions(+)