vishapoberon / compiler

vishap oberon compiler
http://oberon.vishap.am
GNU General Public License v3.0
186 stars 25 forks source link

Occasional build failure on OpenBSD #35

Open dcwbrown opened 8 years ago

dcwbrown commented 8 years ago

Occasionally the build on OpenBSD will fail with MODULE expected. The error report goes on to show the error line, which is the very beginiing of file, and when the error reporting code reads the file the 'MODULE' statement is there just fine. It can happen on any Oberon source file, but it is always the first line.

It's worth looking into whether file buffer uniqueness management may not work correctly on OpenBSD - e.g. maybe we're relying on something in stat that's not valid for OpenBSD. Or maybe there's an uninitialised varianble :-(.

dcwbrown commented 7 years ago

Added dump of scanner variables for when this error hits and it shows that the reader is reporting eot from the start. Possibly an uninitialised variable in texts, readers or files. ...