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/wmlaptop-1.4-12.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.K2ayll sh: line 4: [: -j8: integer expression expected Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.vh6ui6 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build + rm -rf wmlaptop-1.4 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/wmlaptop-1.4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd wmlaptop-1.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/wmlaptop-1.4-sysfs.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.kelsbT + umask 022 + cd /home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-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 wmlaptop-1.4 + '[' 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' 'LIBDIR=-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' cd src && make make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' gcc -c draw.c -o draw.o -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 In file included from draw.h:20, from draw.c:17: main.h:51:23: error: 'bool' cannot be defined via 'typedef' 51 | typedef unsigned char bool; | ^~~~ main.h:51:23: note: 'bool' is a keyword with '-std=c23' onwards main.h:51:1: warning: useless type name in empty declaration 51 | typedef unsigned char bool; | ^~~~~~~ make[1]: *** [Makefile:5: draw.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' gcc -c init.c -o init.o -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 In file included from init.h:20, from init.c:17: main.h:51:23: error: 'bool' cannot be defined via 'typedef' 51 | typedef unsigned char bool; | ^~~~ main.h:51:23: note: 'bool' is a keyword with '-std=c23' onwards main.h:51:1: warning: useless type name in empty declaration 51 | typedef unsigned char bool; | ^~~~~~~ init.c: In function 'init_cpuState': init.c:385:17: warning: case label value exceeds maximum value for type [-Wswitch-outside-range] 385 | case STARTINGFREQ_MIN: | ^~~~ init.c:383:9: warning: switch condition has boolean value [-Wswitch-bool] 383 | switch( args_startingFreq ) | ^~~~~~ init.c: In function 'scalingGovernorHelper': init.c:213:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 213 | fgets( littleBuffer, 127, sysfp ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.c:226:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 226 | fgets( littleBuffer, 127, sysavfp ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ init.c: In function 'init_cpuState': init.c:302:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 302 | fgets ( red, 10, fp ); | ^~~~~~~~~~~~~~~~~~~~~ init.c:313:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 313 | fgets ( red, 10, fp ); | ^~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:5: init.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' gcc -c event.c -o event.o -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 In file included from event.h:20, from event.c:17: main.h:51:23: error: 'bool' cannot be defined via 'typedef' 51 | typedef unsigned char bool; | ^~~~ main.h:51:23: note: 'bool' is a keyword with '-std=c23' onwards main.h:51:1: warning: useless type name in empty declaration 51 | typedef unsigned char bool; | ^~~~~~~ make[1]: *** [Makefile:5: event.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' gcc -c pixmap.c -o pixmap.o -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 In file included from pixmap.h:20, from pixmap.c:17: main.h:51:23: error: 'bool' cannot be defined via 'typedef' 51 | typedef unsigned char bool; | ^~~~ main.h:51:23: note: 'bool' is a keyword with '-std=c23' onwards main.h:51:1: warning: useless type name in empty declaration 51 | typedef unsigned char bool; | ^~~~~~~ make[1]: *** [Makefile:5: pixmap.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' gcc -c autoscript.c -o autoscript.o -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 In file included from autoscript.h:20, from autoscript.c:17: main.h:51:23: error: 'bool' cannot be defined via 'typedef' 51 | typedef unsigned char bool; | ^~~~ main.h:51:23: note: 'bool' is a keyword with '-std=c23' onwards main.h:51:1: warning: useless type name in empty declaration 51 | typedef unsigned char bool; | ^~~~~~~ autoscript.c: In function 'checkAutoShutdown': autoscript.c:35:17: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 35 | system( cmd ); | ^~~~~~~~~~~~~ make[1]: *** [Makefile:5: autoscript.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' gcc -c battery.c -o battery.o -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 In file included from battery.h:20, from battery.c:17: main.h:51:23: error: 'bool' cannot be defined via 'typedef' 51 | typedef unsigned char bool; | ^~~~ main.h:51:23: note: 'bool' is a keyword with '-std=c23' onwards main.h:51:1: warning: useless type name in empty declaration 51 | typedef unsigned char bool; | ^~~~~~~ battery.c: In function 'ACPI_maxCapacity': battery.c:186:9: warning: ignoring return value of 'fread_unlocked' declared with attribute 'warn_unused_result' [-Wunused-result] 186 | fread_unlocked (buf, 512, 1, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battery.c: In function 'ACPI_Filler': battery.c:290:9: warning: ignoring return value of 'fread_unlocked' declared with attribute 'warn_unused_result' [-Wunused-result] 290 | fread_unlocked (buf, 512, 1, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battery.c: In function 'ACPI_Update': battery.c:384:9: warning: ignoring return value of 'fread_unlocked' declared with attribute 'warn_unused_result' [-Wunused-result] 384 | fread_unlocked (buf, 512, 1, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ battery.c: In function 'APM_Filler': battery.c:511:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 511 | fgets( buf, sizeof(buf) - 1, apmFp ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:5: battery.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' gcc -c cpu.c -o cpu.o -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 In file included from cpu.h:20, from cpu.c:17: main.h:51:23: error: 'bool' cannot be defined via 'typedef' 51 | typedef unsigned char bool; | ^~~~ main.h:51:23: note: 'bool' is a keyword with '-std=c23' onwards main.h:51:1: warning: useless type name in empty declaration 51 | typedef unsigned char bool; | ^~~~~~~ cpu.c: In function 'cpuReadFreq': cpu.c:143:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 143 | fgets ( red, 10, fp ); | ^~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:5: cpu.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' gcc -c main.c -o main.o -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 In file included from main.c:17: main.h:51:23: error: 'bool' cannot be defined via 'typedef' 51 | typedef unsigned char bool; | ^~~~ main.h:51:23: note: 'bool' is a keyword with '-std=c23' onwards main.h:51:1: warning: useless type name in empty declaration 51 | typedef unsigned char bool; | ^~~~~~~ make[1]: *** [Makefile:5: main.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/wmlaptop-1.4-build/wmlaptop-1.4/src' make: *** [Makefile:22: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.kelsbT (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.kelsbT (%build) I: [iurt_root_command] ERROR: chroot