https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81864
--- Comment #2 from Andrew Roberts <andrewm.roberts at sky dot com> --- I can confirm gcc 7.2.0 builds ok on x86-64, arm and aarch64 with --enable-gather-detailed-mem-stats. So its just 8.0.0 which is failing.