+ echo 'Patch #2 (libx86-libc-test.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile Hunk #1 succeeded at 6 (offset 1 line). patching file thunk.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.DTk3rO + umask 022 + cd /builddir/build/BUILD + cd libx86-1.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + make BACKEND=x86emu LIBDIR=/usr/lib64 -j4 make LIBRARY=static static make[1]: Entering directory '/builddir/build/BUILD/libx86-1.1' cc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DX86EMU -DX86EMU -c -o x86-common.o x86-common.c cc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DX86EMU -DX86EMU -c -o thunk.o thunk.c cc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DX86EMU -DX86EMU -c -o x86emu/decode.o x86emu/decode.c cc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DX86EMU -DX86EMU -c -o x86emu/debug.o x86emu/debug.c thunk.c:14:10: fatal error: sys/io.h: No such file or directory 14 | #include | ^~~~~~~~~~ compilation terminated. make[1]: *** [: thunk.o] Error 1 make[1]: *** Waiting for unfinished jobs.... x86-common.c: In function 'get_int_seg': x86-common.c:198:10: 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:10: 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:9: warning: 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]: Leaving directory '/builddir/build/BUILD/libx86-1.1' make: *** [Makefile:19: default] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.DTk3rO (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.DTk3rO (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/libx86.spec