D: [iurt_root_command] chroot sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/checkinstall-1.6.2.16-19.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.PV3CtA + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf checkinstall-1.6.2 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/checkinstall-1.6.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd checkinstall-1.6.2 + rm -rf /home/pterjan/rpmbuild/BUILD/checkinstall-1.6.2-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/checkinstall-1.6.2-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/checkinstall-mdv-fix-paths.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/checkinstall-1.6.1-mdv-rpm-version-check.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/installwatch-glibc_minor.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/checkinstall-mdv-rpm-set-buildroot.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/checkinstall-1.6.2-mga-test-open.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/checkinstall-1.6.1-deb-mdv-build-with-new-glibc.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/checkinstall-1.6.2-cflags.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/checkinstall-1.6.2-deb-0013-fix-installcheck-tests.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/checkinstall-1.6.2-deb-0014-fix-xstat64.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/checkinstall-1.6.2-deb-0015-add-renameat2.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/checkinstall-1.6.2-deb-0016-Define-_STAT_VER-_MKNOD_VER-locally-dropped-in-glibc.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.u8dcEO + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd checkinstall-1.6.2 + '[' 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' LD=gcc '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 -nostdlib' for file in locale/checkinstall-*.po ; do \ case ${file} in \ locale/checkinstall-template.po) ;; \ *) \ out=`echo $file | sed -s 's/po/mo/'` ; \ msgfmt -o ${out} ${file} ; \ if [ $? != 0 ] ; then \ exit 1 ; \ fi ; \ ;; \ esac ; \ done /usr/bin/make -C installwatch make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/checkinstall-1.6.2/installwatch' ./create-localdecls Checking truncate argument type... off_t Checking readlinkat result type... ssize_t Checking libc version... libc.so.6 Checking glibc subversion... make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/checkinstall-1.6.2/installwatch' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/checkinstall-1.6.2/installwatch' cc -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 -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DVERSION=\"0.7.0beta7\" -c installwatch.c installwatch.c: In function 'scandir': installwatch.c:3118:57: error: passing argument 4 of 'true_scandir' from incompatible pointer type [-Wincompatible-pointer-types] 3118 | result=true_scandir(dir,namelist,select,compar); | ^~~~~~ | | | int (*)(const struct dirent **, const struct dirent **) installwatch.c:3118:57: note: expected 'int (*)(const void *, const void *)' but argument is of type 'int (*)(const struct dirent **, const struct dirent **)' installwatch.c:3122:49: error: passing argument 4 of 'true_scandir' from incompatible pointer type [-Wincompatible-pointer-types] 3122 | result=true_scandir(dir,namelist,select,compar); | ^~~~~~ | | | int (*)(const struct dirent **, const struct dirent **) installwatch.c:3122:49: note: expected 'int (*)(const void *, const void *)' but argument is of type 'int (*)(const struct dirent **, const struct dirent **)' installwatch.c: In function 'scandir64': installwatch.c:3730:59: error: passing argument 4 of 'true_scandir64' from incompatible pointer type [-Wincompatible-pointer-types] 3730 | result=true_scandir64(dir,namelist,select,compar); | ^~~~~~ | | | int (*)(const struct dirent64 **, const struct dirent64 **) installwatch.c:3730:59: note: expected 'int (*)(const void *, const void *)' but argument is of type 'int (*)(const struct dirent64 **, const struct dirent64 **)' installwatch.c:3734:51: error: passing argument 4 of 'true_scandir64' from incompatible pointer type [-Wincompatible-pointer-types] 3734 | result=true_scandir64(dir,namelist,select,compar); | ^~~~~~ | | | int (*)(const struct dirent64 **, const struct dirent64 **) installwatch.c:3734:51: note: expected 'int (*)(const void *, const void *)' but argument is of type 'int (*)(const struct dirent64 **, const struct dirent64 **)' installwatch.c: In function 'instw_init': installwatch.c:1233:17: warning: ignoring return value of 'realpath' declared with attribute 'warn_unused_result' [-Wunused-result] 1233 | realpath(proot,wrkpath); | ^~~~~~~~~~~~~~~~~~~~~~~ installwatch.c:1352:17: warning: ignoring return value of 'realpath' declared with attribute 'warn_unused_result' [-Wunused-result] 1352 | realpath(__instw.root,wrkpath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ installwatch.c:1370:25: warning: ignoring return value of 'realpath' declared with attribute 'warn_unused_result' [-Wunused-result] 1370 | realpath(pexclude,wrkpath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ installwatch.c: In function 'copy_path': installwatch.c:779:33: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 779 | write(translfd,buffer,bytes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:27: installwatch.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/checkinstall-1.6.2/installwatch' make: *** [Makefile:11: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.u8dcEO (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.u8dcEO (%build) I: [iurt_root_command] ERROR: chroot