D: [iurt_root_command] chroot warning: Macro expanded in comment on line 10: %{version}.tar.gz warning: %setup_compile_flags is deprecated, use %set_build_flags instead Installing /home/iurt/rpmbuild/SRPMS/harris-0.3.0-0.20160830.4.mga8.src.rpm Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.rVzbkk + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf harris-0.3.0-20160830 + /usr/bin/xz -dc /home/iurt/rpmbuild/SOURCES/harris-0.3.0-20160830.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd harris-0.3.0-20160830 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /home/iurt/rpmbuild/SOURCES/0001-Makefile-Fix-ordering-of-linker-arguments.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.tY1Sql + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd harris-0.3.0-20160830 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables ' + export FCFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags' + export LDFLAGS + export 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wno-error=maybe-uninitialized -Wno-error=implicit-fallthrough -Wno-error=format-truncation' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wno-error=maybe-uninitialized -Wno-error=implicit-fallthrough -Wno-error=format-truncation' + /usr/bin/make -O -j8 V=1 VERBOSE=1 PREFIX=/usr ./mkevents.py h >events.h File "./mkevents.py", line 21 print """/* harris - a strategy game Copyright (C) 2012-2013 Edward Cree licensed under GPLv3+ - see top of harris.c for details events: maps event names to ids */ #ifndef HAVE_EVENTS_H #define HAVE_EVENTS_H """ ^ SyntaxError: invalid syntax make: *** [Makefile:50: events.h] Error 1 make: *** Waiting for unfinished jobs.... cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wno-error=maybe-uninitialized -Wno-error=implicit-fallthrough -Wno-error=format-truncation -Wall -Wextra -Werror --std=gnu11 -g -DDATIDIR=\"/usr/share/games/harris\" -DUSAVDIR=\".local/share/harris\" `sdl-config --cflags` -o widgets.o -c widgets.c In file included from widgets.c:13: globals.h:27:19: error: 'NEVENTS' undeclared here (not in a function) 27 | extern date event[NEVENTS]; | ^~~~~~~ make: *** [Makefile:113: widgets.o] Error 1 cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wno-error=maybe-uninitialized -Wno-error=implicit-fallthrough -Wno-error=format-truncation -Wall -Wextra -Werror --std=gnu11 -g -DDATIDIR=\"/usr/share/games/harris\" -DUSAVDIR=\".local/share/harris\" `sdl-config --cflags` -o geom.o -c geom.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wno-error=maybe-uninitialized -Wno-error=implicit-fallthrough -Wno-error=format-truncation -Wall -Wextra -Werror --std=gnu11 -g -DDATIDIR=\"/usr/share/games/harris\" -DUSAVDIR=\".local/share/harris\" `sdl-config --cflags` -o rand.o -c rand.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wno-error=maybe-uninitialized -Wno-error=implicit-fallthrough -Wno-error=format-truncation -Wall -Wextra -Werror --std=gnu11 -g -DDATIDIR=\"/usr/share/games/harris\" -DUSAVDIR=\".local/share/harris\" `sdl-config --cflags` -o bits.o -c bits.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wno-error=maybe-uninitialized -Wno-error=implicit-fallthrough -Wno-error=format-truncation -Wall -Wextra -Werror --std=gnu11 -g -DDATIDIR=\"/usr/share/games/harris\" -DUSAVDIR=\".local/share/harris\" `sdl-config --cflags` -o date.o -c date.c cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wno-error=maybe-uninitialized -Wno-error=implicit-fallthrough -Wno-error=format-truncation -Wall -Wextra -Werror --std=gnu11 -g -DDATIDIR=\"/usr/share/games/harris\" -DUSAVDIR=\".local/share/harris\" `sdl-config --cflags` -o weather.o -c weather.c weather.c: In function 'w_iter': weather.c:60:17: error: using integer absolute value function 'abs' when argument is of floating point type 'double' [-Werror=absolute-value] 60 | double big=(abs(d2px)>abs(d2py))?d2px:d2py; | ^~~ weather.c:60:27: error: using integer absolute value function 'abs' when argument is of floating point type 'double' [-Werror=absolute-value] 60 | double big=(abs(d2px)>abs(d2py))?d2px:d2py; | ^~~ cc1: all warnings being treated as errors make: *** [Makefile:113: weather.o] Error 1 cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -Wno-error=maybe-uninitialized -Wno-error=implicit-fallthrough -Wno-error=format-truncation -Wall -Wextra -Werror --std=gnu11 -g -DDATIDIR=\"/usr/share/games/harris\" -DUSAVDIR=\".local/share/harris\" `sdl-config --cflags` -o history.o -c history.c In file included from /usr/include/string.h:495, from /usr/include/SDL/SDL_stdinc.h:60, from /usr/include/SDL/SDL_main.h:26, from /usr/include/SDL/SDL.h:30, from /usr/include/atg.h:21, from types.h:11, from history.h:12, from history.c:9: In function 'strncpy', inlined from 'evm_append' at history.c:253:2: /usr/include/bits/string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 238 equals destination size [-Werror=stringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'evc_append' at history.c:307:2: /usr/include/bits/string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 219 equals destination size [-Werror=stringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make: *** [Makefile:113: history.o] Error 1 error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.tY1Sql (%build) RPM build errors: Macro expanded in comment on line 10: %{version}.tar.gz %setup_compile_flags is deprecated, use %set_build_flags instead Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.tY1Sql (%build) I: [iurt_root_command] ERROR: chroot