Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482108 - dev-libs/boost-1.52.0-r6 - libs/locale/src/icu/formatter.cpp:61:43: Fehler: Aufruf des überladenen »format(boost::int64_t&, icu::UnicodeString&)« ist mehrdeutig
Summary: dev-libs/boost-1.52.0-r6 - libs/locale/src/icu/formatter.cpp:61:43: Fehler: A...
Status: RESOLVED DUPLICATE of bug 482372
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: C++ Team [disbanded]
URL: https://svn.boost.org/trac/boost/tick...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-22 15:14 UTC by Sascha Cunz
Modified: 2013-09-28 06:22 UTC (History)
0 users

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


Attachments
Build log for =dev-libs/boost-1.52.0-r6 (build.log,289.67 KB, text/x-log)
2013-08-22 15:28 UTC, Sascha Cunz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Cunz 2013-08-22 15:14:14 UTC
As seen in [0], __GLIBC_HAVE_LONG_LONG was removed from glibc in 2.17. Because of this, i had a failure to emerge boost-1.53.0 (after emerging glibc 2.18). This ticket references a patch from redhat. After appling that patch, boost emerged just fine.


[0] https://svn.boost.org/trac/boost/ticket/8731

Reproducible: Always

Steps to Reproduce:
1. emerge glibc >= 2.17
2. (re-)emerge boost >= 1.52.0-r6
Actual Results:  
=dev-libs/boost-1.52.0-r breaks with one compile error. =dev-libs/boost-1.53.0 breaks with two compiler errors.

Expected Results:  
boost should have compiled and installed.

Portage 2.2.0 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.0, glibc-2.18, 3.9.0-gentoo x86_64)
=================================================================
System uname: Linux-3.9.0-gentoo-x86_64-Intel-R-_Core-TM-_i5-2410M_CPU_@_2.30GHz-with-gentoo-2.2
KiB Mem:     6107856 total,    557364 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 17 Aug 2013 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r1, 3.2.5-r1, 3.3.2-r1
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.2-r1, 4.8.0
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.10 (virtual/os-headers)
sys-libs/glibc:           2.18
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -Wno-unused-local-typedefs"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -Wno-unused-local-typedefs"
DISTDIR="/usr/portage/files"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/tree"
PORTDIR_OVERLAY=""
USE="X a52 aac acl acpi alsa amd64 apng bash-completion berkdb bineditor bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups curl cxx dbus declarative dot doxygen dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fortran gd gdbm gif git gles2 glibc-omitfp gpm iconv icu idn jpeg kde kdepim kipi lcms ldap libnotify lm_sensors lzma mad mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl ogg okteta openexr opengl openmp optimized-qmake opus pam pango pcre pdf pdfimport phonon plasma png policykit ppds python qalculate qt3support qt4 qthelp readline reports sdk sdl semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vaapi vdpau vim-syntax vorbis wxwidgets x264 xcb xcomposite xinerama xml xmp xscreensaver xv xvid zlib" 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="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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-22 15:21:22 UTC
Please attach the entire build log to this bug report.
Comment 2 Sascha Cunz 2013-08-22 15:28:08 UTC
Created attachment 356694 [details]
Build log for =dev-libs/boost-1.52.0-r6

I don't have the build log for 1.53 at hand any more, but i could reproduce it. The build log is not in posix locale, so I'm qouting the actual error again here:

from line 904ff in the log:

libs/locale/src/icu/formatter.cpp: In Elementfunktion »virtual boost::locale::impl_icu::number_format<CharType>::string_type boost::locale::impl_icu::number_format<CharType>::format(boost::int64_t, size_t&) const«:
libs/locale/src/icu/formatter.cpp:61:43: Fehler: Aufruf des überladenen »format(boost::int64_t&, icu::UnicodeString&)« ist mehrdeutig
                 icu_fmt_->format(value,tmp);
                                           ^
