D: [iurt_root_command] chroot sh: line 4: [: -j8: integer expression expected sh: line 4: [: -j8: integer expression expected Installing /home/pterjan/rpmbuild/SRPMS/lslk-1.29-22.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.9KNoeX + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf lslk + /usr/bin/mkdir -p lslk + cd lslk + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/lslk_1.29_W.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + rm -rf /home/pterjan/rpmbuild/BUILD/lslk-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/lslk-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + tar xf lslk_1.29.tar + '[' -d lslk_1.29 ']' + cd lslk_1.29 + 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.aACfJr + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd lslk + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' -d lslk_1.29 ']' + cd lslk_1.29 + ./Configure -n linux rm -f dmnt.c dlock.c dlock1.c dstore.c dlslk.h dproto.h kernelbase.h machine.h machine.h.old new_machine.h Makefile ln -s dialects/linux/proc/dlock.c dlock.c ln -s dialects/linux/proc/dmnt.c dmnt.c ln -s dialects/linux/proc/dlslk.h dlslk.h ln -s dialects/linux/proc/dproto.h dproto.h ln -s dialects/linux/proc/machine.h machine.h Makefile created. + /usr/bin/make -O -j48 V=1 VERBOSE=1 'DEBUG=-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 -fPIC' CFGF=-DLINUXV=228 Constructing version.h 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 -fPIC -DLINUXV=228 -c -o store.o store.c 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 -fPIC -DLINUXV=228 -c -o main.o main.c main.c:48:1: error: return type defaults to 'int' [-Wimplicit-int] 48 | main(argc, argv) | ^~~~ make: *** [: main.o] Error 1 make: *** Waiting for unfinished jobs.... 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 -fPIC -DLINUXV=228 -c -o safe.o safe.c safe.c: In function 'childx': safe.c:86:24: error: implicit declaration of function 'wait' [-Wimplicit-function-declaration] 86 | (void) wait(NULL); | ^~~~ make: *** [: safe.o] Error 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 -fPIC -DLINUXV=228 -c -o dlock.o dlock.c 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 -fPIC -DLINUXV=228 -c -o arg.o arg.c 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 -fPIC -DLINUXV=228 -c -o dmnt.o dmnt.c dmnt.c: In function 'get_fields': dmnt.c:99:46: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 99 | "%s: can't allocate %d bytes for field pointers.\n", | ~^ | | | int | %ld 100 | Pn, len); | ~~~ | | | size_t {aka long unsigned int} dmnt.c: In function 'readmnt': dmnt.c:155:42: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 155 | "%s: can't allocate %d bytes for directory: %s\n", | ~^ | | | int | %ld 156 | Pn, len, fp[1]); | ~~~ | | | size_t {aka long unsigned int} dmnt.c:216:42: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 216 | "%s: can't allocate %d bytes for file system: %s\n", | ~^ | | | int | %ld 217 | Pn, len, fp[0]); | ~~~ | | | size_t {aka long unsigned int} 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 -fPIC -DLINUXV=228 -c -o misc.o misc.c misc.c: In function 'print_lock_info': misc.c:413:45: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int' [-Wformat=] 413 | (void) printf("%-*.*s %*d %*s %*ld ", | ~~^ | | | int | %*ld 414 | srcl, srcl, src, 415 | pidl, lp->pid, | ~~~~~~~ | | | long unsigned int error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.aACfJr (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.aACfJr (%build) I: [iurt_root_command] ERROR: chroot