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/pwauth.spec'], chrootPath='/var/lib/mock/f31-build-89856-32120/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/pwauth.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/pwauth-2.3.10-20.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/pwauth.spec'], chrootPath='/var/lib/mock/f31-build-89856-32120/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/pwauth.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.ndnhiL + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pwauth-2.3.10 + /usr/bin/gzip -dc /builddir/build/SOURCES/pwauth-2.3.10.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pwauth-2.3.10 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (pwauth-make.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .make --fuzz=0 + echo 'Patch #2 (pwauth-strchr.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .strchr --fuzz=0 + echo 'Patch #3 (pwauth-cleanup.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cleanup --fuzz=0 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Patch #1 (pwauth-make.patch): patching file config.h patching file Makefile Hunk #2 succeeded at 29 (offset 1 line). Patch #2 (pwauth-strchr.patch): patching file main.c Patch #3 (pwauth-cleanup.patch): patching file snooze.c patching file lastlog.c patching file pwauth.h patching file main.c Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Pa5YeJ + umask 022 + cd /builddir/build/BUILD + cd pwauth-2.3.10 + 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' + 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' + export 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/make -O -j4 V=1 VERBOSE=1 '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 -Wno-comment' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' BUILDSTDERR: main.c: In function 'main': BUILDSTDERR: main.c:56:13: warning: unused variable 'i' [-Wunused-variable] BUILDSTDERR: 56 | int uid,i; BUILDSTDERR: | ^ BUILDSTDERR: main.c:56:9: warning: unused variable 'uid' [-Wunused-variable] BUILDSTDERR: 56 | int uid,i; BUILDSTDERR: | ^~~ BUILDSTDERR: lastlog.c: In function 'lastlog': BUILDSTDERR: lastlog.c:61:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 61 | write(fd, &ll, sizeof(struct lastlog)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/string.h:494, BUILDSTDERR: from pwauth.h:37, BUILDSTDERR: from lastlog.c:36: BUILDSTDERR: In function 'strncpy', BUILDSTDERR: inlined from 'lastlog' at lastlog.c:54:2: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 256 equals destination size [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -Wno-comment -c -o auth_aix.o auth_aix.c 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 -Wno-comment -c -o auth_bsd.o auth_bsd.c 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 -Wno-comment -c -o auth_hpux.o auth_hpux.c 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 -Wno-comment -c -o auth_mdw.o auth_mdw.c 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 -Wno-comment -c -o auth_openbsd.o auth_openbsd.c 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 -Wno-comment -c -o main.o main.c 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 -Wno-comment -c -o auth_pam.o auth_pam.c 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 -Wno-comment -c -o auth_sun.o auth_sun.c 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 -Wno-comment -c -o fail_log.o fail_log.c 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 -Wno-comment -c -o lastlog.o lastlog.c 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 -Wno-comment -c -o nologin.o nologin.c BUILDSTDERR: 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 -f+ RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 stack-clash-protection -Wno-comment -c -o snooze.o snooze.c gcc -o pwauth -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 -Wno-comment -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld main.o auth_aix.o auth_bsd.o auth_hpux.o \ auth_mdw.o auth_openbsd.o auth_pam.o auth_sun.o fail_log.o \ lastlog.o nologin.o snooze.o -lpam -ldl Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.5DU1VJ + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64 + cd pwauth-2.3.10 + mkdir -p /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64/usr/bin /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64/etc/pam.d + install -p -m 4750 -t /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64/usr/bin pwauth + install -p -m 0750 -t /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64/usr/bin unixgroup + install -p -T /builddir/build/SOURCES/pwauth.pam /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64/etc/pam.d/pwauth + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 2.3.10-20.fc31 --unique-debug-suffix -2.3.10-20.fc31.riscv64 --unique-debug-src-base pwauth-2.3.10-20.fc31.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/pwauth-2.3.10 BUILDSTDERR: 37 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 BUILDSTDERR: *** WARNING: ./etc/pam.d/pwauth is executable but has empty or no shebang, removing executable bit explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64/usr/bin/pwauth extracting debug info from /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64/usr/bin/pwauth original debug info size: 68kB, size after compression: 60kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. Processing files: pwauth-2.3.10-20.fc31.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.4JIqyL + umask 022 + cd /builddir/build/BUILD + cd pwauth-2.3.10 + DOCDIR=/builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64/usr/share/doc/pwauth + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64/usr/share/doc/pwauth + cp -pr CHANGES /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64/usr/share/doc/pwauth + cp -pr INSTALL /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64/usr/share/doc/pwauth + cp -pr README /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64/usr/share/doc/pwauth + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Provides: pwauth = 2.3.10-20.fc31 pwauth(riscv-64) = 2.3.10-20.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/perl 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) libpam.so.0()(64bit) libpam.so.0(LIBPAM_1.0)(64bit) rtld(GNU_HASH) Processing files: pwauth-debugsource-2.3.10-20.fc31.riscv64 Provides: pwauth-debugsource = 2.3.10-20.fc31 pwauth-debugsource(riscv-64) = 2.3.10-20.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: pwauth-debuginfo-2.3.10-20.fc31.riscv64 Provides: debuginfo(build-id) = cf311d9488732cad4f678b29b81409b28551eb1a pwauth-debuginfo = 2.3.10-20.fc31 pwauth-debuginfo(riscv-64) = 2.3.10-20.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: pwauth-debugsource(riscv-64) = 2.3.10-20.fc31 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64 Wrote: /builddir/build/RPMS/pwauth-debugsource-2.3.10-20.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/pwauth-debuginfo-2.3.10-20.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/pwauth-2.3.10-20.fc31.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.h4bQDI + umask 022 + cd /builddir/build/BUILD + cd pwauth-2.3.10 + /usr/bin/rm -rf /builddir/build/BUILDROOT/pwauth-2.3.10-20.fc31.riscv64 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Child return code was: 0