D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/ninvaders-0.1.1-12.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.CCLU4Z sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.x4Ul7P + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ninvaders-0.1.1-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/ninvaders-0.1.1-build + rm -rf ninvaders-0.1.1 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/ninvaders-0.1.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ninvaders-0.1.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ninvaders-0.1.1-add-debuginfo.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + 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.aL9GtP + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ninvaders-0.1.1-build + 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 + cd ninvaders-0.1.1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' ++ echo '-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' ++ sed 's/-O2/-O3 -fcommon/' + /usr/bin/make -O -j48 V=1 VERBOSE=1 'CFLAGS=-O3 -fcommon -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' gcc -c -I. -O3 -fcommon -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 globals.c globals.c:44:6: error: conflicting types for 'doSleep'; have 'void(int)' 44 | void doSleep(int microseconds) | ^~~~~~~ In file included from globals.c:27: globals.h:28:13: note: previous declaration of 'doSleep' with type 'void(void)' 28 | extern void doSleep(); | ^~~~~~~ globals.c: In function 'waitForReturn': globals.c:86:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 86 | fgets(b, sizeof(b), stdin); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [Makefile:14: globals.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -c -I. -O3 -fcommon -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 nInvaders.c nInvaders.c: In function 'setUpTimer': nInvaders.c:323:29: error: assignment to '__sighandler_t' {aka 'void (*)(int)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 323 | myAction.sa_handler = &handleTimer; | ^ nInvaders.c:209:6: note: 'handleTimer' declared here 209 | void handleTimer() | ^~~~~~~~~~~ In file included from view.h:27, from nInvaders.h:27, from nInvaders.c:28: /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ make: *** [Makefile:14: nInvaders.o] Error 1 gcc -c -I. -O3 -fcommon -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 view.c view.c: In function 'playerExplosionDisplay': view.c:134:17: error: too many arguments to function 'doSleep'; expected 0, have 1 134 | doSleep(100000); // play animation not too fast | ^~~~~~~ ~~~~~~ In file included from view.h:32, from view.c:25: globals.h:28:13: note: declared here 28 | extern void doSleep(); | ^~~~~~~ make: *** [Makefile:14: view.o] Error 1 gcc -c -I. -O3 -fcommon -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 ufo.c gcc -c -I. -O3 -fcommon -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 player.c gcc -c -I. -O3 -fcommon -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 aliens.c aliens.c: In function 'render': aliens.c:167:31: warning: iteration 10 invokes undefined behavior [-Waggressive-loop-optimizations] 167 | lowest_ship[k]=-1; | ~~~~~~~~~~~~~~^~~ aliens.c:166:19: note: within this loop 166 | for (k=0;k<11;k++) { | ~^~~ aliens.c:167:31: warning: '__builtin_memset' writing 44 bytes into a region of size 40 overflows the destination [-Wstringop-overflow=] 167 | lowest_ship[k]=-1; | ~~~~~~~~~~~~~~^~~ In file included from aliens.c:25: aliens.h:50:5: note: destination object 'lowest_ship' of size 40 50 | int lowest_ship[ALIENS_MAX_NUMBER_X]; | ^~~~~~~~~~~ error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.aL9GtP (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.aL9GtP (%build) I: [iurt_root_command] ERROR: chroot