Due to upstream changes to gcc/gcc.c, gcc-spec-env-r1.patch is no longer valid. Reproducible: Always
Created attachment 388464 [details] build.log
Created attachment 388466 [details] gcc-spec-env-r1.patch.out
Created attachment 388468 [details, diff] Updated patch for GCC 4.10
Everything seems to work fine when replacing gcc-spec-env-r1.patch with the above patch. The changes from gcc-spec-env-r1.patch are trivial, but required for the patch to apply.
respecting GCC_SPECS env var really only makes sense with the hardened builds which aren't supported in the snaps, so i've just dropped the patch http://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2d86d67c36b63cfd984aa119b41eebd6c297126 http://gitweb.gentoo.org/proj/toolchain.git/commit/?id=cd0d7969d1043802353adf44e97477f8a66fa6c1