I just got the same problem, errors happen in random location of the source (starting with fresh code).
I was able to finish compilation with `CFLAGS=-O1` but the resulting binary is rather very slow and I do not consider it as a solution. Regards, Michal