+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/pmars.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.C0HGrg + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pmars-0.9.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/pmars-0.9.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pmars-0.9.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (pmars-0.9.2-nostrip.patch):' Patch #0 (pmars-0.9.2-nostrip.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .nostrip --fuzz=0 patching file src/Makefile + echo 'Patch #1 (pmars-0.9.2-CCat.patch):' Patch #1 (pmars-0.9.2-CCat.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .CCat --fuzz=0 patching file src/Makefile + echo 'Patch #2 (pmars-sfprintf-format.patch):' Patch #2 (pmars-sfprintf-format.patch): + /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .printf --fuzz=0 patching file src/asm.c patching file src/cdb.c patching file src/xwindisp.c patching file src/clparse.c + mkdir doc_install + cp -a doc doc_install + rm doc_install/doc/pmars.6 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.H17Sdt + umask 022 + cd /builddir/build/BUILD + cd pmars-0.9.2 + make -C src '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 -DEXT94 -DXWINGRAPHX -DPERMUTATE' make: Entering directory '/builddir/build/BUILD/pmars-0.9.2/src' Making pmars with compiler flags -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 -DEXT94 -DXWINGRAPHX -DPERMUTATE Compiling pmars.o gcc -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 -DEXT94 -DXWINGRAPHX -DPERMUTATE -c pmars.c Compiling asm.o gcc -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 -DEXT94 -DXWINGRAPHX -DPERMUTATE -c asm.c asm.c: In function 'addsym': asm.c:306:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] if ((symgrp = (grp_st *) MALLOC(sizeof(grp_st))) != NULL) ^ asm.c: In function 'addline': asm.c:370:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] if ((temp = (line_st *) MALLOC(sizeof(line_st))) != NULL) ^ asm.c: In function 'encode': asm.c:1490:25: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] else if (resultB) ^ asm.c: In function 'parse': asm.c:2011:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] if (opcode < OPNUM) ^ Compiling eval.o gcc -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 -DEXT94 -DXWINGRAPHX -DPERMUTATE -c eval.c Compiling disasm.o gcc -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 -DEXT94 -DXWINGRAPHX -DPERMUTATE -c disasm.c In file included from disasm.c:26:0: sim.h:92:12: warning: built-in function 'round' declared as non-function extern int round; ^~~~~ Compiling cdb.o gcc -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 -DEXT94 -DXWINGRAPHX -DPERMUTATE -c cdb.c In file included from cdb.c:30:0: sim.h:92:12: warning: built-in function 'round' declared as non-function extern int round; ^~~~~ cdb.c: In function 'cdb': cdb.c:523:11: warning: the address of 'argStr' will always evaluate as 'true' [-Waddress] if (argStr) { ^~~~~~ cdb.c: In function 'subst_eval': cdb.c:1550:23: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] sprintf(outs, "%d", (targetID == QUEUE || targetID == PSP ? ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %ld 0 : (targetID == WARRIOR ? ~~~~~~~~~~~~~~~~~~~~~~~~~~ W - warrior : progCnt))); ~~~~~~~~~~~~~~~~~~~~~~~ cdb.c:1558:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] sprintf(outs, "%d", (targetID == QUEUE || targetID == PSP ? ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %ld 0 : (targetID == WARRIOR ? ~~~~~~~~~~~~~~~~~~~~~~~~~~ W - warrior : progCnt))); ~~~~~~~~~~~~~~~~~~~~~~~ cdb.c:1563:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] sprintf(outs, "%d", (cycle + (warriorsLeft ? warriorsLeft : 1) - 1) / ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %ld (warriorsLeft ? warriorsLeft : 1)); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cdb.c:1507:29: warning: unused variable 'tmp' [-Wunused-variable] int bi1 = 0, bi2 = 1, tmp, i; ^~~ cdb.c: In function 'cdb': cdb.c:364:20: warning: 'returnValue' may be used uninitialized in this function [-Wmaybe-uninitialized] int argType, returnValue; ^~~~~~~~~~~ Compiling sim.o gcc -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 -DEXT94 -DXWINGRAPHX -DPERMUTATE -c sim.c In file included from sim.c:29:0: sim.h:92:12: warning: built-in function 'round' declared as non-function extern int round; ^~~~~ In file included from sim.c:92:0: xwindisp.c: In function 'conv_key': xwindisp.c:713:39: warning: pointer targets in passing argument 2 of 'XLookupString' differ in signedness [-Wpointer-sign] count = XLookupString(&event->xkey, buffer, 20, &keysym, &compose); ^~~~~~ In file included from xwindisp.c:40:0, from sim.c:92: /usr/include/X11/Xutil.h:534:12: note: expected 'char *' but argument is of type 'unsigned char *' extern int XLookupString( ^~~~~~~~~~~~~ In file included from sim.c:92:0: xwindisp.c: In function 'xWin_display_cycle': xwindisp.c:1284:9: warning: implicit declaration of function 'sighandler'; did you mean 'sa_handler'? [-Wimplicit-function-declaration] sighandler(0); /* ??? debugState = STEP; *//* stepping = ^~~~~~~~~~ sa_handler xwindisp.c: In function 'init_xwin': xwindisp.c:1642:29: warning: pointer targets in passing argument 3 of 'XCreateBitmapFromData' differ in signedness [-Wpointer-sign] pmarsicn_bits, pmarsicn_width, pmarsicn_height); ^~~~~~~~~~~~~ In file included from xwindisp.c:39:0, from sim.c:92: /usr/include/X11/Xlib.h:1604:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern Pixmap XCreateBitmapFromData( ^~~~~~~~~~~~~~~~~~~~~ Compiling pos.o gcc -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 -DEXT94 -DXWINGRAPHX -DPERMUTATE -c pos.c In file included from pos.c:24:0: sim.h:92:12: warning: built-in function 'round' declared as non-function extern int round; ^~~~~ Compiling clparse.o gcc -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 -DEXT94 -DXWINGRAPHX -DPERMUTATE -c clparse.c clparse.c: In function 'next_input': clparse.c:227:5: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(filep, "%s", inputs); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ clparse.c:234:9: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(filep, "%[^\"]%*[\"]", inputs + i); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ clparse.c:237:7: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(inputs, 100, filep); ^~~~~~~~~~~~~~~~~~~~~~~~~ clparse.c:239:7: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(filep, "%s", inputs); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Compiling global.o gcc -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 -DEXT94 -DXWINGRAPHX -DPERMUTATE -c global.c Compiling token.o gcc -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 -DEXT94 -DXWINGRAPHX -DPERMUTATE -c token.c Compiling str_eng.o gcc -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 -DEXT94 -DXWINGRAPHX -DPERMUTATE -c str_eng.c Linking pmars gcc -o pmars pmars.o asm.o eval.o disasm.o cdb.o sim.o pos.o clparse.o global.o token.o str_eng.o -L/usr/X11R6/lib -lX11 done make: Leaving directory '/builddir/build/BUILD/pmars-0.9.2/src' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.XjRN7p + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64 + cd pmars-0.9.2 + rm -rf /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64 + install -D -p -m 755 src/pmars /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64/usr/bin/pmars + install -D -p -m 644 doc/pmars.6 /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64/usr/share/man/man6/pmars.6 + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: pmars-0.9.2-17.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.Txz9EF + umask 022 + cd /builddir/build/BUILD + cd pmars-0.9.2 + DOCDIR=/builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64/usr/share/doc/pmars + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64/usr/share/doc/pmars + cp -pr AUTHORS /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64/usr/share/doc/pmars + cp -pr ChangeLog /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64/usr/share/doc/pmars + cp -pr CONTRIB /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64/usr/share/doc/pmars + cp -pr COPYING /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64/usr/share/doc/pmars + cp -pr README /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64/usr/share/doc/pmars + cp -pr config/ /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64/usr/share/doc/pmars + cp -pr doc_install/doc/ /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64/usr/share/doc/pmars + cp -pr warriors/ /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64/usr/share/doc/pmars + exit 0 Provides: pmars = 0.9.2-17.fc28 pmars(riscv-64) = 0.9.2-17.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libX11.so.6()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64 Wrote: /builddir/build/SRPMS/pmars-0.9.2-17.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/pmars-0.9.2-17.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.vqwyl8 + umask 022 + cd /builddir/build/BUILD + cd pmars-0.9.2 + rm -rf /builddir/build/BUILDROOT/pmars-0.9.2-17.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff