+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/libx86.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.knFraA + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libx86-1.1 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/libx86-1.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd libx86-1.1 + /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 -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 -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 -p1 --fuzz=0 patching file Makefile Hunk #1 succeeded at 6 (offset 1 line). patching file thunk.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.uTDn8P + umask 022 + cd /builddir/build/BUILD + cd libx86-1.1 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + make BACKEND=x86emu LIBDIR=/usr/lib64 -j4 make LIBRARY=static static make[1]: Entering directory '/builddir/build/BUILD/libx86-1.1' cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DX86EMU -DX86EMU -c -o x86-common.o x86-common.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DX86EMU -DX86EMU -c -o thunk.o thunk.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DX86EMU -DX86EMU -c -o x86emu/decode.o x86emu/decode.c cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DX86EMU -DX86EMU -c -o x86emu/debug.o x86emu/debug.c thunk.c:14:10: fatal error: sys/io.h: No such file or directory #include ^~~~~~~~~~ compilation terminated. 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] 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] return *(unsigned short *)(i * 4); ^ x86-common.c: In function 'LRMI_common_init': x86-common.c:216:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion] offset = mem_info.offset - REAL_MEM_BASE; ^ make[1]: *** [: thunk.o] Error 1 make[1]: *** Waiting for unfinished jobs.... 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.uTDn8P (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.uTDn8P (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff