D: [iurt_root_command] chroot warning: %patchN is deprecated (6 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/libx86-1.1-40.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.BS9Ds9 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf libx86-1.1 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/libx86-1.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libx86-1.1 + rm -rf /home/pterjan/rpmbuild/BUILD/libx86-1.1-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/libx86-1.1-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (libx86-add-pkgconfig.patch):' Patch #0 (libx86-add-pkgconfig.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Makefile patching file x86.pc.in + echo 'Patch #1 (libx86-mmap-offset.patch):' Patch #1 (libx86-mmap-offset.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file lrmi.c patching file thunk.c patching file x86-common.c patching file x86-common.h + echo 'Patch #2 (libx86-libc-test.patch):' Patch #2 (libx86-libc-test.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Makefile Hunk #1 succeeded at 6 (offset 1 line). patching file thunk.c + echo 'Patch #5 (libx86-1.1-24-fix-invalid-hlt-opcode.patch):' Patch #5 (libx86-1.1-24-fix-invalid-hlt-opcode.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .hlt --fuzz=0 patching file thunk.c + echo 'Patch #6 (libx86-1.1-staticsharedcflags.patch):' Patch #6 (libx86-1.1-staticsharedcflags.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .pic --fuzz=0 patching file Makefile + echo 'Patch #7 (libx86-0.99-ifmask.patch):' Patch #7 (libx86-0.99-ifmask.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .ifmask --fuzz=0 patching file lrmi.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.MOEoev + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd libx86-1.1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j8 V=1 VERBOSE=1 BACKEND=x86emu 'CFLAGS=-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 -fPIC -DX86EMU' /usr/bin/make LIBRARY=static static make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' 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 -fPIC -DX86EMU -c -o x86-common.o x86-common.c x86-common.c: In function 'get_int_seg': x86-common.c:198:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 198 | return *(unsigned short *)(i * 4 + 2); | ^ x86-common.c: In function 'get_int_off': x86-common.c:205:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 205 | return *(unsigned short *)(i * 4); | ^ x86-common.c: In function 'LRMI_common_init': x86-common.c:216:16: error: assignment to 'void *' from 'long int' makes pointer from integer without a cast [-Wint-conversion] 216 | offset = mem_info.offset - REAL_MEM_BASE; | ^ make[1]: *** [: x86-common.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' 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 -fPIC -DX86EMU -c -o thunk.o thunk.c thunk.c: In function 'LRMI_init': thunk.c:160:17: error: initialization of 'x86emuu32 (*)(X86EMU_pioAddr)' {aka 'unsigned int (*)(short unsigned int)'} from incompatible pointer type 'long unsigned int (*)(short unsigned int)' [-Wincompatible-pointer-types] 160 | (&x_inl), | ^ thunk.c:160:17: note: (near initialization for 'pioFuncs.inl') thunk.c:163:17: error: initialization of 'void (*)(X86EMU_pioAddr, x86emuu32)' {aka 'void (*)(short unsigned int, unsigned int)'} from incompatible pointer type 'void (*)(short unsigned int, long unsigned int)' [-Wincompatible-pointer-types] 163 | (&x_outl) | ^ thunk.c:163:17: note: (near initialization for 'pioFuncs.outl') thunk.c:178:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 178 | X86_SS = (unsigned int) stack >> 4; | ^ thunk.c: In function 'real_call': thunk.c:210:26: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 210 | X86_SS = (unsigned int) stack >> 4; | ^ make[1]: *** [: thunk.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' 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 -fPIC -DX86EMU -c -o x86emu/fpu.o x86emu/fpu.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' 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 -fPIC -DX86EMU -c -o x86emu/debug.o x86emu/debug.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' 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 -fPIC -DX86EMU -c -o x86emu/decode.o x86emu/decode.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' 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 -fPIC -DX86EMU -c -o x86emu/ops2.o x86emu/ops2.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' 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 -fPIC -DX86EMU -c -o x86emu/prim_ops.o x86emu/prim_ops.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' 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 -fPIC -DX86EMU -c -o x86emu/ops.o x86emu/ops.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/libx86-1.1' make: *** [Makefile:15: default] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.MOEoev (%build) RPM build warnings: %patchN is deprecated (6 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.MOEoev (%build) I: [iurt_root_command] ERROR: chroot