Building dev-db/mariadb-10.1.8 fails with: /var/tmp/portage/dev-db/mariadb-10.1.8/work/mysql/sql/sql_digest.cc:41:23: fatal error: lex_token.h: No such file or directory compilation terminated. Reproducible: Always Steps to Reproduce: 1. emerge =dev-db/mariadb-10.1.8:0/18::gentoo Actual Results: error: lex_token.h: No such file or directory compilation terminated. Expected Results: Successful merge. Related to upstream bug: https://github.com/lshmouse/mysql-5.6/commit/3ec48f7f86b4a185c55d3269b7c400d76cb195b1
Created attachment 416748 [details, diff] Patch: Target sql_embedded should depend on GenDigest Patch based on https://github.com/lshmouse/mysql-5.6/commit/3ec48f7f86b4a185c55d3269b7c400d76cb195b1
Please attach your build.log and emerge --info
Created attachment 416804 [details] dev-db:mariadb-10.1.8:20151112-181804.log.tar.bz2
Created attachment 416806 [details] emerge --info
I assume you can disregard the patch. The bug seems to be a concurrency bug that's solved with MAKEOPTS="-j1". It's only sporadically reproducible at MAKEOPTS="-j8", and only with the "embedded" USE flag enabled.