https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10740
etienne_lorrain at yahoo dot fr changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |etienne_lorrain at yahoo dot fr --- Comment #6 from etienne_lorrain at yahoo dot fr --- I just had this error on Fedora26 compiling gcc-7-20171012. It looks like it is due to the fact that I did not have flex installed. Something like "sudo yum install flex" does install flex, but obviously does not remove file ./host-x86_64-pc-linux-gnu/gcc/gengtype-lex.c so retrying "make bootstrap" brings exactly the same error. I did "make realclean" and again "./configure ..." and everything works. Maybe "./contrib/download_prerequisites" should warn that flex is needed when that command is not present...