D: [iurt_root_command] chroot warning: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/fairymax-4.8-10.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.RRJWp4 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf Fairy-Max + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/fairymax.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd Fairy-Max + rm -rf /home/pterjan/rpmbuild/BUILD/Fairy-Max-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/Fairy-Max-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (fairymax-4.8-mga-remove-patented-chess-variants.patch):' Patch #0 (fairymax-4.8-mga-remove-patented-chess-variants.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .patented --fuzz=0 patching file fairymax.c patching file data/fmax.ini + echo 'Patch #1 (fairymax-4.8-mga-add-ldflags-to-makefile.patch):' Patch #1 (fairymax-4.8-mga-add-ldflags-to-makefile.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.zmTlU6 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd Fairy-Max + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + /usr/bin/make -O -j8 V=1 VERBOSE=1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -O2 -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -DINI_FILE=\"/usr/share/games/fairymax/fmax.ini\" fairymax.c -o fairymax fairymax.c:129:1: error: return type defaults to 'int' [-Wimplicit-int] 129 | pboard() | ^~~~~~ fairymax.c:135:1: error: return type defaults to 'int' [-Wimplicit-int] 135 | D(k,q,l,e,E,z,n) /* recursive minimax search, k=moving side, n=depth*/ | ^ fairymax.c:355:1: error: return type defaults to 'int' [-Wimplicit-int] 355 | InitEngine() | ^~~~~~~~~~ fairymax.c:363:1: error: return type defaults to 'int' [-Wimplicit-int] 363 | InitGame() | ^~~~~~~~ fairymax.c: In function 'LoadGame': fairymax.c:445:20: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 445 | return; /* keep old settings */ | ^~~~~~ fairymax.c:423:5: note: declared here 423 | int LoadGame(char *name) | ^~~~~~~~ fairymax.c: In function 'main': fairymax.c:557:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 557 | return; | ^~~~~~ fairymax.c:479:5: note: declared here 479 | int main(int argc, char **argv) | ^~~~ fairymax.c:609:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 609 | return; | ^~~~~~ fairymax.c:479:5: note: declared here 479 | int main(int argc, char **argv) | ^~~~ fairymax.c: In function 'LoadGame': fairymax.c:455:29: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 455 | for(i=0; i fmax.man cp fmax.man fairymax.6 rm -f fairymax.6.gz gzip fairymax.6 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.zmTlU6 (%build) RPM build warnings: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.zmTlU6 (%build) I: [iurt_root_command] ERROR: chroot