D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/cpulimit-1.2-0.git20120716.11.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.rjVMAX Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.uPfLnN + umask 022 + cd /home/pterjan/rpmbuild/BUILD/cpulimit-1.2-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/cpulimit-1.2-build + rm -rf cpulimit-git20120716 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/cpulimit-git20120716.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd cpulimit-git20120716 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (0000-fix-includes.patch):' Patch #0 (0000-fix-includes.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/cpulimit.c Hunk #2 succeeded at 41 (offset -3 lines). patching file src/process_group.c patching file tests/process_iterator_test.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ESnadd + umask 022 + cd /home/pterjan/rpmbuild/BUILD/cpulimit-1.2-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 cpulimit-git20120716 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j16 V=1 VERBOSE=1 cd src && /usr/bin/make all make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/cpulimit-1.2-build/cpulimit-git20120716/src' gcc -c list.c -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 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cpulimit-1.2-build/cpulimit-git20120716/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/cpulimit-1.2-build/cpulimit-git20120716/src' gcc -c process_iterator.c -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 process_iterator.c:35: process_iterator_linux.c: In function 'getppid_of': process_iterator_linux.c:114:36: warning: '/stat' directive writing 5 bytes into a region of size between 4 and 13 [-Wformat-overflow=] 114 | sprintf(statfile, "/proc/%d/stat", pid); | ^~~~~ In file included from /usr/include/stdio.h:970, from process_iterator.c:22: In function 'sprintf', inlined from 'getppid_of' at process_iterator_linux.c:114:2: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 13 and 22 bytes into a destination of size 20 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cpulimit-1.2-build/cpulimit-git20120716/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/cpulimit-1.2-build/cpulimit-git20120716/src' gcc -c process_group.c -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 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cpulimit-1.2-build/cpulimit-git20120716/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/cpulimit-1.2-build/cpulimit-git20120716/src' gcc -o cpulimit cpulimit.c list.o process_iterator.o process_group.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 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cpulimit-1.2-build/cpulimit-git20120716/src' cd tests && /usr/bin/make all make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/cpulimit-1.2-build/cpulimit-git20120716/tests' gcc -o busy busy.c -lpthread -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 busy.c: In function 'main': busy.c:20:58: error: passing argument 3 of 'pthread_create' from incompatible pointer type [-Wincompatible-pointer-types] 20 | if ((ret = pthread_create(&thread, NULL, loop, NULL)) != 0) | ^~~~ | | | void * (*)(void) In file included from busy.c:3: /usr/include/pthread.h:204:36: note: expected 'void * (*)(void *)' but argument is of type 'void * (*)(void)' 204 | void *(*__start_routine) (void *), | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ busy.c:6:7: note: 'loop' declared here 6 | void *loop() | ^~~~ make[1]: *** [Makefile:16: busy] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cpulimit-1.2-build/cpulimit-git20120716/tests' make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/cpulimit-1.2-build/cpulimit-git20120716/tests' gcc -I../src -o process_iterator_test process_iterator_test.c ../src/list.o ../src/process_iterator.o ../src/process_group.o -lpthread -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 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cpulimit-1.2-build/cpulimit-git20120716/tests' make: *** [Makefile:5: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.ESnadd (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.ESnadd (%build) I: [iurt_root_command] ERROR: chroot