D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/procmail-3.24-1.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.6eX77k + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf procmail-3.24 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/procmail-3.24.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd procmail-3.24 + rm -rf /home/pterjan/rpmbuild/BUILD/procmail-3.24-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/procmail-3.24-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/procmail-3.22-lockf.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/procmail-3.22-benchmark.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/procmail-3.22-defsendmail.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.JaVSjc + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd procmail-3.24 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + echo -n -e '\n' + /usr/bin/make -O -j16 V=1 VERBOSE=1 'CFLAGS0=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' 'LDFLAGS0= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' /bin/sh ./initmake /bin/sh "/bin/sh" "/bin/rm -f" "mv -f" "ln" \ "-lm -ldir -lx -lsocket -lnet -linet -lnsl_s -lnsl_i -lnsl -lsun -lgen -lsockdns -ldl" \ "/lib /usr/lib /usr/local/lib" \ /dev/null "/usr/bin/make" o \ "cc" "-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full " "-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags " "procmail lockfile formail mailstat" \ "procmail formail lockfile mailstat" \ "procmailrc procmailsc procmailex" "src man" \ "/usr/bin" \ "strip" Whoeaaa! There's something fishy going on here. You have a look and see if you detect anything uncanny: ******************************************************* cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full _autotst.c -o _autotst -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags _autotst.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main() | ^~~~ :::: cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full _autotst.c -o _autotst -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags _autotst.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main() | ^~~~ :::: gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full _autotst.c -o _autotst -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags _autotst.c:1:1: error: return type defaults to 'int' [-Wimplicit-int] 1 | main() | ^~~~ :::: ******************************************************* I suggest you take a look at the definition of CFLAGS* and CC in the Makefile before you try make again. make: *** [Makefile:128: init] Error 1 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.JaVSjc (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.JaVSjc (%build) I: [iurt_root_command] ERROR: chroot