Created attachment 327436 [details] gptfdisk-0.8.5-build.log x86_64-pc-linux-gnu-g++ crc32.o support.o guid.o gptpart.o mbrpart.o basicmbr.o mbr.o gpt.o bsd.o parttypes.o attributes.o diskio.o diskio-unix.o cgdisk.o gptcurses.o -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--icf=safe -licuio -licuuc -luuid -lncurses -o cgdisk gptpart.o:gptpart.cc:function GPTPart::GetDescription(): error: undefined reference to 'icu::UnicodeString::UnicodeString(unsigned short const*)' gptpart.o:gptpart.cc:function GPTPart::SetType(PartType): error: undefined reference to 'icu::UnicodeString::UnicodeString(unsigned short const*)' gptpart.o:gptpart.cc:function GPTPart::SetType(PartType): error: undefined reference to 'icu::UnicodeString::doExtract(int, int, unsigned short*, int) const' gptpart.o:gptpart.cc:function GPTPart::SetName(std::string const&): error: undefined reference to 'icu::UnicodeString::doExtract(int, int, unsigned short*, int) const' gptpart.o:gptpart.cc:function GPTPart::SetDefaultDescription(): error: undefined reference to 'icu::UnicodeString::doExtract(int, int, unsigned short*, int) const' gptpart.o:gptpart.cc:function GPTPart::ShowSummary(int, unsigned int): error: undefined reference to 'icu::UnicodeString::UnicodeString(unsigned short const*)' gptpart.o:gptpart.cc:function GPTPart::ShowDetails(unsigned int): error: undefined reference to 'icu::UnicodeString::UnicodeString(unsigned short const*)' gptpart.o:gptpart.cc:function GPTPart::SetName(icu::UnicodeString const&): error: undefined reference to 'icu::UnicodeString::doExtract(int, int, unsigned short*, int) const' collect2: error: ld returned 1 exit status make: *** [cgdisk] Error 1 emerge --info icu gptfdisk Portage 2.2.0_alpha141 (hardened/linux/amd64/selinux, gcc-4.7.2, glibc-2.16.0, 3.7.0-rc2-custom x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.7.0-rc2-custom-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.2 Timestamp of tree: Fri, 26 Oct 2012 00:15:01 +0000 ccache version 3.1.8 [disabled] app-shells/bash: 4.2_p37 dev-java/java-config: 2.1.12 dev-lang/python: 2.7.3-r2, 3.2.3-r1, 3.3.0 dev-util/ccache: 3.1.8 dev-util/cmake: 2.8.9-r1 dev-util/pkgconfig: 0.27.1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.2 sys-apps/sandbox: 2.6 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.4 sys-devel/binutils: 2.23 sys-devel/gcc: 4.6.3, 4.7.2 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.6 (virtual/os-headers) sys-libs/glibc: 2.16.0 Repositories: gentoo systemd hardened-dev custom Installed sets: @local-protected ACCEPT_KEYWORDS="amd64 x86 ~amd64 ~x86" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-Wall -Wextra -march=native -pipe -O3 -fno-tree-vectorize" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /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/splash /etc/terminfo" CXXFLAGS="-Wall -Wextra -march=native -pipe -O3 -fno-tree-vectorize" DISTDIR="/usr/local/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://mirrors.163.com/gentoo http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--icf=safe" LINGUAS="en en_US zh zh_CN" MAKEOPTS="V=1 -j10" PKGDIR="/usr/local/portage/packages-amd64" PORTAGE_BZIP2_COMMAND="lbzip2" PORTAGE_COMPRESS="xz" PORTAGE_COMPRESS_FLAGS="-9ef" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--ipv4" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/systemd /var/lib/layman/hardened-development /usr/local/portage" SYNC="rsync://mirrors.ustc.edu.cn/gentoo-portage" USE="X acl alsa amd64 audit bash-completion berkdb bzip2 c++0x cairo caps cli cracklib crypt custom-cflags cxx dbus dri ffmpeg gdbm gmp gnome gpm gtk gtk3 hardened iconv icu ipv6 jit jpeg jpeg2k justify lzma mmx modules mudflap multilib ncurses nls nptl open_perms opengl openmp orc pam pcre png pppd pulseaudio qt4 readline selinux session sse sse2 ssl svg systemd tcpd threads tiff udev unicode urandom vim-syntax xattr xinetd zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="bootchart btrfs caps dmsquash-live gensplash livenet lvm nfs ssh-client syslog systemd" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US zh zh_CN" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm mips64el x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, USE_PYTHON ================================================================= Package Settings ================================================================= dev-libs/icu-50_rc was built with the following: USE="-debug -doc -examples -static-libs" sys-apps/gptfdisk-0.8.5 was built with the following: USE="(multilib) (selinux)"
I am unable to reproduce this. Arfrever suggested that it might be a gold/LDFLAGS issue. However, rebuilding icu and gptfdisk with your LDFLAGS did not cause any errors for me.
what about compiler version? for me its gcc-4.7.2. may be its compilable with old gcc versions.
I'm able to reproduce this (and bug 439698 ) with icu compiled with gcc 4.7.2 after remerging icu with gcc 4.6.3 the bug disappears.
I can confirm this, also. The bug it's trigler by gcc-4.7.2. By compile only dev-libs/icu-50 with gcc-4.6.3, then switch back to gcc-4.7.2 I was able to emerge both gptfdisk-0.8.5 and chromium-23.0.1271.40. emerge --info (yes, I use lto, I tried with and whitout lto enabled, it make no differece here): Portage 2.2.0_alpha141 (default/linux/amd64/10.0/desktop/gnome, gcc-4.7.2, glibc-2.16.0, 3.6.2-gentoo-costel x86_64) ================================================================= System uname: Linux-3.6.2-gentoo-costel-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.2 Timestamp of tree: Fri, 26 Oct 2012 05:00:01 +0000 app-shells/bash: 4.2_p37 dev-java/java-config: 2.1.12 dev-lang/python: 2.7.3-r2, 3.2.3-r1 dev-util/cmake: 2.8.9-r1 dev-util/pkgconfig: 0.27.1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.2 sys-apps/sandbox: 2.6 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.9.6-r3, 1.11.6, 1.12.4 sys-devel/binutils: 2.23 sys-devel/gcc: 4.7.2 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r5::gnome sys-kernel/linux-headers: 3.6 (virtual/os-headers) sys-libs/glibc: 2.16.0 Repositories: gentoo added gnome ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -mtune=native -flto=8 -fuse-linker-plugin" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=native -mtune=native -flto=8 -fuse-linker-plugin -fpermissive" DISTDIR="/mnt/linux/distfiles" EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=10 --keep-going --with-bdeps=y --complete-graph --quiet-build=n --autounmask-write" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs candy collision-protect config-protect-if-modified distlocks fail-clean fixlafiles news nodoc noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://localhost http://ftp.romnet.org/gentoo/ ftp://ftp.romnet.org/gentoo/ http://mirrors.xservers.ro/gentoo/ http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://distfiles.gentoo.org/" LANG="ro_RO.UTF-8" LC_ALL="ro_RO.UTF-8" LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--warn-once,--as-needed -O2 -pipe -march=native -mtune=native -flto=8 -fuse-linker-plugin" LINGUAS="ro en" MAKEOPTS="-j8 --load-average=10" PKGDIR="/usr/portage/packages" PORTAGE_COMPRESS="bzip2" PORTAGE_COMPRESS_FLAGS="-9" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--human-readable --delete-before --progress" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/added /usr/portage/local/gnome" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli colord consolekit corefonts cpudetection cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fontconfig fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm graphviz gstreamer gtk gtk3 iconv icu imagemagick inotify introspection ipv6 ithreads jpeg jpeg2k lcms libnotify mad mmx mng mp3 mp4 mpeg mudflap multilib mysql nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pch pcre pdf png policykit postgres ppds pulseaudio qt3support qt4 readline sasl sdl session spell sse sse2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb vdpau vhosts vorbis wxwidgets x264 xcb xinerama xml xorg xv xvid zlib" ALSA_CARDS="virtuoso hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_alias authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mime mime_magic negotiation reqtimeout rewrite setenvif speling status substitute unique_id userdir usertrack version vhost_alias access_compat authn_core authz_core proxy proxy_http socache_shmcb unixd" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ro en" PHP_TARGETS="php5-4" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="nv 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, USE_PYTHON
(In reply to comment #3) > I'm able to reproduce this (and bug 439698 ) with icu compiled with gcc > 4.7.2 after remerging icu with gcc 4.6.3 the bug disappears. Can confirm this for gptfdisk. Recompiling icu with gcc-4.6.3 fixes the link-error. All build with the bfd-linker.
Created attachment 327456 [details, diff] testing CXX_UTF16_STRING This patch is for testing only.
I'm a little confused about UTF16 string literals and -std=c++x0. When I compile dev-libs/icu-50_rc with the following options: 1. gcc-4.6.3 + CXX_UTF16_STRING=0: good. 2. gcc-4.6.3 + CXX_UTF16_STRING=1: good. 3. gcc-4.7.2 + CXX_UTF16_STRING=0: good. 4. gcc-4.7.2 + CXX_UTF16_STRING=1: bad. 1,2, and 3: gptfdisk can be built with no error. 4: gptfdisk should be built with -std=c++0x.
For me doesn't compile gptfdisk with icu 50_rc and gcc versions 4.4 4.5 4.6 4.7 I guess its icu fail.
*** Bug 439698 has been marked as a duplicate of this bug. ***
The problem arises because the icu-50 configure script checks for the availability of UTF-16 literal support C++11 has. Using -std=c++11, that's why Alphat-PC's test turned out the way it did. With gcc-4.6.x the flag is named -std=c++0x. If you compile gtpfdisk with CXXFLAGS="-std=c++11" it compiles fine. I can see two possible solutions here, remove the test from configure, which makes sense to me or make everything that uses icu have -std=c++11 in it's cxxflags.
Reassigning to icu maintainers since this appears to be an icu bug. Since icu requires special compiler flags to use, it needs to either export those flags in its pkgconfig files and /usr/bin/icu-config, or be patched to not require those flags.
(In reply to comment #11) > Since icu requires special compiler flags to use, it needs to either export > those flags in its pkgconfig files and /usr/bin/icu-config Actually, adding -std=c++11 to CXXFLAGS of packages that depend on icu is not a viable option: it leads to build failure with some of them (e.g. chrome). Therefore, patching icu so that its users don't need to use c++11 is IMHO the only solution.
C++ packages using ICU should use one of the following commands to get flags required for compilation of C++ sources: icu-config --cxxflags pkg-config icu-i18n --variable CXXFLAGS pkg-config icu-io --variable CXXFLAGS pkg-config icu-le --variable CXXFLAGS pkg-config icu-lx --variable CXXFLAGS pkg-config icu-uc --variable CXXFLAGS
Created attachment 327542 [details, diff] gptfdisk-0.8.5.ebuild.diff For reference only... "append-cxxflags -std=c++11" doesn't work if CXX=clang++ See bug 439914
(In reply to comment #14) ICU's configure indirectly uses _AC_LANG_COMPILER_GNU macro (available in /usr/share/autoconf/autoconf/lang.m4) to check if a GNU compiler is used. Apparently clang++ tries to imitate GNU compiler. Does clang++ support e.g. -std=gnu++98 or -std=gnu++0x options?
(In reply to comment #14) If you have not made custom changes in ICU ebuild, then replacement of -std=gnu++11 with -std=c++11 in your patch does not make any sense. Either ICU ebuild detects -std=gnu++11 as supported and then it is safe to use it for e.g. sys-apps/gptfdisk, or ICU ebuild detects -std=gnu++11 as unsupported and then `icu-config --cxxflags` will print empty string.
(In reply to comment #15) > (In reply to comment #14) > > ICU's configure indirectly uses _AC_LANG_COMPILER_GNU macro (available in > /usr/share/autoconf/autoconf/lang.m4) to check if a GNU compiler is used. > Apparently clang++ tries to imitate GNU compiler. > Does clang++ support e.g. -std=gnu++98 or -std=gnu++0x options? Limited support. Build log: clang-3.1 -std=c++11: >>> Compiling source in /var/tmp/portage/sys-apps/gptfdisk-0.8.5/work/gptfdisk-0.8.5 ... make V=1 -j1 clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o crc32.o crc32.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o support.o support.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o guid.o guid.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o gptpart.o gptpart.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o mbrpart.o mbrpart.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o basicmbr.o basicmbr.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o mbr.o mbr.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o gpt.o gpt.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o bsd.o bsd.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o parttypes.o parttypes.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o attributes.o attributes.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o diskio.o diskio.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o diskio-unix.o diskio-unix.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o cgdisk.o cgdisk.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o gptcurses.o gptcurses.cc clang++ crc32.o support.o guid.o gptpart.o mbrpart.o basicmbr.o mbr.o gpt.o bsd.o parttypes.o attributes.o diskio.o diskio-unix.o cgdisk.o gptcurses.o -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--icf=safe -licuio -licuuc -luuid -lncurses -o cgdisk clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o gdisk.o gdisk.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o gpttext.o gpttext.cc clang++ crc32.o support.o guid.o gptpart.o mbrpart.o basicmbr.o mbr.o gpt.o bsd.o parttypes.o attributes.o diskio.o diskio-unix.o gdisk.o gpttext.o -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--icf=safe -licuio -licuuc -luuid -o gdisk clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o sgdisk.o sgdisk.cc clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o gptcl.o gptcl.cc clang++ crc32.o support.o guid.o gptpart.o mbrpart.o basicmbr.o mbr.o gpt.o bsd.o parttypes.o attributes.o diskio.o diskio-unix.o sgdisk.o gptcl.o -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--icf=safe -licuio -licuuc -luuid -lpopt -o sgdisk clang++ -O2 -pipe -w -std=c++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o fixparts.o fixparts.cc clang++ support.o diskio.o diskio-unix.o basicmbr.o mbrpart.o fixparts.o -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--icf=safe -o fixparts >>> Source compiled. clang-3.1 -std=gnu++11: >>> Compiling source in /var/tmp/portage/sys-apps/gptfdisk-0.8.5/work/gptfdisk-0.8.5 ... make V=1 -j1 clang++ -O2 -pipe -w -std=gnu++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o crc32.o crc32.cc clang++ -O2 -pipe -w -std=gnu++11 -Wall -D_FILE_OFFSET_BITS=64 -D USE_UTF16 -c -o support.o support.cc In file included from support.cc:18: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/string:41: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/bits/char_traits.h:40: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/bits/stl_algobase.h:65: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/bits/stl_pair.h:61: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/bits/move.h:57: /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/type_traits:256:39: error: use of undeclared identifier '__float128' struct __is_floating_point_helper<__float128> ^ 1 error generated. make: *** [support.o] Error 1
(In reply to comment #17) Please file a separate bug for sys-devel/clang.
*** Bug 440046 has been marked as a duplicate of this bug. ***
(In reply to comment #17) Support for clang in ICU has been improved. Synchronize the tree and rebuild ICU.
Patching the ebuild, with the one from Comment 14, fixed my issue. ~AMD64: [ebuild R ] dev-libs/icu-50_rc-r1:0/50 USE="-debug -doc -examples -static-libs" 0 kB [ebuild R #] sys-devel/gcc-4.7.2:4.7 USE="cxx fortran gtk mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -go -graphite (-hardened) (-libssp) -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc {-test} -vanilla" 52 kB Thanks!
An similar patch was applied to 0.8.5 few mins ago