#2659: Build Error in git QT branch, Error: variable ‘mods’ set but not used
-------------------------+-------------------------------------------------
Reporter: | Type: bug
anonymous | Priority: major
Status: new | Component: Build system
Milestone: | Keywords: qt build error variable mods set
unspecified | but not used
Version: | Blocked By:
git/qt |
Operating System: |
GNU/Linux 32bit |
Blocking: |
-------------------------+-------------------------------------------------
Error while building QT branch from git,
Version is
{{{
[josh@josh-laptop qt]$ git pull
remote: Counting objects: 121, done.
remote: Compressing objects: 100% (68/68), done.
remote: Total 70 (delta 54), reused 2 (delta 2)
Unpacking objects: 100% (70/70), done.
From git://github.com/Warzone2100/warzone2100
a1df50b..8ea1e86 2.3 -> origin/2.3
fec754a..845d628 master -> origin/master
914b449..81f96c2 qt -> origin/qt
Updating 914b449..81f96c2
Fast-forward
macosx/Warzone.xcodeproj/project.pbxproj | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
}}}
And the error that pops up is at the end,
{{{
[josh@josh-laptop qt]$ ./autogen.sh
+ checking for autoconf >= 2.56 ... found 2.68, ok.
+ checking for automake >= 1.10 ... found 1.11.1, ok.
+ running aclocal ...
+ running autoheader ...
+ running autoconf ...
+ running automake ...
+ removing config.cache ...
Now type './configure && make' to compile.
[josh@josh-laptop qt]$ ./configure && make
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached)
-std=gnu99
checking for ranlib... ranlib
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for bison... bison -y
checking for bison >= 1.31... found 2.4.3, ok
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for flex >= 2.5.33... found 2.5.35, ok
checking for flex != 2.5.34... not found, good
checking whether perl executable path has been provided... no
checking for perl... /usr/bin/perl
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for perl version... This is perl 5, version 12, subversion 3
(v5.12.3) built for i686-linux-thread-multi
checking for gawk... (cached) gawk
checking for zip... zip
checking for unzip... unzip
.
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for strlcpy... no
checking for strlcat... no
checking whether gcc -std=gnu99 accepts -fstack-protector... yes
checking whether g++ accepts -fstack-protector... yes
checking alloca.h usability... yes
checking alloca.h presence... yes
checking for alloca.h... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for pkg-config >= 0.9... found 0.25, ok
checking for QT4... yes
checking for moc-qt4... no
checking for moc... /usr/bin/moc
checking for uic-qt4... no
checking for uic... /usr/bin/uic
checking for rcc-qt4... no
checking for rcc... /usr/bin/rcc
checking whether to build NSIS installer... no
checking whether to compile in debug mode... yes
checking whether the C compiler accepts the -Werror -Wno-switch flag...
yes
checking whether the C compiler accepts the -Werror -Wno-enum-compare
flag... yes
checking for PNG... yes
checking for THEORA... yes
checking for OPENAL... yes
checking for OGGVORBIS... yes
checking for GLEW... yes
checking for nearbyint in -lm... yes
checking physfs.h usability... yes
checking physfs.h presence... yes
checking for physfs.h... yes
checking for PHYSFS_init in -lphysfs... yes
checking for main in -lGL... yes
checking for main in -lGLU... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating doc/Makefile
config.status: creating icons/Makefile
config.status: creating data/Makefile
config.status: creating data/mods/multiplay/Makefile
config.status: creating data/music/Makefile
config.status: creating pkg/nsis/Makefile
config.status: creating win32/Makefile
config.status: creating tests/Makefile
config.status: creating lib/framework/Makefile
config.status: creating lib/exceptionhandler/Makefile
config.status: creating lib/gamelib/Makefile
config.status: creating lib/ivis_opengl/Makefile
config.status: creating lib/netplay/Makefile
config.status: creating lib/netplay/miniupnpc/Makefile
config.status: creating lib/script/Makefile
config.status: creating lib/sequence/Makefile
config.status: creating lib/sound/Makefile
config.status: creating lib/widget/Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
configure:
configure: *** Running in debug mode! ***
configure:
configure: WARNING: Distributor unknown!
configure: Use --with-distributor when compiling package for distribution
make all-recursive
make[1]: Entering directory `/mnt/my-data/warzone-build-directory/warzone-
git/qt'
Making all in win32
make[2]: Entering directory `/mnt/my-data/warzone-build-directory/warzone-
git/qt/win32'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/mnt/my-data/warzone-build-directory/warzone-
git/qt/win32'
Making all in lib/framework
make[2]: Entering directory `/mnt/my-data/warzone-build-directory/warzone-
git/qt/lib/framework'
/usr/bin/moc -o wzapp_moc.cpp wzapp.h
flex -oresource_lexer.lex.cpp resource_lexer.l
bison -y -d -oresource_parser.tab.cpp resource_parser.y
flex -ostrres_lexer.lex.cpp strres_lexer.l
bison -y -d -ostrres_parser.tab.cpp strres_parser.y
make all-am
make[3]: Entering directory `/mnt/my-data/warzone-build-directory/warzone-
git/qt/lib/framework'
g++ -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -DDEBUG
-DWZ_DATADIR="\"/usr/local/share/warzone2100\""
-DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -DQT_SHARED
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtOpenGL
-I/usr/include/QtNetwork -I/usr/include/QtScript -O0 -g -Werror -Wno-
enum-compare -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wcast-
align -Wwrite-strings -Wpointer-arith -Wno-format-security -DQT_SHARED
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtOpenGL
-I/usr/include/QtNetwork -I/usr/include/QtScript -fstack-protector -MT
wzapp_moc.o -MD -MP -MF .deps/wzapp_moc.Tpo -c -o wzapp_moc.o
wzapp_moc.cpp
mv -f .deps/wzapp_moc.Tpo .deps/wzapp_moc.Po
g++ -DHAVE_CONFIG_H -I. -I../.. -DYY_NO_INPUT -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS -DDEBUG
-DWZ_DATADIR="\"/usr/local/share/warzone2100\""
-DLOCALEDIR="\"/usr/local/share/locale\"" -I../.. -DQT_SHARED
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtOpenGL
-I/usr/include/QtNetwork -I/usr/include/QtScript -O0 -g -Werror -Wno-
enum-compare -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wcast-
align -Wwrite-strings -Wpointer-arith -Wno-format-security -DQT_SHARED
-I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtOpenGL
-I/usr/include/QtNetwork -I/usr/include/QtScript -fstack-protector -MT
wzapp.o -MD -MP -MF .deps/wzapp.Tpo -c -o wzapp.o wzapp.cpp
wzapp.cpp: In member function ‘void
WzMainWindow::realHandleKeyEvent(QKeyEvent*, bool)’:
wzapp.cpp:489:24: error: variable ‘mods’ set but not used [-Werror=unused-
but-set-variable]
cc1plus: all warnings being treated as errors
make[3]: *** [wzapp.o] Error 1
make[3]: Leaving directory `/mnt/my-data/warzone-build-directory/warzone-
git/qt/lib/framework'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mnt/my-data/warzone-build-directory/warzone-
git/qt/lib/framework'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/my-data/warzone-build-directory/warzone-
git/qt'
make: *** [all] Error 2
}}}
--
Ticket URL: <http://developer.wz2100.net/ticket/2659>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev