Created attachment 367706 [details, diff] spidermonkey-cross-compile.patch The cross-compiling fix introduced in bug #414473 is now broken because jscpucfg no longer exists. The problem is demonstrated by another user at https://forums.gentoo.org/viewtopic-t-972548-start-0.html. I didn't face the subsequent error he experienced but it seems unrelated. I tried to remove the entire cross-compiling fix to check whether it was necessary at all but unfortunately it still is.
Created attachment 367972 [details, diff] spidermonkey-cross-compile.patch I've since found another cross-compile issue. It doesn't use ${CHOST}-pkg-config like most autotools-based packages do, but falls back to just pkg-config. This isn't because of the way they've messed with variables like CC but because seems to be because they're using such an old autoconf version. Here's an updated patch. By the way, I've only looked at version 17 because that's the one required by policykit but it looks like the other versions are affected in the same way.
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system. Thank You for your support and understanding The Mozilla Team