This build fails to complete with -mno-avx512f in the CXXFLAGS. This should be added to the 'filter-flags' statement in the ebuild.
You should really not have -mno-avx512f in your CXXFLAGS in the first place.
*** This bug has been marked as a duplicate of bug 878411 ***