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/ncompress-5.0-1.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.JPsvUw sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.sDJXDp + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ncompress-5.0-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/ncompress-5.0-build + rm -rf ncompress-5.0 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/ncompress-5.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ncompress-5.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ncompress-5.0-make.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ncompress-5.0-lfs.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ncompress-5.0-2GB.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ncompress-5.0-endians.patch + /usr/bin/patch -p2 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/ncompress-5.0-memmove.patch + /usr/bin/patch -p2 -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.urh8DT + umask 022 + cd /home/pterjan/rpmbuild/BUILD/ncompress-5.0-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 ncompress-5.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j48 V=1 VERBOSE=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 ' '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' sed \ -e 's:options= :options= -DUTIME_H -DLSTAT :' \ Makefile.def > Makefile /usr/bin/make -f Makefile compress make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/ncompress-5.0-build/ncompress-5.0' gcc -o compress -DUTIME_H -DLSTAT -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 -DDIRENT=1 -DUSERMEM=800000 -DREGISTERS=20 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNOFUNCDEF=1 -DOBUFSIZ=1024 -DUTIME_H -DSYSDIR=1 compress.c -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 compress.c: In function 'main': compress.c:584:1: warning: old-style function definition [-Wold-style-definition] 584 | main(argc, argv) | ^~~~ compress.c:594:40: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 594 | signal(SIGINT, (SIG_TYPE)abort_compress); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(void) In file included from compress.c:149: /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ compress.c:539:9: note: 'abort_compress' declared here 539 | void abort_compress ARGS((void)); | ^~~~~~~~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ compress.c:598:33: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 598 | signal(SIGTERM, (SIG_TYPE)abort_compress); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ compress.c:539:9: note: 'abort_compress' declared here 539 | void abort_compress ARGS((void)); | ^~~~~~~~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ compress.c:601:32: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 601 | signal(SIGHUP, (SIG_TYPE)abort_compress); | ^~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ compress.c:539:9: note: 'abort_compress' declared here 539 | void abort_compress ARGS((void)); | ^~~~~~~~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ compress.c: In function 'comprexx': compress.c:798:1: warning: old-style function definition [-Wold-style-definition] 798 | comprexx(fileptr) | ^~~~~~~~ compress.c: In function 'compdir': compress.c:1148:1: warning: old-style function definition [-Wold-style-definition] 1148 | compdir(dir) | ^~~~~~~ compress.c: In function 'compress': compress.c:1225:1: warning: old-style function definition [-Wold-style-definition] 1225 | compress(fdin, fdout) | ^~~~~~~~ compress.c: In function 'decompress': compress.c:1464:1: warning: old-style function definition [-Wold-style-definition] 1464 | decompress(fdin, fdout) | ^~~~~~~~~~ compress.c: In function 'prratio': compress.c:1716:1: warning: old-style function definition [-Wold-style-definition] 1716 | prratio(stream, num, den) | ^~~~~~~ make[1]: *** [Makefile:44: compress] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/ncompress-5.0-build/ncompress-5.0' make: *** [GNUmakefile:9: compress] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.urh8DT (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.urh8DT (%build) I: [iurt_root_command] ERROR: chroot