https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109293
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Xi Ruoyao from comment #2) > I'll make a patch to check if memmem is declared in configure.ac. memmem is > not a POSIX function, so it may be undeclared on systems other than MinGW as > well. memmem is included in libiberty so it is more just about the prototype not being declared.