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/rarpd.spec'], chrootPath='/var/lib/mock/f29-build-9706-4357/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=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/rarpd.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 Wrote: /builddir/build/SRPMS/rarpd-ss981107-51.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rarpd.spec'], chrootPath='/var/lib/mock/f29-build-9706-4357/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=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/rarpd.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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.zRzlXj + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rarpd + /usr/bin/gzip -dc /builddir/build/SOURCES/rarpd-ss981107.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd rarpd + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (rarpd-ss981107.patch):' Patch #0 (rarpd-ss981107.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .ss981107 --fuzz=0 patching file Makefile patching file rarpd.8 patching file rarpd.c + echo 'Patch #1 (rarpd-fd-leak.patch):' Patch #1 (rarpd-fd-leak.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .fd-leak --fuzz=0 patching file rarpd.c + echo 'Patch #2 (rarpd-sprintf.patch):' Patch #2 (rarpd-sprintf.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .sprintf --fuzz=0 patching file rarpd.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.b41JBo + umask 022 + cd /builddir/build/BUILD + cd rarpd + 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 -fpic' + 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 -fpic' + export 'LDFLAGS=-pie -Wl,-z,relro,-z,now' + LDFLAGS='-pie -Wl,-z,relro,-z,now' + make '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 -fpic' 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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fpic -c -o rarpd.o rarpd.c BUILDSTDERR: rarpd.c: In function 'load_if': BUILDSTDERR: rarpd.c:159:15: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [-Wpointer-sign] BUILDSTDERR: strncpy(ifl->name, ifrp->ifr_name, IFNAMSIZ); BUILDSTDERR: ~~~^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from rarpd.c:13: BUILDSTDERR: /usr/include/bits/string_fortified.h:103:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, BUILDSTDERR: ^~~~~ BUILDSTDERR: rarpd.c:161:18: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] BUILDSTDERR: p = strchr(ifl->name, ':'); BUILDSTDERR: ~~~^~~~~~ BUILDSTDERR: In file included from rarpd.c:18: BUILDSTDERR: /usr/include/string.h:225:14: note: expected 'const char *' but argument is of type 'unsigned char *' BUILDSTDERR: extern char *strchr (const char *__s, int __c) BUILDSTDERR: ^~~~~~ BUILDSTDERR: rarpd.c: In function 'serve_it': BUILDSTDERR: rarpd.c:435:75: warning: pointer targets in passing argument 6 of 'recvfrom' differ in signedness [-Wpointer-sign] BUILDSTDERR: n = recvfrom(fd, buf, sizeof(buf), MSG_DONTWAIT, (struct sockaddr*)&sll, &sll_len); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from /usr/include/sys/socket.h:269, BUILDSTDERR: from /usr/include/netinet/in.h:23, BUILDSTDERR: from /usr/include/netdb.h:27, BUILDSTDERR: from rarpd.c:20: BUILDSTDERR: /usr/include/bits/socket2.h:64:1: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'int *' BUILDSTDERR: recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: rarpd.c:460:6: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: ptr = tmpbuf; BUILDSTDERR: ^ BUILDSTDERR: rarpd.c:462:10: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] BUILDSTDERR: for (ptr=tmpbuf+2, i=1; iname, IFNAMSIZ); BUILDSTDERR: ~~~^~~~~~ BUILDSTDERR: In file included from /usr/include/features.h:428, BUILDSTDERR: from /usr/include/bits/libc-header-start.h:33, BUILDSTDERR: from /usr/include/stdio.h:27, BUILDSTDERR: from rarpd.c:13: BUILDSTDERR: /usr/include/bits/string_fortified.h:103:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' BUILDSTDERR: __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, BUILDSTDERR: ^~~~~ BUILDSTDERR: rarpd.c:547:34: warning: pointer targets in passing argument 2 of 'arp_advise' differ in signedness [-Wpointer-sign] BUILDSTDERR: arp_advise(sll.sll_ifindex, rmap->lladdr, rmap->lladdr_len, rmap->ipaddr); BUILDSTDERR: ~~~~^~~~~~~~ BUILDSTDERR: rarpd.c:392:6: note: expected 'unsigned char *' but argument is of type 'char *' BUILDSTDERR: void arp_advise(int ifindex, unsigned char *lladdr, int lllen, __u32 ipaddr) BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: rarpd.c: In function 'main': BUILDSTDERR: rarpd.c:690:3: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: chdir("/"); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: rarpd.c: In function 'bootable': BUILDSTDERR: rarpd.c:225:17: warning: 'dent' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: struct dirent *dent; BUILDSTDERR: ^~~~ BUILDSTDERR: rarpd.c: In function 'serve_it': BUILDSTDERR: rarpd.c:461:34: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] BUILDSTDERR: snprintf(tmpbuf, 2, "%02x", sll.sll_addr[0]); BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from rarpd.c:13: BUILDSTDERR: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 3 bytes into a destination of size 2 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: rarpd.c:463:26: warning: '__builtin___snprintf_chk' output truncated before the last format character [-Wformat-truncation=] BUILDSTDERR: snprintf(ptr, 3, ":%02x", sll.sll_addr[i]); BUILDSTDERR: ^ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from rarpd.c:13: BUILDSTDERR: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 4 bytes into a destination of size 3 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -pie -Wl,-z,relro,-z,now rarpd.o -o rarpd + cp /builddir/build/SOURCES/LICENSE . + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.hdVGTZ + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64 + cd rarpd + mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64/usr/lib/systemd/system + mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64/usr/sbin + mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64/usr/share/man/man8 + install -m 644 /builddir/build/SOURCES/rarpd.service /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64/usr/lib/systemd/system/rarpd.service + install -m 755 rarpd /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64/usr/sbin/rarpd + install -m 644 rarpd.8 /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64/usr/share/man/man8/rarpd.8 + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed ss981107-51.fc29 --unique-debug-suffix -ss981107-51.fc29.riscv64 --unique-debug-src-base rarpd-ss981107-51.fc29.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/rarpd extracting debug info from /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64/usr/sbin/rarpd /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. BUILDSTDERR: 31 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 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: rarpd-ss981107-51.fc29.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.dOrLdf + umask 022 + cd /builddir/build/BUILD + cd rarpd + DOCDIR=/builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64/usr/share/doc/rarpd + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64/usr/share/doc/rarpd + cp -pr README /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64/usr/share/doc/rarpd + cp -pr LICENSE /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64/usr/share/doc/rarpd + exit 0 Provides: rarpd = ss981107-51.fc29 rarpd(riscv-64) = ss981107-51.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) rtld(GNU_HASH) Processing files: rarpd-debugsource-ss981107-51.fc29.riscv64 Provides: rarpd-debugsource = ss981107-51.fc29 rarpd-debugsource(riscv-64) = ss981107-51.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: rarpd-debuginfo-ss981107-51.fc29.riscv64 Provides: debuginfo(build-id) = 4e2d3f5504e26f93150dfa69a3b8273e3d30e33b rarpd-debuginfo = ss981107-51.fc29 rarpd-debuginfo(riscv-64) = ss981107-51.fc29 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: rarpd-debugsource(riscv-64) = ss981107-51.fc29 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64 Wrote: /builddir/build/RPMS/rarpd-ss981107-51.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/rarpd-debugsource-ss981107-51.fc29.riscv64.rpm Wrote: /builddir/build/RPMS/rarpd-debuginfo-ss981107-51.fc29.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.P2Tkrh + umask 022 + cd /builddir/build/BUILD + cd rarpd + /usr/bin/rm -rf /builddir/build/BUILDROOT/rarpd-ss981107-51.fc29.riscv64 + exit 0 Child return code was: 0