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/netdump-server.spec'], chrootPath='/var/lib/mock/f31-build-113110-34323/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=432000uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/netdump-server.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=1564012800 Wrote: /builddir/build/SRPMS/netdump-server-0.7.16-501.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/netdump-server.spec'], chrootPath='/var/lib/mock/f31-build-113110-34323/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=432000uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/netdump-server.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=1564012800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.EvqAKJ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf netdump-0.7.16 + /usr/bin/gzip -dc /builddir/build/SOURCES/netdump-0.7.16.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd netdump-0.7.16 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (netdump-init-typo.patch): + echo 'Patch #0 (netdump-init-typo.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file netdump.init Patch #1 (netdump-localport-option.patch): + echo 'Patch #1 (netdump-localport-option.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file netdump.init + echo 'Patch #2 (netdump-dumpdir.patch):' Patch #2 (netdump-dumpdir.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file server.c Hunk #1 succeeded at 92 (offset 22 lines). Hunk #2 succeeded at 144 (offset 22 lines). Hunk #3 succeeded at 191 (offset 22 lines). Hunk #4 succeeded at 435 (offset 22 lines). patching file configuration.h Hunk #1 succeeded at 36 (offset 22 lines). patching file configuration.c Hunk #1 succeeded at 68 (offset 22 lines). Hunk #2 succeeded at 301 (offset 22 lines). Patch #3 (netdump-dumpdir-docs-scripts.patch): + echo 'Patch #3 (netdump-dumpdir-docs-scripts.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file netdump-server.init patching file netdump-server.8 Hunk #1 succeeded at 7 (offset -17 lines). Hunk #2 succeeded at 35 (offset -17 lines). + echo 'Patch #4 (netdump-retrans-on-log.patch):' Patch #4 (netdump-retrans-on-log.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file netdumpclient.c Hunk #1 succeeded at 2493 (offset 22 lines). Patch #5 (netdump-verbose-logging.patch): + echo 'Patch #5 (netdump-verbose-logging.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file configuration.h Hunk #1 succeeded at 36 (offset 22 lines). patching file netdumpclient.c Hunk #1 succeeded at 209 (offset 22 lines). Hunk #2 succeeded at 1009 (offset 22 lines). Hunk #3 succeeded at 1109 (offset 22 lines). Hunk #4 succeeded at 1223 (offset 22 lines). patching file server.c Hunk #1 succeeded at 558 (offset 22 lines). patching file configuration.c Hunk #1 succeeded at 323 (offset 22 lines). patching file server.h Hunk #1 succeeded at 43 (offset 22 lines). Patch #6 (netdump-makefile-servonly.patch): + echo 'Patch #6 (netdump-makefile-servonly.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile Patch #7 (netdump-server-Makefile.patch): + echo 'Patch #7 (netdump-server-Makefile.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile + echo 'Patch #8 (netdump-server-init.patch):' Patch #8 (netdump-server-init.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file netdump.init + echo 'Patch #9 (netdump-clientport.patch):' Patch #9 (netdump-clientport.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file server.c patching file netdumpclient.c patching file netdumpclient.h Patch #10 (netdump-server-use-ip-cmd.patch): + echo 'Patch #10 (netdump-server-use-ip-cmd.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file netdump.init + echo 'Patch #11 (netdump-server-default-dir.patch):' Patch #11 (netdump-server-default-dir.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file server.h Patch #12 (netdump-ldflags.patch): + echo 'Patch #12 (netdump-ldflags.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile Patch #13 (netdump-server-format-security.patch): + echo 'Patch #13 (netdump-server-format-security.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file server.c + echo 'Patch #14 (netdump-server-offsetof.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 Patch #14 (netdump-server-offsetof.patch): patching file configuration.c + echo 'Patch #15 (netdump-do-not-redeclare-procfs.patch):' Patch #15 (netdump-do-not-redeclare-procfs.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file netdumpelf.h + echo 'Patch #16 (netdump-glib-2.0.patch):' Patch #16 (netdump-glib-2.0.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile patching file server.c patching file configuration.c + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.eQnMlF + umask 022 + cd /builddir/build/BUILD + cd netdump-0.7.16 BUILDSTDERR: ++ pkg-config --cflags glib-2.0 + export '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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE' + 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE' + export LDFLAGS=-pie + LDFLAGS=-pie + make -j4 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE `pkg-config --cflags glib-2.0` -c -o server.o server.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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE `pkg-config --cflags glib-2.0` -c -o netdumpclient.o netdumpclient.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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fPIE `pkg-config --cflags glib-2.0` -c -o configuration.o configuration.c BUILDSTDERR: server.c: In function 'write_log': BUILDSTDERR: server.c:277:11: warning: variable 'res' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 277 | int res; BUILDSTDERR: | ^~~ BUILDSTDERR: server.c: In function 'main': BUILDSTDERR: server.c:429:9: warning: unused variable 'str' [-Wunused-variable] BUILDSTDERR: 429 | char *str; BUILDSTDERR: | ^~~ BUILDSTDERR: server.c:446:5: warning: ignoring return value of 'daemon', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 446 | daemon(1, 0); BUILDSTDERR: | ^~~~~~~~~~~~ BUILDSTDERR: server.c: In function 'setup_pidfile': BUILDSTDERR: server.c:407:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 407 | write(pidfd, pid, strlen(pid)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netdumpclient.c: In function 'netdump_client_send_reboot': BUILDSTDERR: netdumpclient.c:146:7: warning: variable 'len' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 146 | int len; BUILDSTDERR: | ^~~ BUILDSTDERR: netdumpclient.c: In function 'netdump_client_send_request': BUILDSTDERR: netdumpclient.c:367:7: warning: variable 'len' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 367 | int len; BUILDSTDERR: | ^~~ BUILDSTDERR: netdumpclient.c: In function 'netdump_client_destroy': BUILDSTDERR: netdumpclient.c:289:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 289 | system(compress_command); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netdumpclient.c: In function 'status_packet': BUILDSTDERR: netdumpclient.c:2491:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 2491 | write (fd, BUILDSTDERR: | ^~~~~~~~~~ BUILDSTDERR: 2492 | buffer + 1 + sizeof (reply_t), BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 2493 | buf_len - (1 + sizeof (reply_t))); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: server.c: In function 'config_load_segments': BUILDSTDERR: server.c:611:9: warning: 'load_segments' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 611 | return load_segments; BUILDSTDERR: | ^~~~~~~~~~~~~ gcc -o netdump-server server.o netdumpclient.o configuration.o -pie `pkg-config --libs glib-2.0` -lpopt + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.bQcM9I + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64 + cd netdump-0.7.16 + rm -rf /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64 + mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64 + DESTDIR=/builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64 + make install mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/var/netdump/crash mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/var/netdump/crash/scripts mkdir -m 700 -p /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/var/netdump/crash/magic mkdir -m 700 -p /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/var/netdump/crash/.ssh echo "#netdump stores client keys here" > /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/var/netdump/crash/.ssh/authorized_keys2 chmod u=rw,go= /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/var/netdump/crash/.ssh/authorized_keys2 mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/usr/sbin mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/etc/sysconfig mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/etc/rc.d/init.d cp netdump-server /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/usr/sbin cp netdump-server.init /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/etc/rc.d/init.d/netdump-server chmod a+x /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/etc/rc.d/init.d/netdump-server mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/usr/share/man/man8 cp netdump-server.8 /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/usr/share/man/man8 + mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/etc/sysconfig + install -m 644 /builddir/build/SOURCES/netdump-server.sysconfig /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/etc/sysconfig/netdump-server + install -D -p -m 0644 /builddir/build/SOURCES/netdump-server.service /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64//usr/lib/systemd/system/netdump-server.service + mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/var/netdump/crash/netdump + rm -rf /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/etc/rc.d + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 0.7.16-501.fc31 --unique-debug-suffix -0.7.16-501.fc31.riscv64 --unique-debug-src-base netdump-server-0.7.16-501.fc31.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/netdump-0.7.16 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/usr/sbin/netdump-server extracting debug info from /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/usr/sbin/netdump-server original debug info size: 216kB, size after compression: 208kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. BUILDSTDERR: 230 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/redhat/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: netdump-server-0.7.16-501.fc31.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.79ghCI + umask 022 + cd /builddir/build/BUILD + cd netdump-0.7.16 + DOCDIR=/builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/usr/share/doc/netdump-server + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/usr/share/doc/netdump-server + cp -pr README /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/usr/share/doc/netdump-server + cp -pr COPYING /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64/usr/share/doc/netdump-server + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Provides: config(netdump-server) = 0.7.16-501.fc31 netdump-server = 0.7.16-501.fc31 netdump-server(riscv-64) = 0.7.16-501.fc31 Requires(interp): /bin/sh /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(pre): /bin/sh shadow-utils Requires(post): /bin/sh systemd Requires(preun): /bin/sh systemd Requires(postun): /bin/sh systemd 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) libglib-2.0.so.0()(64bit) libpopt.so.0()(64bit) libpopt.so.0(LIBPOPT_0)(64bit) rtld(GNU_HASH) Processing files: netdump-server-debugsource-0.7.16-501.fc31.riscv64 Provides: netdump-server-debugsource = 0.7.16-501.fc31 netdump-server-debugsource(riscv-64) = 0.7.16-501.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: netdump-server-debuginfo-0.7.16-501.fc31.riscv64 Provides: debuginfo(build-id) = ed84fe731b5bebe1b44ea8e60aada2903c5a0b48 netdump-server-debuginfo = 0.7.16-501.fc31 netdump-server-debuginfo(riscv-64) = 0.7.16-501.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: netdump-server-debugsource(riscv-64) = 0.7.16-501.fc31 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64 Wrote: /builddir/build/RPMS/netdump-server-0.7.16-501.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/netdump-server-debugsource-0.7.16-501.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/netdump-server-debuginfo-0.7.16-501.fc31.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.niEuLJ + umask 022 + cd /builddir/build/BUILD + cd netdump-0.7.16 + /usr/bin/rm -rf /builddir/build/BUILDROOT/netdump-server-0.7.16-501.fc31.riscv64 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Child return code was: 0