Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 599094

Summary: dev-qt/qtwebengine-5.7.0 with dev-libs/icu-58: error: static assertion failed: breakAllLineBreakClassTable should be consistent
Product: Gentoo Linux Reporter: Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c>
Component: Current packagesAssignee: Qt Bug Alias <qt>
Status: RESOLVED FIXED    
Severity: normal CC: ab4bd, ao, bjh-gentoobt, creffett, david.narvaez, dschridde+gentoobugs, eugene.shalygin, iivanich, josef64, kuba.iluvatar, mpagano, oleg.hoefling, panard, paolo.pedroni, till2.schaefer, ua_gentoo_bugzilla
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=594494
https://bugs.gentoo.org/show_bug.cgi?id=589814
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 586612    
Attachments: build.log.xz
Fix compilation with icu 58.1

Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-11-07 00:29:36 UTC
This happened during a recompilation because of dev-libs/icu-58.1 upgrade so I currently suspect icu-58.1 being the reason for this:

/var/tmp/portage/dev-qt/qtwebengine-5.7.0/work/qtwebengine-opensource-src-5.7.0/
src/3rdparty/chromium/third_party/WebKit/Source/platform/text/TextBreakIterator.
cpp:181:1: error: static assertion failed: breakAllLineBreakClassTable should be
 consistent
 static_assert(WTF_ARRAY_LENGTH(breakAllLineBreakClassTable) == U_LB_COUNT, "bre
akAllLineBreakClassTable should be consistent");
 ^
ninja: build stopped: subcommand failed.
make[3]: *** [Makefile.gyp_run:572: invoke_ninja] Error 1


# emerge --info qtwebkit:5
Portage 2.3.2 (python 3.5.2-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.22-r4, 4.8.6 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.8.6-x86_64-AMD_Opteron-tm-_Processor_6328-with-gentoo-2.3
KiB Mem:   132008644 total,  98009036 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 07 Nov 2016 00:00:01 +0000
Timestamp of repository poly-c: Sun, 06 Nov 2016 23:05:02 +0000
sh dash 0.5.9.1-r1
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.0_rc2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.3::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r2::gentoo, 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27_pre-r1::poly-c
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /var/portage
    sync-type: rsync
    sync-uri: rsync://192.168.0.254/gentoo-portage
    priority: -1000

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 0

kde-sunset
    location: /var/lib/layman/kde-sunset
    masters: gentoo
    priority: 1

palemoon
    location: /var/lib/layman/palemoon
    masters: gentoo
    priority: 2

poly-c
    location: /usr/local/portage
    masters: gentoo
    priority: 3

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/bonobo-activation /etc/ca-certificates /etc/ca-certificates.conf /etc/dbus-1 /etc/dconf /etc/env.d /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/games /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gre.d /etc/gtk-2.0 /etc/hp /etc/hsqldb /etc/htdig /etc/init.d /etc/iproute2 /etc/java-config-2 /etc/lftp /etc/logrotate.d /etc/ntop /etc/opt /etc/pango /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sensors.d /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/vbox /etc/xdg /etc/xinetd.d /etc/xml"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y --misspell-suggestions=n --autounmask=n --quiet-build=n --verbose-slot-rebuilds=n --fuzzy-search=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
INSTALL_MASK="/etc/systemd /lib/systemd /lib32/systemd /lib64/systemd /usr/lib/systemd /usr/lib32/systemd /usr/lib64/systemd /etc/init.d/functions.sh /usr/lib/modules-load.d/virtualbox.conf"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j16"
PKGDIR="/opt/portage/packages"
PORTAGE_BZIP2_COMMAND="lbzip2 -q"
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"
USE="3dnow 3dnowext X a52 aac aacs acl acpi alsa amd64 berkdb bluetooth bluray branding bzip2 c++0x cairo caps cdda cdr cli consolekit cracklib crypt css cups cxx dbus declarative dri dts dvd dvdr emboss encode exif faac ffmpeg firefox flac gdbm gif glamor gmp gnutls gstreamer gtk iconv icu idn imagemagick inotify jpeg jpeg2k kde kipi lame lcms libcanberra libnotify lzma mac mad matroska midi mmap mmx mmxext mng modules mp3 mp4 mpeg mpfr multilib ncurses nls nptl nsplugin ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 quicktime readline rtmp schroedinger sdl seccomp session slang speex spell sse sse2 ssl startup-notification svg theora threads tiff truetype twolame udev udisks unicode upower usb vaapi vcd vdpau vorbis vpx widgets wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zlib zsh-completion" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="access_compat alias auth_basic auth_digest authn_anon authn_core authn_default authn_file authz_core authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dir env file_cache filter headers http2 include info log_config mime mime_magic rewrite socache_shmcb status unique_id unixd userdir vhost_alias" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="gnutls" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev joystick" KERNEL="linux" L10N="de de-1901 en" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi"
USE_PYTHON="2.7 3.4 3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-qt/qtwebkit-5.7.0::gentoo was built with the following:
USE="-debug -geolocation gstreamer -gstreamer010 jit -multimedia opengl -orientation printsupport qml -test -webchannel -webp" ABI_X86="64"
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-11-07 00:30:22 UTC
Created attachment 452556 [details]
build.log.xz
Comment 2 Ivan Grynko 2016-11-09 11:13:15 UTC
Created attachment 452782 [details, diff]
Fix compilation with icu 58.1

Based on https://chromium.googlesource.com/chromium/src/+/e60b571faa3f14dd9119a6792dccf12f8bf80192%5E%21/#F0
Comment 3 Michael Palimaka (kensington) gentoo-dev 2016-11-09 13:50:49 UTC
I suspect that the fix in chromium will not make its way into Qt until at least 5.9, so I think we have no option but to carry this patch for now.
Comment 4 Davide Pesavento (RETIRED) gentoo-dev 2016-11-09 14:31:32 UTC
(In reply to Michael Palimaka (kensington) from comment #3)
> I suspect that the fix in chromium will not make its way into Qt until at
> least 5.9, so I think we have no option but to carry this patch for now.

They might backport it to 5.8.0 if they're aware of the problem. In any case, we should apply it to all affected in-tree versions.
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2016-11-09 14:32:30 UTC
Btw, the upstream commit msg says "Prepare to upgrade ICU to 58 part 2"... is there a part 1?
Comment 6 Arfrever Frehtes Taifersar Arahesis 2016-11-10 01:11:17 UTC
Part 1 seems to be:
https://chromium.googlesource.com/chromium/src/+/424584b4984bde7c831f42e9fb47f1ad583a1c46%5E%21/

Chromium bug about update of ICU:
https://bugs.chromium.org/p/chromium/issues/detail?id=637001
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2016-11-18 23:48:37 UTC
ICU 58.1 will probably go stable soon. Not blocking the sec bugs here since 5.7.0 is masked, but I've added them as "See Also".
Comment 8 Dennis Schridde 2016-11-24 09:52:53 UTC
Will the attached patch be included in Gentoo?
Comment 9 Michael Palimaka (kensington) gentoo-dev 2016-11-24 10:42:33 UTC
(In reply to Dennis Schridde from comment #8)
> Will the attached patch be included in Gentoo?

There is a pull request for this and some other issues that is currently under review: https://github.com/gentoo/gentoo/pull/2844
Comment 10 Till Schäfer 2016-12-05 17:27:20 UTC
pesa just gave you (kensington) the go to merge.
Please, let me get rid of using --keep-going :-).
Comment 11 Michael Palimaka (kensington) gentoo-dev 2016-12-06 08:16:05 UTC
Thanks, fixed in git by Aric Belsito.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed080e3f5696fcdc822ad60e95649176195bea9e