Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 666894 - [seden overlay] games-strategy/widelands-0.19-r2 fails to build with >=dev-libs/icu-61: ‘UnicodeString’ does not name a type
Summary: [seden overlay] games-strategy/widelands-0.19-r2 fails to build with >=dev-li...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Eden
URL: https://bugs.launchpad.net/widelands/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-23 17:23 UTC by Karl-Johan Karlsson
Modified: 2018-09-29 20:08 UTC (History)
1 user (show)

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


Attachments
Compressed build.log (build.log.bz2,36.26 KB, application/x-bzip)
2018-09-23 17:24 UTC, Karl-Johan Karlsson
Details
widelands-0.19-icu-61-namespace.patch (widelands-0.19-icu-61-namespace.patch,691 bytes, patch)
2018-09-23 17:25 UTC, Karl-Johan Karlsson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Karl-Johan Karlsson 2018-09-23 17:23:32 UTC
When building games-strategy/widelands-0.19-r2 with >=dev-libs/icu-61, the build fails with:

In file included from /var/tmp/portage/games-strategy/widelands-0.19-r2/work/widelands-build19-src/src/ui_fsmenu/options.cc:36:
/var/tmp/portage/games-strategy/widelands-0.19-r2/work/widelands-build19-src/src/graphic/text/bidi.h:43:36: error: ‘UnicodeString’ does not name a type
 std::string icustring2string(const UnicodeString& convertme);
                                    ^~~~~~~~~~~~~
make[2]: *** [src/ui_fsmenu/CMakeFiles/ui_fsmenu.dir/build.make:258: src/ui_fsmenu/CMakeFiles/ui_fsmenu.dir/options.cc.o] Error 1

The bug has been reported upstream at https://bugs.launchpad.net/widelands/+bug/1760581 and a fix has been merged for the upcoming 0.20, but the fix in https://bugs.launchpad.net/widelands/+bug/1760581/comments/4 is simple enough that I thought it would be worthwile to include it alone.

An implicit "using namespace icu;" has been removed from the ICU headers, so the type name needs to be qualified with "icu::". This is the only instance of this problem in the code; attached is a patch that makes it build and run for me.

Reproducible: Always




Portage 2.3.49 (python 3.6.6-final-0, default/linux/amd64/17.1/hardened, gcc-8.2.0, glibc-2.27-r6, 4.18.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.18.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.6
KiB Mem:    32874148 total,  12717780 free
KiB Swap:   33521660 total,  33521660 free
Timestamp of repository gentoo: Sun, 23 Sep 2018 15:00:01 +0000
Head commit of repository gentoo: 93dfe5ba210abb6c363c711847ad1e9c3963f4fc
Head commit of repository creideiki: 1996e913cdc87bcf00a87f5c5799245c62cba040

sh bash 4.4_p23
ld GNU ld (Gentoo 2.31.1 p3) 2.31.1
app-shells/bash:          4.4_p23::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5-r1::gentoo, 3.6.6::gentoo
dev-util/cmake:           3.12.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r1::gentoo
sys-devel/gcc:            8.2.0-r2::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.17::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: --timeout=10 --ipv6
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

creideiki
    location: /usr/local/portage
    sync-type: git
    sync-uri: https://github.com/creideiki/portage
    masters: gentoo
    priority: 0

rion
    location: /var/lib/layman/rion
    sync-type: laymansync
    sync-uri: git://github.com/rion-overlay/rion-overlay.git
    masters: gentoo
    priority: 50

seden
    location: /var/lib/layman/seden
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/user/seden.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

torbrowser
    location: /var/lib/layman/torbrowser
    sync-type: laymansync
    sync-uri: git://github.com/MeisterP/torbrowser-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
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="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --keep-going --quiet-build=n --backtrack=30 --verbose-conflicts"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FEATURES="assume-digests binpkg-logs buildpkg compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--enable-new-dtags"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=10 --ipv6"
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="X acl alsa amd64 bluray bzip2 crypt cups cxx dvd emacs exif ffmpeg flac gif hackrf hardened iconv idn ipv6 jpeg jpeg2k kde libtirpc mng multilib ncurses nls nptl ogg opencl opengl openmp pam pcre pdf pie png postscript qt5 readline seccomp ssl ssp svg tiff unicode vaapi vdpau vorbis vulkan wmf xattr xpm xtpax zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" 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="braindump flow karbon kexi krita sheets stage words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" INPUT_DEVICES="evdev wacom" KERNEL="linux" L10N="en en-US en-GB sv" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="BPF AMDGPU X86" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_5 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby23 ruby24 ruby25" SANE_BACKENDS="pixma hp" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

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

games-strategy/widelands-0.19-r2::seden was built with the following:
USE="" ABI_X86="(64)"


dev-libs/icu-62.1::gentoo was built with the following:
USE="-debug -doc -examples -static-libs" ABI_X86="32 (64) (-x32)"
CXXFLAGS="-march=native -O2 -pipe -ggdb -std=c++14"
Comment 1 Karl-Johan Karlsson 2018-09-23 17:24:39 UTC
Created attachment 547660 [details]
Compressed build.log
Comment 2 Karl-Johan Karlsson 2018-09-23 17:25:10 UTC
Created attachment 547662 [details, diff]
widelands-0.19-icu-61-namespace.patch
Comment 3 Sven Eden 2018-09-24 19:44:02 UTC
Thanks for the heads-up!

I love Widelands, but I haven't had time to play it for a couple of months now.
But I am very busy at the moment, so please have patience for a few days.
Comment 4 Sven Eden 2018-09-29 20:08:43 UTC
Fixed with commit 7f911f4 in seden overlay.

Thank you very much for your patience!