Although not strictly a FreeMiNT bug, it turns out there's a #if/#endif misplacement which fails to build grep 2.7. Patch attached and ebuild should be updated. Thanks.
Created attachment 255997 [details] fix build when MBS_SUPPORT not defined. Patch sent to bugs-grep@gnu.org (as savannah is currently down).
Created attachment 256065 [details, diff] proper unified diff
thanks, patch added.