Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/rwall.spec'], chrootPath='/var/lib/mock/f29-build-24763-12886/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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/rwall-0.17-53.fc29.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/f29-build-24763-12886/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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.gf1bgx + 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):' Patch #1 (netkit-rwalld-0.10-banner.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .banner --fuzz=0 patching file rpc.rwalld/rwalld.c Hunk #1 succeeded at 63 (offset 4 lines). Patch #2 (netkit-rwall-0.17-strip.patch): + echo 'Patch #2 (netkit-rwall-0.17-strip.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .strip --fuzz=0 patching file rpc.rwalld/Makefile patching file rwall/Makefile + echo 'Patch #3 (netkit-rwall-0.17-netgroup.patch):' Patch #3 (netkit-rwall-0.17-netgroup.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .netgroup --fuzz=0 patching file rwall/rwall.1 patching file rwall/rwall.c patching file ChangeLog patching file configure + echo 'Patch #4 (netkit-rwall-0.17-droppriv.patch):' Patch #4 (netkit-rwall-0.17-droppriv.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .droppriv --fuzz=0 patching file rpc.rwalld/rwalld.c + /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 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Q9sB7W + 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 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... + 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 (cd rpc.rwalld && make) (cd rwall && make) make[1]: Entering directory '/builddir/build/BUILD/netkit-rwall-0.17/rwall' make[1]: Entering directory '/builddir/build/BUILD/netkit-rwall-0.17/rpc.rwalld' 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 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: if (!nochdir) chdir("/"); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: rwalld.c: In function 'wallprog_1': 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: (void)svc_sendreply(transp, (xdrproc_t) xdr_void, NULL); 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: 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: 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: 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: 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: daemon(0, 0); 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: fprintf(stderr, "%s: can't allocate %d bytes for host names\n", BUILDSTDERR: ~^ BUILDSTDERR: %ld BUILDSTDERR: "gethostnames", hsize * sizeof(char)); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ 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: "%s: can't reallocate %d bytes for host names\n", BUILDSTDERR: ~^ BUILDSTDERR: %ld BUILDSTDERR: "expandgroup", *hsize * sizeof(char)); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: rwall.c:153:14: warning: variable 'res' set but not used [-Wunused-but-set-variable] BUILDSTDERR: int vallen, res; BUILDSTDERR: ^~~ BUILDSTDERR: In file included from /usr/include/tirpc/rpc/rpc.h:49, BUILDSTDERR: from rwall.c:61: BUILDSTDERR: rwall.c: In function 'callmsg': 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: (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: argsp, xres, resp, secs)) BUILDSTDERR: ^~~~ 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' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.XnTk8b + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64 + cd netkit-rwall-0.17 + mkdir -p /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64/usr/bin + mkdir -p /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64/usr/sbin + mkdir -p /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64/usr/share/man/man1 /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64/usr/share/man/man8 + mkdir -p /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64/usr/lib/systemd/system/ + make INSTALLROOT=/builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64 install (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-53.fc29.riscv64/usr/sbin/rpc.rwalld install -m644 rpc.rwalld.8 /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64/usr/share/man/man8 ln -sf rpc.rwalld.8 /builddir/build/BUILDROOT/rwall-0.17-53.fc29.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-53.fc29.riscv64/usr/bin install -m644 rwall.1 /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64/usr/share/man/man1/ make[1]: Leaving directory '/builddir/build/BUILD/netkit-rwall-0.17/rwall' + install -m 755 /builddir/build/SOURCES/rwalld.service /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64/usr/lib/systemd/system/ + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 0.17-53.fc29 --unique-debug-suffix -0.17-53.fc29.riscv64 --unique-debug-src-base rwall-0.17-53.fc29.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/netkit-rwall-0.17 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64/usr/sbin/rpc.rwalld explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64/usr/bin/rwall extracting debug info from /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64/usr/bin/rwall extracting debug info from /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64/usr/sbin/rpc.rwalld /usr/lib/rpm/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. BUILDSTDERR: 34 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig BUILDSTDERR: /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-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 + /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 Processing files: rwall-0.17-53.fc29.riscv64 Provides: rwall = 0.17-53.fc29 rwall(riscv-64) = 0.17-53.fc29 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-53.fc29.riscv64 Provides: rwall-server = 0.17-53.fc29 rwall-server(riscv-64) = 0.17-53.fc29 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-53.fc29.riscv64 Provides: rwall-debugsource = 0.17-53.fc29 rwall-debugsource(riscv-64) = 0.17-53.fc29 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-53.fc29.riscv64 Provides: debuginfo(build-id) = e2faede7fb88dcc4e30c118dae700e293d6541cb rwall-debuginfo = 0.17-53.fc29 rwall-debuginfo(riscv-64) = 0.17-53.fc29 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-53.fc29 Processing files: rwall-server-debuginfo-0.17-53.fc29.riscv64 Provides: debuginfo(build-id) = 0d62af09bbea1b6be55ef63dbfe562394b3f852e rwall-server-debuginfo = 0.17-53.fc29 rwall-server-debuginfo(riscv-64) = 0.17-53.fc29 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-53.fc29 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64 Wrote: /builddir/build/RPMS/rwall-0.17-53.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/rwall-server-0.17-53.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/rwall-debugsource-0.17-53.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/rwall-debuginfo-0.17-53.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/rwall-server-debuginfo-0.17-53.fc29.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.rcRBnk + umask 022 + cd /builddir/build/BUILD + cd netkit-rwall-0.17 + /usr/bin/rm -rf /builddir/build/BUILDROOT/rwall-0.17-53.fc29.riscv64 + exit 0 Child return code was: 0