https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116123
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- flex is required for building GCC from git even without m2. gengtype-lex.l needs to be processed by flex.
pinskia at gcc dot gnu.org via Gcc-bugs Sun, 28 Jul 2024 10:16:16 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116123
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- flex is required for building GCC from git even without m2. gengtype-lex.l needs to be processed by flex.