larsbrinkhoff / lbForth

Self-hosting metacompiled Forth, bootstrapping from a few lines of C; targets Linux, Windows, ARM, RISC-V, 68000, PDP-11, asm.js.
GNU General Public License v3.0
418 stars 112 forks source link

Building in 32-bit Cywgin results in "Undefined: file-source" #29

Closed larsbrinkhoff closed 7 years ago

larsbrinkhoff commented 7 years ago

Building make TARGET=x86 OS=windows in Cygwin32 seemingly works ok, but the resulting Forth is a one-line file with the text Undefined: file-source.

Also see #28, reported by @vigilancetech-com.

larsbrinkhoff commented 7 years ago

I see now that output is somewhat random, and it's caused by a crash during metacompilation. There's a bad memory access somewhere.

larsbrinkhoff commented 7 years ago

The problem was that the bootstrap Forth (using the C target) dictionary size was too small to contain all data needed to build the target Forth.

Fixed by making the dictionary slightly larger.