Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619796 - www-client/chromium-60.0.3107.4 fails to build with ICU 59
Summary: www-client/chromium-60.0.3107.4 fails to build with ICU 59
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: icu-59
  Show dependency tree
 
Reported: 2017-05-27 03:22 UTC by Mike Gilbert
Modified: 2017-08-22 22:11 UTC (History)
3 users (show)

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


Attachments
build log (build.log.xz,119.71 KB, application/x-xz)
2017-05-27 03:22 UTC, Mike Gilbert
Details
builld log for 60.0.3112.20 (www-client:chromium-60.0.3112.20:20170611-150502.log.xz,112.68 KB, application/x-xz)
2017-06-11 15:42 UTC, Mike Gilbert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2017-05-27 03:22:18 UTC
Created attachment 474442 [details]
build log

FAILED: obj/base/i18n/bidi_line_iterator.o 
x86_64-pc-linux-gnu-g++ -MMD -MF obj/base/i18n/bidi_line_iterator.o.d -DBASE_I18N_IMPLEMENTATION -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DDISABLE_NACL -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -I../.. -Igen -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../third_party/ced/src -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -m64 -march=x86-64 -pthread -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -fomit-frame-pointer -g0 -fvisibility=hidden -O2 -fno-ident -fdata-sections -ffunction-sections -std=gnu++11 -Wno-narrowing -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -O2 -pipe -march=amdfam10 -fno-delete-null-pointer-checks -c ../../base/i18n/bidi_line_iterator.cc -o obj/base/i18n/bidi_line_iterator.o
../../base/i18n/bidi_line_iterator.cc: In member function ‘bool base::i18n::BiDiLineIterator::Open(const string16&, base::i18n::TextDirection)’:
../../base/i18n/bidi_line_iterator.cc:47:33: error: invalid conversion from ‘const short unsigned int*’ to ‘const UChar* {aka const char16_t*}’ [-fpermissive]
   ubidi_setPara(bidi_, text.data(), static_cast<int>(text.length()),
                        ~~~~~~~~~^~
In file included from gen/shim_headers/icuuc_shim/third_party/icu/source/common/unicode/ubidi.h:5:0,
                 from ../../base/i18n/bidi_line_iterator.h:12,
                 from ../../base/i18n/bidi_line_iterator.cc:5:
/usr/include/unicode/ubidi.h:1226:1: note:   initializing argument 2 of ‘void ubidi_setPara(UBiDi*, const UChar*, int32_t, UBiDiLevel, UBiDiLevel*, UErrorCode*)’
 ubidi_setPara(UBiDi *pBiDi, const UChar *text, int32_t length,
 ^~~~~~~~~~~~~

FAILED: obj/base/i18n/break_iterator.o 
x86_64-pc-linux-gnu-g++ -MMD -MF obj/base/i18n/break_iterator.o.d -DBASE_I18N_IMPLEMENTATION -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DDISABLE_NACL -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DUSING_SYSTEM_ICU=1 -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC -I../.. -Igen -Igen/shim_headers/icui18n_shim -Igen/shim_headers/icuuc_shim -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../third_party/ced/src -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -m64 -march=x86-64 -pthread -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -fomit-frame-pointer -g0 -fvisibility=hidden -O2 -fno-ident -fdata-sections -ffunction-sections -std=gnu++11 -Wno-narrowing -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -O2 -pipe -march=amdfam10 -fno-delete-null-pointer-checks -c ../../base/i18n/break_iterator.cc -o obj/base/i18n/break_iterator.o
../../base/i18n/break_iterator.cc: In member function ‘bool base::i18n::BreakIterator::Init()’:
../../base/i18n/break_iterator.cc:62:40: error: invalid conversion from ‘const short unsigned int*’ to ‘const UChar* {aka const char16_t*}’ [-fpermissive]
     iter_ = ubrk_openRules(rules_.c_str(),
                            ~~~~~~~~~~~~^~
In file included from gen/shim_headers/icuuc_shim/third_party/icu/source/common/unicode/ubrk.h:5:0,
                 from ../../base/i18n/break_iterator.cc:10:
/usr/include/unicode/ubrk.h:263:1: note:   initializing argument 1 of ‘UBreakIterator* ubrk_openRules(const UChar*, int32_t, const UChar*, int32_t, UParseError*, UErrorCode*)’
 ubrk_openRules(const UChar     *rules,
 ^~~~~~~~~~~~~~
../../base/i18n/break_iterator.cc:64:40: error: invalid conversion from ‘const value_type* {aka const short unsigned int*}’ to ‘const UChar* {aka const char16_t*}’ [-fpermissive]
                            string_.data(),
                            ~~~~~~~~~~~~^~
In file included from gen/shim_headers/icuuc_shim/third_party/icu/source/common/unicode/ubrk.h:5:0,
                 from ../../base/i18n/break_iterator.cc:10:
/usr/include/unicode/ubrk.h:263:1: note:   initializing argument 3 of ‘UBreakIterator* ubrk_openRules(const UChar*, int32_t, const UChar*, int32_t, UParseError*, UErrorCode*)’
 ubrk_openRules(const UChar     *rules,
 ^~~~~~~~~~~~~~
../../base/i18n/break_iterator.cc:75:35: error: invalid conversion from ‘const value_type* {aka const short unsigned int*}’ to ‘const UChar* {aka const char16_t*}’ [-fpermissive]
                       string_.data(),
                       ~~~~~~~~~~~~^~
In file included from gen/shim_headers/icuuc_shim/third_party/icu/source/common/unicode/ubrk.h:5:0,
                 from ../../base/i18n/break_iterator.cc:10:
/usr/include/unicode/ubrk.h:241:1: note:   initializing argument 3 of ‘UBreakIterator* ubrk_open(UBreakIteratorType, const char*, const UChar*, int32_t, UErrorCode*)’
 ubrk_open(UBreakIteratorType type,
 ^~~~~~~~~
../../base/i18n/break_iterator.cc: In member function ‘bool base::i18n::BreakIterator::SetText(const char16*, size_t)’:
../../base/i18n/break_iterator.cc:131:37: error: invalid conversion from ‘const char16* {aka const short unsigned int*}’ to ‘const UChar* {aka const char16_t*}’ [-fpermissive]
                text, length, &status);
                                     ^
In file included from gen/shim_headers/icuuc_shim/third_party/icu/source/common/unicode/ubrk.h:5:0,
                 from ../../base/i18n/break_iterator.cc:10:
/usr/include/unicode/ubrk.h:374:1: note:   initializing argument 2 of ‘void ubrk_setText(UBreakIterator*, const UChar*, int32_t, UErrorCode*)’
 ubrk_setText(UBreakIterator* bi,
 ^~~~~~~~~~~~
Comment 1 Mike Gilbert gentoo-dev 2017-05-27 03:29:02 UTC
Portage 2.3.6_p1 (python 3.5.3-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-6.3.0, glibc-2.24-r1, 4.9.25 x86_64)
=================================================================
System uname: Linux-4.9.25-x86_64-AMD_Phenom-tm-_II_X6_1055T_Processor-with-gentoo-2.3
KiB Mem:    32947660 total,   1860712 free
KiB Swap:          0 total,         0 free
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1-r1::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.8.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/sandbox:         2.11-r5::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.27::gentoo
sys-devel/gcc:            4.7.4::gentoo, 4.8.5::gentoo, 4.9.4::gentoo, 5.4.0-r3::gentoo, 6.3.0::gentoo, 7.1.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /home/floppym/repos/gentoo
    sync-type: git
    sync-uri: ssh://git@git.gentoo.org/repo/gentoo.git
    priority: -1000

crossdev
    location: /home/floppym/repos/crossdev
    masters: gentoo
    priority: 10

python
    location: /home/floppym/repos/python
    sync-type: git
    sync-uri: ssh://git@git.gentoo.org/proj/python.git
    masters: gentoo
    priority: 20

floppym
    location: /home/floppym/repos/floppym
    masters: gentoo
    priority: 30

local
    location: /home/floppym/repos/local
    masters: gentoo
    priority: 40

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/bin/startx /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf"
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/ssl/certs /etc/terminfo /usr/share/themes"
CXXFLAGS="-O2 -pipe -march=amdfam10"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --binpkg-respect-use=y --binpkg-changed-deps=y --dynamic-deps=n --quiet-build=n --quiet-fail=y --with-bdeps=y --jobs=6 --verbose-conflicts"
FCFLAGS="-O2 -pipe -march=amdfam10"
FEATURES="assume-digests binpkg-logs buildpkg cgroup clean-logs config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles ipc-sandbox network-sandbox news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-orphans userfetch userpriv usersync"
FFLAGS="-O2 -pipe -march=amdfam10"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/var/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--ipv4"
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="/x"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo caps cdda cdr cli cracklib crypt css cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg filecaps firefox flac fontconfig fortran gdbm gif glamor gpm gtk iconv idn imap ipv6 jpeg kde kipi kwallet lcms libnotify lzma mad mmxext mng modules mp3 mp4 mpeg mtp multilib ncurses nls nptl offensive ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell sse3 sse4a ssl startup-notification suid svg systemd taglib theora threads tiff truetype udev udisks unicode upower usb vaapi vdpau vim-syntax vorbis widgets wxwidgets x264 xattr xcb xcomposite xft xinerama xml xv xvid zlib zsh-completion" ABI_X86="64 32" 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="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 proxy proxy_fcgi" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 3dnow 3dnowext popcnt sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 emu pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 ppc64 x86_64" QEMU_USER_TARGETS="aarch64 arm i386 ppc64 x86_64" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS
Comment 2 Mike Gilbert gentoo-dev 2017-06-08 02:35:06 UTC
With 60.0.3112.20, I get the following failure, which seems to be an improvement.

FAILED: obj/base/i18n/time_formatting.o
x86_64-pc-linux-gnu-g++ -MMD -MF obj/base/i18n/time_formatting.o.d -DBASE_I18N_IMPLEMENTATION -DV8_D
EPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS
=1 -DUSE_X11=1 -DDISABLE_NACL -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCH
ROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACR
OS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DGLIB_VERSION_MAX_AL
LOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DUSING_SYSTEM_ICU=1 -DICU_UTI
L_DATA_IMPL=ICU_UTIL_DATA_STATIC -I../.. -Igen -Igen/shim_headers/icui18n_shim -Igen/shim_headers/ic
uuc_shim -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I../../third_party/ced/src -fno-stri
ct-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D_
_TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -m64 -march=x86-64 -pthread -Wall -Wno-unused-
local-typedefs -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-unused-parameter -fomit
-frame-pointer -g0 -fvisibility=hidden -O2 -fno-ident -fdata-sections -ffunction-sections -std=gnu++
11 -Wno-narrowing -fno-rtti -fno-exceptions -fvisibility-inlines-hidden -O2 -pipe -march=amdfam10 -f
no-delete-null-pointer-checks -c ../../base/i18n/time_formatting.cc -o obj/base/i18n/time_formatting
.o
In file included from ../../base/i18n/time_formatting.cc:11:0:
../../base/i18n/unicodestring.h:13:61: fatal error: third_party/icu/source/common/unicode/char16ptr.
h: No such file or directory
 #include "third_party/icu/source/common/unicode/char16ptr.h"
                                                             ^
compilation terminated.
Comment 3 Mike Gilbert gentoo-dev 2017-06-11 15:41:07 UTC
(In reply to Mike Gilbert from comment #2)

This should fix the missing header issue:

https://codereview.chromium.org/2935603002/
Comment 4 Mike Gilbert gentoo-dev 2017-06-11 15:42:37 UTC
Created attachment 476050 [details]
builld log for 60.0.3112.20

Once the missing header is resolved, I now get a different failure related to some type casting. Build log attached.
Comment 5 James Le Cuirot gentoo-dev 2017-07-16 10:50:32 UTC
This is very frustrating. It still affects 60.0.3112.40 and even 61.0.3141.7.
Comment 6 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2017-07-19 19:05:20 UTC
Added system-icu USE flag in https://gitweb.gentoo.org/repo/gentoo.git/commit/www-client/chromium?id=c38ed01caecf5bccbf40c542dc4a4816e1b3119b .
Comment 7 Graham Murray 2017-07-20 09:39:54 UTC
(In reply to Paweł Hajdan, Jr. from comment #6)
> Added system-icu USE flag in
> https://gitweb.gentoo.org/repo/gentoo.git/commit/www-client/
> chromium?id=c38ed01caecf5bccbf40c542dc4a4816e1b3119b .

Was it an oversight that the system-icu flag is present in the chromium-59 and chromium-61 ebuilds but not in chromium-60?
Comment 8 Mike Gilbert gentoo-dev 2017-07-20 14:19:18 UTC
(In reply to Graham Murray from comment #7)
> Was it an oversight that the system-icu flag is present in the chromium-59
> and chromium-61 ebuilds but not in chromium-60?

IUSE="system-icu" is only present in chromium-61.0.3159.5.ebuild.

I may consider backporting it to 60, but definitely not 59.
Comment 9 Mike Gilbert gentoo-dev 2017-07-20 14:23:08 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=824fc17c5a706eebfcbd500a7c499a12cfa157ab

commit 824fc17c5a706eebfcbd500a7c499a12cfa157ab
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Thu Jul 20 10:22:18 2017 -0400

    www-client/chromium: depend on <dev-libs/icu-59

    Building with system ICU 59 is broken.

    Bug: https://bugs.gentoo.org/619796
    Package-Manager: Portage-2.3.6_p16, Repoman-2.3.2_p84

 www-client/chromium/chromium-59.0.3071.104.ebuild | 2 +-
 www-client/chromium/chromium-60.0.3112.40.ebuild  | 2 +-
 www-client/chromium/chromium-61.0.3159.5.ebuild   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Comment 10 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2017-08-22 22:11:04 UTC
This is now fixed by above patch (thanks Mike!), and for M62 we build with system ICU 59, see bug #627382 .