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/ttyrec-1.0.8-10.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.9v94LY sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.MtXCjY + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ttyrec-1.0.8-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/ttyrec-1.0.8-build + rm -rf ttyrec-1.0.8 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/ttyrec-1.0.8.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ttyrec-1.0.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ttyrec-1.0.8-deb-ttyrex-debian-patches-from-ttyrex.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ttyrec-1.0.8-mga-no-streams.patch + /usr/bin/patch -p1 -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.9cPopL + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ttyrec-1.0.8-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 ttyrec-1.0.8 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j48 V=1 VERBOSE=1 gcc -O2 -g -fomit-frame-pointer -Wall -DSVR4 -D_GNU_SOURCE -c -o ttyrec.o ttyrec.c ttyrec.c: In function 'main': ttyrec.c:135:1: warning: old-style function definition [-Wold-style-definition] 135 | main(argc, argv) | ^~~~ ttyrec.c:143:15: error: conflicting types for 'getenv'; have 'char *(void)' 143 | char *getenv(); | ^~~~~~ In file included from ttyrec.c:60: /usr/include/stdlib.h:773:14: note: previous declaration of 'getenv' with type 'char *(const char *)' 773 | extern char *getenv (const char *__name) __THROW __nonnull ((1)) __wur; | ^~~~~~ ttyrec.c:176:17: error: too many arguments to function 'getenv'; expected 0, have 1 176 | shell = getenv("SHELL"); | ^~~~~~ ~~~~~~~ ttyrec.c:143:15: note: declared here 143 | char *getenv(); | ^~~~~~ ttyrec.c:191:23: error: assignment to '__sighandler_t' {aka 'void (*)(int)'} from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types] 191 | sa.sa_handler = finish; | ^ ttyrec.c:142:14: note: 'finish' declared here 142 | void finish(); | ^~~~~~ In file included from /usr/include/sys/signal.h:1, from ttyrec.c:55: /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ make: *** [: ttyrec.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -O2 -g -fomit-frame-pointer -Wall -DSVR4 -D_GNU_SOURCE -c -o ttytime.o ttytime.c ttytime.c: In function 'calc_time': ttytime.c:57:26: warning: 'end.tv.tv_sec' may be used uninitialized [-Wmaybe-uninitialized] 57 | return end.tv.tv_sec - start.tv.tv_sec; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ ttytime.c:44:19: note: 'end.tv.tv_sec' was declared here 44 | Header start, end; | ^~~ gcc -O2 -g -fomit-frame-pointer -Wall -DSVR4 -D_GNU_SOURCE -c -o io.o io.c gcc -O2 -g -fomit-frame-pointer -Wall -DSVR4 -D_GNU_SOURCE -c -o ttyplay.o ttyplay.c error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.9cPopL (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.9cPopL (%build) I: [iurt_root_command] ERROR: chroot