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/spindown.spec'], chrootPath='/var/lib/mock/f31-build-70044-30394/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/spindown.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/spindown-0.4.0-26.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/spindown.spec'], chrootPath='/var/lib/mock/f31-build-70044-30394/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/spindown.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.vaazA8 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf spindown-0.4.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/spindown-0.4.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd spindown-0.4.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf src/ininiparser3.0b + cp -pf /builddir/build/SOURCES/spindown.service spindown.service + cp -pf /builddir/build/SOURCES/01spindown 01spindown + echo 'Patch #0 (spindown-0.4.0-Makefile.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 + echo 'Patch #1 (spindown-0.4.0-iniparser.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 + echo 'Patch #2 (spindown-0.4.0-iniparser-3.0-1.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 + echo 'Patch #3 (spindown-0.4.0-bz1037334.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Patch #0 (spindown-0.4.0-Makefile.patch): patching file Makefile Patch #1 (spindown-0.4.0-iniparser.patch): patching file src/disk.cpp patching file src/disk.h patching file src/spindownd.cpp Patch #2 (spindown-0.4.0-iniparser-3.0-1.patch): patching file src/disk.cpp patching file src/spindownd.cpp Patch #3 (spindown-0.4.0-bz1037334.patch): patching file src/log.cpp Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.bHKh37 + umask 022 + cd /builddir/build/BUILD + cd spindown-0.4.0 + make -j4 'OPT=-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' BUILDSTDERR: src/diskset.cpp: In destructor 'DiskSet::~DiskSet()': BUILDSTDERR: src/diskset.cpp:39:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] BUILDSTDERR: 39 | for( int i=0 ; i < this->size() ; i++ ) BUILDSTDERR: | ~~^~~~~~~~~~~~~~ BUILDSTDERR: src/diskset.cpp: In member function 'void DiskSet::setStatsFrom(const DiskSet&)': BUILDSTDERR: src/diskset.cpp:52:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] BUILDSTDERR: 52 | for( int i=0 ; i < set.size() ; i++ ) BUILDSTDERR: | ~~^~~~~~~~~~~~ BUILDSTDERR: src/diskset.cpp: In member function 'Disk* DiskSet::find(const Disk&)': BUILDSTDERR: src/diskset.cpp:81:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] BUILDSTDERR: 81 | for( int i=0 ; !found && i < this->size() ; i++ ) BUILDSTDERR: | ~~^~~~~~~~~~~~~~ BUILDSTDERR: src/diskset.cpp: In member function 'int DiskSet::countEntries(const Disk&) const': BUILDSTDERR: src/diskset.cpp:98:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] BUILDSTDERR: 98 | for( int i=0 ; i < this->size() ; i++ ) BUILDSTDERR: | ~~^~~~~~~~~~~~~~ BUILDSTDERR: src/spindown.cpp: In static member function 'static void Spindown::updateDevNames(DiskSet*)': BUILDSTDERR: src/spindown.cpp:63:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses] BUILDSTDERR: 63 | while (ep = readdir (dp)) BUILDSTDERR: | ~~~^~~~~~~~~~~~~~ BUILDSTDERR: src/spindown.cpp:65:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] BUILDSTDERR: 65 | for( int i=0 ; i < set->size() ; i++ ) BUILDSTDERR: | ~~^~~~~~~~~~~~~ BUILDSTDERR: src/spindown.cpp: In static member function 'static void Spindown::updateDiskStats(DiskSet*)': BUILDSTDERR: src/spindown.cpp:90:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] BUILDSTDERR: 90 | for(i=0 ; i < disks->size() ; i++) BUILDSTDERR: | ~~^~~~~~~~~~~~~~~ BUILDSTDERR: src/spindown.cpp:100:107: warning: writing into constant object (argument 3) [-Wformat=] BUILDSTDERR: 100 | sscanf( str, "%*u %*u %s %*u %*u %u %*u %*u %*u %u", devNameInp.data(), &newRead, &newWritten ); BUILDSTDERR: | ^ BUILDSTDERR: src/spindown.cpp:106:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] BUILDSTDERR: 106 | for(i=0 ; i < disks->size() ; i++) BUILDSTDERR: | ~~^~~~~~~~~~~~~~~ BUILDSTDERR: src/spindown.cpp:82:23: warning: unused variable 'blocks' [-Wunused-variable] BUILDSTDERR: 82 | unsigned long int blocks; BUILDSTDERR: | ^~~~~~ BUILDSTDERR: src/spindown.cpp: In member function 'void Spindown::spinDownIdleDisks()': BUILDSTDERR: src/spindown.cpp:163:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] BUILDSTDERR: 163 | for( int i=0 ; i < disks->size() ; i++ ) BUILDSTDERR: | ~~^~~~~~~~~~~~~~~ BUILDSTDERR: src/spindown.cpp: In member function 'std::string Spindown::getStatusString(bool) const': BUILDSTDERR: src/spindown.cpp:210:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector::size_type' {aka 'long unsigned int'} [-Wsign-compare] BUILDSTDERR: 210 | for( int i=0 ; i < disks->size() ; i++ ) BUILDSTDERR: | ~~^~~~~~~~~~~~~~~ BUILDSTDERR: src/disk.cpp: In member function 'void Disk::findDevName(std::string)': BUILDSTDERR: src/disk.cpp:143:17: warning: ignoring return value of 'ssize_t readlink(const char*, char*, size_t)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 143 | readlink( (char*)dev.data(), (char*)buffer.data(), CHAR_BUF); BUILDSTDERR: | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: src/disk.cpp: In member function 'bool Disk::spindown()': BUILDSTDERR: src/disk.cpp:170:1: warning: control reaches end of non-void function [-Wreturn-type] BUILDSTDERR: 170 | } BUILDSTDERR: | ^ BUILDSTDERR: src/spindownd.cpp: In static member function 'static void Spindownd::sigHandlerPipe(int)': BUILDSTDERR: src/spindownd.cpp:123:15: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 123 | write (file, status.data(), status.size()); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 g++ -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 -c src/main.cpp g++ -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 -c src/diskset.cpp g++ -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 -c src/disk.cpp g++ -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 -c src/spindown.cpp g++ -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 -c src/log.cpp g++ -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 -c src/spindownd.cpp g++ -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 -c src/exceptions.cpp g++ -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 -o spindownd main.o diskset.o disk.o spindown.o log.o spindownd.o exceptions.o -liniparser --- THE CONFIGURATION FILE HAS CHANGED SINCE V0.2.1!!!! --- Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.sBpKk7 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64 + cd spindown-0.4.0 + make DESTDIR=/builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64 install + mkdir -p /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64//usr/lib64/pm-utils/sleep.d + mkdir -p /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64//usr/lib/systemd/system + install -p -m 755 01spindown /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64//usr/lib64/pm-utils/sleep.d/01spindown + install -p -m 755 spindown.service /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64//usr/lib/systemd/system/spindown.service + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 0.4.0-26.fc31 --unique-debug-suffix -0.4.0-26.fc31.riscv64 --unique-debug-src-base spindown-0.4.0-26.fc31.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/spindown-0.4.0 BUILDSTDERR: 88 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/spindown.service is executable but has empty or no shebang, removing executable bit --- THE CONFIGURATION FILE HAS CHANGED SINCE V0.2.1!!!! --- install -D -m 755 spindownd /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64/usr/sbin/spindownd install -D -m 644 spindown.conf.example /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64/etc/spindown.conf explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64/usr/sbin/spindownd extracting debug info from /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64/usr/sbin/spindownd original debug info size: 736kB, size after compression: 600kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. mangling shebang in /usr/lib64/pm-utils/sleep.d/01spindown from /bin/sh to #!/usr/bin/sh Processing files: spindown-0.4.0-26.fc31.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.yQ7qC8 + umask 022 + cd /builddir/build/BUILD + cd spindown-0.4.0 + DOCDIR=/builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64/usr/share/doc/spindown + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64/usr/share/doc/spindown + cp -pr COPYING /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64/usr/share/doc/spindown + cp -pr CHANGELOG /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64/usr/share/doc/spindown + cp -pr README /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64/usr/share/doc/spindown + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Provides: config(spindown) = 0.4.0-26.fc31 spindown = 0.4.0-26.fc31 spindown(riscv-64) = 0.4.0-26.fc31 Requires(interp): /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(preun): /bin/sh systemd-units Requires: /usr/bin/sh 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) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libiniparser.so.1()(64bit) libm.so.6()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.1)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.20)(64bit) libstdc++.so.6(GLIBCXX_3.4.21)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) rtld(GNU_HASH) Processing files: spindown-debugsource-0.4.0-26.fc31.riscv64 Provides: spindown-debugsource = 0.4.0-26.fc31 spindown-debugsource(riscv-64) = 0.4.0-26.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: spindown-debuginfo-0.4.0-26.fc31.riscv64 Provides: debuginfo(build-id) = f2c42b6ab5096bb578e2e765960540b444e057d9 spindown-debuginfo = 0.4.0-26.fc31 spindown-debuginfo(riscv-64) = 0.4.0-26.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: spindown-debugsource(riscv-64) = 0.4.0-26.fc31 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64 Wrote: /builddir/build/RPMS/spindown-debugsource-0.4.0-26.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/spindown-0.4.0-26.fc31.riscv64.rpm Wrote: /builddir/build/RPMS/spindown-debuginfo-0.4.0-26.fc31.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.ff5WH8 + umask 022 + cd /builddir/build/BUILD + cd spindown-0.4.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/spindown-0.4.0-26.fc31.riscv64 + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Child return code was: 0