Page 1 of 1

Compiling Crawl on Fedora

PostPosted: Wednesday, 1st June 2016, 18:20
by sagitter
Hi all,

I'm trying to compile Crawl on Fedora 23, it's failed with this error:

  Code:
g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -std=c++11 -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -pipe    -DUSE_TILE -DUSE_TILE_LOCAL -DTOUCH_UI -DUSE_SDL -DUSE_GL -DUSE_FT   -D_REENTRANT  -DUSE_SOUND -Wall -Wformat-security -Wundef -Wno-array-bounds -Wno-format-zero-length -Wmissing-declarations -Wredundant-decls -Wno-parentheses -Wwrite-strings -Wshadow -pedantic -Wuninitialized -Iutil -I. -isystem /usr/include/lua-5.1  -Irltiles  -isystem /usr/include/freetype2 -I/usr/include/libpng16  -isystem /usr/include/SDL2     -DASSERTS -DPROPORTIONAL_FONT=\"/usr/share/fonts/bitstream-vera/Vera.ttf\" -DMONOSPACED_FONT=\"/usr/share/fonts/bitstream-vera/VeraMono.ttf\" -D_REENTRANT  -DCLUA_BINDINGS -DSHARED_DIR_PATH=\"/usr/share/crawl/saves\" -DDATA_DIR_PATH=\"/usr/share/crawl/\"  -MMD -c tilepick.cc -o tilepick.o
wiz-you.cc: In function 'void wizard_xom_acts()':
wiz-you.cc:1151:61: error: '_find_xom_event_from_string' was not declared in this scope
     xom_event_type event = _find_xom_event_from_string(specs);
                                                             ^
Makefile:1617: recipe for target 'wiz-you.o' failed
make: *** [wiz-you.o] Error 1
make: *** Waiting for unfinished jobs....
xom.cc:3739:13: warning: 'bool _sort_xom_effects(const xom_effect_count&, const xom_effect_count&)' defined but not used [-Wunused-function]
 static bool _sort_xom_effects(const xom_effect_count &a,
             ^
make: Leaving directory '/home/sagitter/rpmbuild/BUILD/crawl-0.18.1/crawl-ref/source'
error: Bad exit status from /var/tmp/rpm-tmp.m0Wxd7 (%build)


Full log: https://paste.fedoraproject.org/373462/

Can you take a look to this issue, please ?

Re: Compiling Crawl on Fedora

PostPosted: Wednesday, 1st June 2016, 20:18
by neil
sagitter wrote:Hi all,

I'm trying to compile Crawl on Fedora 23, it's failed with this error:

  Code:
g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -std=c++11 -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fPIC -pipe    -DUSE_TILE -DUSE_TILE_LOCAL -DTOUCH_UI -DUSE_SDL -DUSE_GL -DUSE_FT   -D_REENTRANT  -DUSE_SOUND -Wall -Wformat-security -Wundef -Wno-array-bounds -Wno-format-zero-length -Wmissing-declarations -Wredundant-decls -Wno-parentheses -Wwrite-strings -Wshadow -pedantic -Wuninitialized -Iutil -I. -isystem /usr/include/lua-5.1  -Irltiles  -isystem /usr/include/freetype2 -I/usr/include/libpng16  -isystem /usr/include/SDL2     -DASSERTS -DPROPORTIONAL_FONT=\"/usr/share/fonts/bitstream-vera/Vera.ttf\" -DMONOSPACED_FONT=\"/usr/share/fonts/bitstream-vera/VeraMono.ttf\" -D_REENTRANT  -DCLUA_BINDINGS -DSHARED_DIR_PATH=\"/usr/share/crawl/saves\" -DDATA_DIR_PATH=\"/usr/share/crawl/\"  -MMD -c tilepick.cc -o tilepick.o
wiz-you.cc: In function 'void wizard_xom_acts()':
wiz-you.cc:1151:61: error: '_find_xom_event_from_string' was not declared in this scope
     xom_event_type event = _find_xom_event_from_string(specs);
                                                             ^
Makefile:1617: recipe for target 'wiz-you.o' failed
make: *** [wiz-you.o] Error 1
make: *** Waiting for unfinished jobs....
xom.cc:3739:13: warning: 'bool _sort_xom_effects(const xom_effect_count&, const xom_effect_count&)' defined but not used [-Wunused-function]
 static bool _sort_xom_effects(const xom_effect_count &a,
             ^
make: Leaving directory '/home/sagitter/rpmbuild/BUILD/crawl-0.18.1/crawl-ref/source'
error: Bad exit status from /var/tmp/rpm-tmp.m0Wxd7 (%build)


Full log: https://paste.fedoraproject.org/373462/

Can you take a look to this issue, please ?


Try removing the "NOWIZARD=n" from the make command line. Looks like we have some errors when building without wizmode ("NOWIZARD = anything").

Edit: I pushed a fix to trunk that once again allows building without wizmode. Most likely the fix will appear in 0.18.2 whenever that is released.

Re: Compiling Crawl on Fedora

PostPosted: Wednesday, 1st June 2016, 21:53
by sagitter
Try removing the "NOWIZARD=n" from the make command line. Looks like we have some errors when building without wizmode ("NOWIZARD = anything").


You're right: removing
  Code:
NOWIZARD=n
fixes the error.

Edit: I pushed a fix to trunk that once again allows building without wizmode. Most likely the fix will appear in 0.18.2 whenever that is released.


Thanks.