Description |
Luajit2 support for x86_64 systems was recently added (0008641 [1]), so I decided to try out a build.
[1] commit: http://s-z.org/neil/git/?p=crawl.git;a=commit;h=97cf85e3ad4f3c109adc8a6e0f1ed4163876178b [^]
A few problems were encountered:
- When compiled against the current default luajit2 submodule checkout, the executable fails with a "Unknown error compiling chunk" message when processing .des files.
- When compiling against 'crawl-20140511' luajit2 submodule branch, crawl fails to link due to a missing '-ldl' library
- When successfully linked against 'crawl-20140511' luajit2 by supplying -ldl, the resulting executable fails to parse a number of .des files due to stack overflows. I was able to finally run crawl from distclean without error with a stack size of 64MiB (stack overflows occurred for stack limits of 8MiB [my system default], 16MiB, and 32MiB)
The build system used is running Debian Jessie x86_64 with gcc (Debian 4.8.2-21) 4.8.2. I have not yet tested a luajit2 build for i686 or other cross targets. The stack limit was set via 'ulimit -s 65536' in the bash session used to build and launch crawl. |