Mock Version: 1.4.14 Mock Version: 1.4.14 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/rwall.spec'], chrootPath='/var/lib/mock/f31-build-66306-29837/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/rwall.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1564099200 Wrote: /builddir/build/SRPMS/rwall-0.17-55.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rwall.spec'], chrootPath='/var/lib/mock/f31-build-66306-29837/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rwall.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1564099200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.yExMIf + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf netkit-rwall-0.17 + /usr/bin/gzip -dc /builddir/build/SOURCES/netkit-rwall-0.17.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd netkit-rwall-0.17 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (netkit-rwalld-0.10-banner.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .banner --fuzz=0 + echo 'Patch #2 (netkit-rwall-0.17-strip.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .strip --fuzz=0 + echo 'Patch #3 (netkit-rwall-0.17-netgroup.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .netgroup --fuzz=0 + echo 'Patch #4 (netkit-rwall-0.17-droppriv.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .droppriv --fuzz=0 + /usr/bin/perl -pi -e ' BUILDSTDERR: s|^LDFLAGS=|LDFLAGS="-pie -Wl,-z,relro,-z,now -ltirpc"|; BUILDSTDERR: s,^BINDIR=.*$,BINDIR=/usr/bin,; BUILDSTDERR: s,^MANDIR=.*$,MANDIR=/usr/share/man,; BUILDSTDERR: s,^SBINDIR=.*$,SBINDIR=/usr/sbin,; BUILDSTDERR: ' configure + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Patch #1 (netkit-rwalld-0.10-banner.patch): patching file rpc.rwalld/rwalld.c Hunk #1 succeeded at 63 (offset 4 lines). Patch #2 (netkit-rwall-0.17-strip.patch): patching file rpc.rwalld/Makefile patching file rwall/Makefile Patch #3 (netkit-rwall-0.17-netgroup.patch): patching file rwall/rwall.1 patching file rwall/rwall.c patching file ChangeLog patching file configure Patch #4 (netkit-rwall-0.17-droppriv.patch): patching file rpc.rwalld/rwalld.c Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.c0NLud + umask 022 + cd /builddir/build/BUILD + cd netkit-rwall-0.17 + export 'CFLAGS= -I/usr/include/tirpc' + CFLAGS=' -I/usr/include/tirpc' + CFLAGS=' -I/usr/include/tirpc -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fpic' + sh configure --with-c-compiler=gcc + make 'RPM_OPT_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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' -j4 BUILDSTDERR: /usr/include/unistd.h: In function 'daemon': BUILDSTDERR: daemon.c:60:16: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 60 | if (!nochdir) chdir("/"); BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: rwall.c: In function 'gethostnames': BUILDSTDERR: rwall.c:122:41: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] BUILDSTDERR: 122 | fprintf(stderr, "%s: can't allocate %d bytes for host names\n", BUILDSTDERR: | ~^ BUILDSTDERR: | | BUILDSTDERR: | int BUILDSTDERR: | %ld BUILDSTDERR: 123 | "gethostnames", hsize * sizeof(char)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | long unsigned int BUILDSTDERR: rwall.c: In function 'expandgroup': BUILDSTDERR: rwall.c:169:30: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] BUILDSTDERR: 169 | "%s: can't reallocate %d bytes for host names\n", BUILDSTDERR: | ~^ BUILDSTDERR: | | BUILDSTDERR: | int BUILDSTDERR: | %ld BUILDSTDERR: 170 | "expandgroup", *hsize * sizeof(char)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: | | BUILDSTDERR: | long unsigned int BUILDSTDERR: rwall.c:153:14: warning: variable 'res' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 153 | int vallen, res; BUILDSTDERR: | ^~~ BUILDSTDERR: rwalld.c: In function 'wallprog_1': BUILDSTDERR: In file included from /usr/include/tirpc/rpc/rpc.h:49, BUILDSTDERR: from rwall.c:61: BUILDSTDERR: rwall.c: In function 'callmsg': BUILDSTDERR: rwalld.c:209:31: warning: cast between incompatible function types from 'bool_t (*)(void)' {aka 'int (*)(void)'} to 'bool_t (*)(XDR *, ...)' {aka 'int (*)(struct __rpc_xdr *, ...)'} [-Wcast-function-type] BUILDSTDERR: 209 | (void)svc_sendreply(transp, (xdrproc_t) xdr_void, NULL); BUILDSTDERR: | ^ BUILDSTDERR: rwall.c:209:9: warning: cast between incompatible function types from 'bool_t (*)(void)' {aka 'int (*)(void)'} to 'bool_t (*)(XDR *, ...)' {aka 'int (*)(struct __rpc_xdr *, ...)'} [-Wcast-function-type] BUILDSTDERR: 209 | (xdrproc_t) xdr_void, &res, timeout) != RPC_SUCCESS) BUILDSTDERR: | ^ BUILDSTDERR: /usr/include/tirpc/rpc/clnt.h:167:10: note: in definition of macro 'clnt_call' BUILDSTDERR: 167 | argsp, xres, resp, secs)) BUILDSTDERR: | ^~~~ BUILDSTDERR: rwalld.c:214:16: warning: cast between incompatible function types from 'bool_t (*)(void)' {aka 'int (*)(void)'} to 'bool_t (*)(XDR *, ...)' {aka 'int (*)(struct __rpc_xdr *, ...)'} [-Wcast-function-type] BUILDSTDERR: 214 | xdr_result = (xdrproc_t) xdr_void; BUILDSTDERR: | ^ BUILDSTDERR: rwalld.c: In function 'main': BUILDSTDERR: rwalld.c:148:4: warning: ignoring return value of 'setgid', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 148 | setgid(pwd->pw_gid); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: rwalld.c:149:4: warning: ignoring return value of 'setuid', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 149 | setuid(pwd->pw_uid); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: rwalld.c:151:3: warning: ignoring return value of 'seteuid', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 151 | seteuid(0); /* this should fail */ BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: rwalld.c: In function 'possess': BUILDSTDERR: rwalld.c:166:2: warning: ignoring return value of 'daemon', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 166 | daemon(0, 0); BUILDSTDERR: | ^~~~~~~~~~~~ + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Directories: /usr/bin /usr/sbin /usr/share/man Checking if C compiler works... yes Checking if gcc accepts gcc warnings... yes Checking if gcc accepts -O2... yes Checking for BSD signal semantics... yes Checking for socklen_t... yes Generating MCONFIG... (cd rpc.rwalld && make) (cd rwall && make) make[1]: Entering directory '/builddir/build/BUILD/netkit-rwall-0.17/rpc.rwalld' make[1]: Entering directory '/builddir/build/BUILD/netkit-rwall-0.17/rwall' rpcgen -h -o rwall.h ../include/rpcsvc/rwall.x rpcgen -h -o rwall.h ../include/rpcsvc/rwall.x gcc -I/usr/include/tirpc -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fpic -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline daemon.c -c gcc -I/usr/include/tirpc -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fpic -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline rwall.c -c gcc -I/usr/include/tirpc -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fpic -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline rwalld.c -c gcc -pie -Wl,-z,relro,-z,now -ltirpc rwalld.o daemon.o -lnsl -o rwalld gcc -pie -Wl,-z,relro,-z,now -ltirpc rwall.o -lnsl -o rwall make[1]: Leaving directory '/builddir/build/BUILD/netkit-rwall-0.17/rpc.rwalld' make[1]: Leaving directory '/builddir/build/BUILD/netkit-rwall-0.17/rwall' Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.vH6KCf + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64 + cd netkit-rwall-0.17 + mkdir -p /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64/usr/bin + mkdir -p /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64/usr/sbin + mkdir -p /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64/usr/share/man/man1 /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64/usr/share/man/man8 + mkdir -p /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64/usr/lib/systemd/system/ + make INSTALLROOT=/builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64 install + install -m 755 /builddir/build/SOURCES/rwalld.service /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64/usr/lib/systemd/system/ + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 0.17-55.fc31 --unique-debug-suffix -0.17-55.fc31.riscv64 --unique-debug-src-base rwall-0.17-55.fc31.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/netkit-rwall-0.17 BUILDSTDERR: 34 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs BUILDSTDERR: *** WARNING: ./usr/lib/systemd/system/rwalld.service is executable but has empty or no shebang, removing executable bit (cd rpc.rwalld && make install) make[1]: Entering directory '/builddir/build/BUILD/netkit-rwall-0.17/rpc.rwalld' install -m755 rwalld /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64/usr/sbin/rpc.rwalld install -m644 rpc.rwalld.8 /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64/usr/share/man/man8 ln -sf rpc.rwalld.8 /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64/usr/share/man/man8/rwalld.8 make[1]: Leaving directory '/builddir/build/BUILD/netkit-rwall-0.17/rpc.rwalld' (cd rwall && make install) make[1]: Entering directory '/builddir/build/BUILD/netkit-rwall-0.17/rwall' install -m755 rwall /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64/usr/bin install -m644 rwall.1 /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64/usr/share/man/man1/ make[1]: Leaving directory '/builddir/build/BUILD/netkit-rwall-0.17/rwall' explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64/usr/bin/rwall explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64/usr/sbin/rpc.rwalld extracting debug info from /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64/usr/bin/rwall extracting debug info from /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64/usr/sbin/rpc.rwalld original debug info size: 104kB, size after compression: 104kB /usr/lib/rpm/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. Processing files: rwall-0.17-55.fc31.riscv64 Provides: rwall = 0.17-55.fc31 rwall(riscv-64) = 0.17-55.fc31 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) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libnsl.so.2()(64bit) libnsl.so.2(LIBNSL_1.0)(64bit) libtirpc.so.3()(64bit) libtirpc.so.3(TIRPC_0.3.0)(64bit) rtld(GNU_HASH) Processing files: rwall-server-0.17-55.fc31.riscv64 Provides: rwall-server = 0.17-55.fc31 rwall-server(riscv-64) = 0.17-55.fc31 Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(post): /bin/sh systemd-units Requires(preun): /bin/sh systemd-units Requires(postun): /bin/sh systemd-units Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libnsl.so.2()(64bit) libtirpc.so.3()(64bit) libtirpc.so.3(TIRPC_0.3.0)(64bit) rtld(GNU_HASH) Processing files: rwall-debugsource-0.17-55.fc31.riscv64 Provides: rwall-debugsource = 0.17-55.fc31 rwall-debugsource(riscv-64) = 0.17-55.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rwall-debuginfo-0.17-55.fc31.riscv64 Provides: debuginfo(build-id) = 8439b9a5050ce4713284c49c3abf2175c6b1fe65 rwall-debuginfo = 0.17-55.fc31 rwall-debuginfo(riscv-64) = 0.17-55.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rwall-debugsource(riscv-64) = 0.17-55.fc31 Processing files: rwall-server-debuginfo-0.17-55.fc31.riscv64 Provides: debuginfo(build-id) = 1533cf4ddb2ca5090f023147456113187a0a53a4 rwall-server-debuginfo = 0.17-55.fc31 rwall-server-debuginfo(riscv-64) = 0.17-55.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rwall-debugsource(riscv-64) = 0.17-55.fc31 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64 Wrote: /builddir/build/RPMS/rwall-0.17-55.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/rwall-server-0.17-55.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/rwall-debugsource-0.17-55.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/rwall-debuginfo-0.17-55.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/rwall-server-debuginfo-0.17-55.fc31.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.yn6Yge + umask 022 + cd /builddir/build/BUILD + cd netkit-rwall-0.17 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rwall-0.17-55.fc31.riscv64 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Child return code was: 0