I've downloaded the source to an Ubuntu 18.04 box and I'm attempting to compile. It fails with:
Successfully compiled z-type.c.
Successfully compiled z-util.c.
Successfully compiled z-virt.c.
LINK angband.o
main.c:56:1: warning: ISO C forbids empty initializer braces [-Wpedantic]
{
^
main.c:55:28: error: zero or negative size array ‘modules’
static const struct module modules[] =
^~~~~~~
Failed to compile main.c!
../mk/buildsys.mk:242: recipe for target 'main.o' failed
make[3]: *** [main.o] Error 1
../mk/buildsys.mk:110: recipe for target 'all' failed
make[2]: *** [all] Error 2
mk/buildsys.mk:115: recipe for target 'subdirs' failed
make[1]: *** [subdirs] Error 2
mk/buildsys.mk:110: recipe for target 'all' failed
make: *** [all] Error 2
The version-generic compiling documentation at https://angband.readthedocs.io/en/la...compiling.html states that the compiling process requires that you run "./autogen.sh", but my downloaded 4.2.2 includes no "autogen.sh" file. I tried copying autogen.sh from my 4.2.1 install and running it just to see what would happen, but there was no difference in the result; the error occurs both when skipping autogen.sh, and when using the 4.2.1 version of autogen.sh.
As an aside...is there install documentation specific to each version? If the install process changes and every version is pointing at the same set of instructions, older releases will eventually no longer have documentation for their installs.
Successfully compiled z-type.c.
Successfully compiled z-util.c.
Successfully compiled z-virt.c.
LINK angband.o
main.c:56:1: warning: ISO C forbids empty initializer braces [-Wpedantic]
{
^
main.c:55:28: error: zero or negative size array ‘modules’
static const struct module modules[] =
^~~~~~~
Failed to compile main.c!
../mk/buildsys.mk:242: recipe for target 'main.o' failed
make[3]: *** [main.o] Error 1
../mk/buildsys.mk:110: recipe for target 'all' failed
make[2]: *** [all] Error 2
mk/buildsys.mk:115: recipe for target 'subdirs' failed
make[1]: *** [subdirs] Error 2
mk/buildsys.mk:110: recipe for target 'all' failed
make: *** [all] Error 2
The version-generic compiling documentation at https://angband.readthedocs.io/en/la...compiling.html states that the compiling process requires that you run "./autogen.sh", but my downloaded 4.2.2 includes no "autogen.sh" file. I tried copying autogen.sh from my 4.2.1 install and running it just to see what would happen, but there was no difference in the result; the error occurs both when skipping autogen.sh, and when using the 4.2.1 version of autogen.sh.
As an aside...is there install documentation specific to each version? If the install process changes and every version is pointing at the same set of instructions, older releases will eventually no longer have documentation for their installs.
Comment