When trying to compile app-misc/color-1.1 I hit an error. After looking arounda bit I narrowed it down to the sed statement in src_unpack(). The problem is that it does s/cc/$(tc-getCC)/g where the original thing in the Makefile is 'gcc'. Thus the sed statement replaces 'cc' with your compiler name and you get gx86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -c -o color.o color.c instead of x86_64-pc-linux-gnu-gcc -march=athlon64 -O2 -pipe -c -o color.o color.c I'm attaching a patch. Reproducible: Always
Created attachment 138834 [details, diff] Fix cc->gcc stuff I should also mention that the problem is not in color-1.2 because in 1.2 upstream changed from gcc->cc and the bug is therefore not reproducable on that version.
Thanks. As discussed on IRC I've changed the ebuild to emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die "emake failed" Overriding the values this way is much saner than messing around with sed.