libs/locale/src/icu/formatter.cpp:61:43: Anmerkung: Kandidaten sind:
In file included from libs/locale/src/icu/formatter.cpp:15:0:
/usr/include/unicode/numfmt.h:320:20: Anmerkung: icu::UnicodeString& icu::NumberFormat::format(double, icu::UnicodeString&) const
     UnicodeString& format(  double number,
                    ^
/usr/include/unicode/numfmt.h:333:20: Anmerkung: icu::UnicodeString& icu::NumberFormat::format(int32_t, icu::UnicodeString&) const
     UnicodeString& format(  int32_t number,
                    ^
/usr/include/unicode/numfmt.h:346:20: Anmerkung: icu::UnicodeString& icu::NumberFormat::format(int64_t, icu::UnicodeString&) const
     UnicodeString& format(  int64_t number,
                    ^
(meaning an overload-resolution error)

The same error also occurs with boost-1.53. But 1.53 also has one additional error (one of the stdint.h types is undefined).
Comment 3 Sascha Cunz 2013-08-22 16:04:59 UTC
From a boost-1.53.0 build; this time with locale set back to posix:

1. error: 'uintptr_t' was not declared in this scope

    "x86_64-pc-linux-gnu-g++"  -ftemplate-depth-128 -O2 -pipe -fomit-frame-pointer -march=native -Wno-unused-local-typedefs -std=gnu++98 -finline-functions -Wno-inline -Wall -pthread -fPIC  -DBOOST_ALL_NO_LIB=1 -DBOOST_ATOMIC_DYN_LINK=1 -DBOOST_ATOMIC_SOURCE -DNDEBUG  -I"." -c -o "bin.v2/libs/atomic/build/gcc-4.8/gentoorelease/pch-off/threading-multi/lockpool.o" "libs/atomic/src/lockpool.cpp"

In file included from ./boost/atomic.hpp:12:0,
                 from libs/atomic/src/lockpool.cpp:1:
./boost/atomic/atomic.hpp:166:16: error: 'uintptr_t' was not declared in this scope
 typedef atomic<uintptr_t> atomic_uintptr_t;
                ^
./boost/atomic/atomic.hpp:166:25: error: template argument 1 is invalid
 typedef atomic<uintptr_t> atomic_uintptr_t;
                         ^
./boost/atomic/atomic.hpp:166:43: error: invalid type in declaration before ';' token
 typedef atomic<uintptr_t> atomic_uintptr_t;
                                           ^

2. error: call of overloaded 'foobar' is ambiguous

    "x86_64-pc-linux-gnu-g++"  -ftemplate-depth-128 -O2 -pipe -fomit-frame-pointer -march=native -Wno-unused-local-typedefs -std=gnu++98 -finline-functions -Wno-inline -Wall -pthread -fPIC  -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DYN_LINK=1 -DBOOST_LOCALE_DYN_LINK=1 -DBOOST_LOCALE_NO_WINAPI_BACKEND=1 -DBOOST_LOCALE_WITH_ICONV=1 -DBOOST_LOCALE_WITH_ICU=1 -DBOOST_SYSTEM_DYN_LINK=1 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_BUILD_DLL=1 -DBOOST_THREAD_NO_LIB=1 -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_DLL=1 -DNDEBUG  -I"." -I"/usr/include" -c -o "bin.v2/libs/locale/build/gcc-4.8/gentoorelease/pch-off/threading-multi/icu/formatter.o" "libs/locale/src/icu/formatter.cpp"

libs/locale/src/icu/formatter.cpp: In member function 'virtual boost::locale::impl_icu::number_format<CharType>::string_type boost::locale::impl_icu::number_format<CharType>::format(boost::int64_t, size_t&) const':
libs/locale/src/icu/formatter.cpp:61:43: error: call of overloaded 'format(boost::int64_t&, icu::UnicodeString&)' is ambiguous
                 icu_fmt_->format(value,tmp);
                                           ^
libs/locale/src/icu/formatter.cpp:61:43: note: candidates are:
In file included from libs/locale/src/icu/formatter.cpp:15:0:
/usr/include/unicode/numfmt.h:320:20: note: icu::UnicodeString& icu::NumberFormat::format(double, icu::UnicodeString&) const
     UnicodeString& format(  double number,
                    ^
/usr/include/unicode/numfmt.h:333:20: note: icu::UnicodeString& icu::NumberFormat::format(int32_t, icu::UnicodeString&) const
     UnicodeString& format(  int32_t number,
                    ^
/usr/include/unicode/numfmt.h:346:20: note: icu::UnicodeString& icu::NumberFormat::format(int64_t, icu::UnicodeString&) const
     UnicodeString& format(  int64_t number,
                    ^
Comment 4 Sascha Cunz 2013-09-21 13:17:23 UTC
As I would have expected from the Bug report on boost.org, this still applies to the (still masked for testing) =dev-libs/boost-1.54.0 ebuild.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2013-09-28 06:22:47 UTC

*** This bug has been marked as a duplicate of bug 482372 ***