D: [iurt_root_command] chroot warning: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected 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.YAyUKR + 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 sh: line 4: [: -j8: integer expression expected Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.dJoPC0 + 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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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 -Cstrip=none --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 -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + 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 -j48 V=1 VERBOSE=1 gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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 -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -DINI_FILE=\"/usr/share/games/fairymax/qmax.ini\" maxqi.c -o maxqi maxqi.c:176:1: error: return type defaults to 'int' [-Wimplicit-int] 176 | pboard() | ^~~~~~ maxqi.c:181:1: error: return type defaults to 'int' [-Wimplicit-int] 181 | D(k,q,l,e,z,n) /* recursive minimax search, k=moving side, n=depth*/ | ^ maxqi.c:352:1: error: return type defaults to 'int' [-Wimplicit-int] 352 | InitEngine() | ^~~~~~~~~~ maxqi.c:360:1: error: return type defaults to 'int' [-Wimplicit-int] 360 | InitGame() | ^~~~~~~~ maxqi.c: In function 'LoadGame': maxqi.c:429:20: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 429 | return; /* keep old settings */ | ^~~~~~ maxqi.c:407:5: note: declared here 407 | int LoadGame(char *name) | ^~~~~~~~ maxqi.c: In function 'main': maxqi.c:538:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 538 | return; | ^~~~~~ maxqi.c:462:5: note: declared here 462 | int main(int argc, char **argv) | ^~~~ maxqi.c:590:25: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 590 | return; | ^~~~~~ maxqi.c:462:5: note: declared here 462 | int main(int argc, char **argv) | ^~~~ maxqi.c: In function 'LoadGame': maxqi.c:439:29: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 439 | 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.dJoPC0 (%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.dJoPC0 (%build) I: [iurt_root_command] ERROR: chroot