Upstream has been using a bundled version of a random libtommath.git commit, and libtom shows no sign of doing another release soon. This worked fine for a few months but some recent change in moarvm added a dependency on a #define that's not present in libtommath-1.0. It's possible to patch it in and things *seem* fine, all the way until it gets to rakudo's src_test where everything completely fails. Seems like the only option for now is to revert to using the bundled library. (2017.08.1 was only released today, so isn't in portage yet)
Done.