if [[ $(tc-getCXX) == *g++ ]]; then comp="gcc" elif [[ $(tc-getCXX) == *ic*c ]]; then comp="icc" else die "compiler $(tc-getCXX) not supported by build system" fi This check fails if ${CXX} contains versioned compiler executable. Adding extra '*' at the end helps.
+ 08 Jun 2014; Justin Lecher <jlec@gentoo.org> tbb-4.1.20121003-r1.ebuild, + tbb-4.2.20131118.ebuild, tbb-4.2.20140122.ebuild, metadata.xml: + Add compatibility with versioned gcc, #512672 +