# emerge -pqv '=kde-frameworks/sonnet-5.34.0::gentoo' [ebuild U ] kde-frameworks/sonnet-5.34.0 [5.29.0] USE="hunspell nls -aspell -debug {-test}" [ 90%] Linking CXX shared module hunspell.so cd /mnt/old.kubuntu/scratch/var/tmp/portage/kde-frameworks/sonnet-5.34.0/work/sonnet-5.34.0_build/src/plugins/hunspell && /usr/bin/cmake -E cmake_link_script CMakeFiles/sonnet_hunspell.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe -std=c++0x -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -pedantic -Wsuggest-override -Wl,--no-undefined -Wl,--fatal-warnings -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed -shared -o hunspell.so CMakeFiles/sonnet_hunspell.dir/hunspellclient.cpp.o CMakeFiles/sonnet_hunspell.dir/hunspelldict.cpp.o CMakeFiles/sonnet_hunspell.dir/hunspelldebug.cpp.o CMakeFiles/sonnet_hunspell.dir/sonnet_hunspell_automoc.cpp.o -Wl,-rpath,/mnt/old.kubuntu/scratch/var/tmp/portage/kde-frameworks/sonnet-5.34.0/work/sonnet-5.34.0_build/src/core: ../../core/libKF5SonnetCore.so.5.34.0 -lhunspell /usr/lib64/libQt5Core.so.5.6.2 CMakeFiles/sonnet_hunspell.dir/hunspelldict.cpp.o: In function `HunspellDict::addToSession(QString const&)': hunspelldict.cpp:(.text+0x29b): undefined reference to `Hunspell::add(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' CMakeFiles/sonnet_hunspell.dir/hunspelldict.cpp.o: In function `HunspellDict::HunspellDict(QString const&, QString)': hunspelldict.cpp:(.text+0x1697): undefined reference to `Hunspell::add_with_affix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' hunspelldict.cpp:(.text+0x17ad): undefined reference to `Hunspell::add(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' hunspelldict.cpp:(.text+0x190b): undefined reference to `Hunspell::remove(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' CMakeFiles/sonnet_hunspell.dir/hunspelldict.cpp.o: In function `HunspellDict::addToPersonal(QString const&)': hunspelldict.cpp:(.text+0x1d13): undefined reference to `Hunspell::add(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' collect2: error: ld returned 1 exit status make[2]: *** [src/plugins/hunspell/CMakeFiles/sonnet_hunspell.dir/build.make:174: src/plugins/hunspell/hunspell.so] Error 1 make[2]: Leaving directory '/mnt/old.kubuntu/scratch/var/tmp/portage/kde-frameworks/sonnet-5.34.0/work/sonnet-5.34.0_build' make[1]: *** [CMakeFiles/Makefile2:395: src/plugins/hunspell/CMakeFiles/sonnet_hunspell.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... # emerge --info '=kde-frameworks/sonnet-5.34.0::gentoo' Portage 2.3.5 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r3, 4.4.26-gentoo-2017-jan-10-with-drm-nvidia x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.4.26-gentoo-2017-jan-10-with-drm-nvidia-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.3 KiB Mem: 8163908 total, 2042940 free KiB Swap: 16385020 total, 16385020 free Timestamp of repository gentoo: Sun, 04 Jun 2017 19:00:01 +0000 sh bash 4.3_p48-r1 ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1 app-shells/bash: 4.3_p48-r1::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.1-r2::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo dev-util/cmake: 3.7.2::gentoo dev-util/pkgconfig: 0.28-r2::gentoo sys-apps/baselayout: 2.3::gentoo sys-apps/openrc: 0.26.3::gentoo sys-apps/sandbox: 2.10-r3::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.26.1::gentoo sys-devel/gcc: 5.4.0-r3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r3::gentoo Repositories: gentoo location: /mnt/old.kubuntu/scratch/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 local location: /usr/local/portage masters: gentoo sunrise location: /var/lib/layman/sunrise masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /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/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" 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 xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.daum.net/gentoo http://ftp.iij.ad.jp/pub/linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" 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 --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi activities alsa amd64 apache2 apm audit bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cjk cli consolekit cracklib crypt css cups curl cxx dbi dbus declarative dri dts dvd dvdr ebook emboss encode epub exif fam ffmpeg firefox flac fortran gd gdbm gif gimp git glamor gpm gtk hddtemp iconv imagemagick inotify ipv6 jack jpeg kde kipi kontact kwallet lcms ldap libass libnotify lm_sensors mad maildir matroska memlimit mng mobi modules mp3 mp4 mpeg mplayer multilib mysql mysqli ncurses nls nptl nvidia ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds python qml qt3support qt4 qt5 readline sdl seccomp semantic-desktop session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vim-syntax vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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" KERNEL="linux" L10N="en en-GB en-US fr fr-FR zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB en_US fr fr_FR zh_TW" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia 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" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
I reading this again: https://www.gentoo.org/support/news-items/2015-10-22-gcc-5-new-c++11-abi.html and: https://wiki.gentoo.org/wiki/Upgrading_GCC#Rebuilding_everything I'll see if it helps.
Closing, given comment #1. I'll re-open if I can't fix this on my own. Thanks.