https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62097
--- Comment #11 from Chris Johns <chrisj at rtems dot org> --- Bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66032 has a patch using awk that lets the build complete without an error. The problem is still present on FreeBSD and darwin.