https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61515
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Since you are testing the trunk, checking is turned on by default. Can you try with --enable-checking=release instead? This should reduce the compile time.