-DNDEBUG -O2 -pipe -march=native -mtune=native -std=c++11 -fvisibility=hidden -DLIBETONYEK_VISIBILITY -Wall -Wextra -Wshadow -pedantic -c IWORKOutputManager.cpp -fPIC -DPIC -o .libs/libetonyek_internal_la-IWORKOutputManager.o In file included from /usr/include/liblangtag/lt-ext-module.h:23:0, from /usr/include/liblangtag/langtag.h:20, from IWORKLanguageManager.cpp:15: /usr/include/liblangtag/lt-tag.h:56:14: error: use of enum ‘_lt_tag_filter_t’ without previous declaration typedef enum _lt_tag_filter_t lt_tag_filter_t; ^ make[4]: *** [Makefile:1282: libetonyek_internal_la-IWORKLanguageManager.lo] Error 1 make[4]: *** Waiting for unfinished jobs....
The problem here is =app-text/liblangtag-0.6.0 package. It installs a header incompatible with modern g++. Upstream has a fix for that: https://bitbucket.org/tagoh/liblangtag/commits/3cc56cf32c006e7e8445c3ba49ffc128c646c88d I've pushed it as: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=04ef5ee090bd5130630a8aa4330f5dce0371f298 You'll need to update to >=app-text/liblangtag-0.6.0-r1 to fix header and then try to build app-text/libetonyek.