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/spindown.spec'], chrootPath='/var/lib/mock/f30-build-34402-18808/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/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', '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/spindown-0.4.0-24.fc30.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/f30-build-34402-18808/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/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', '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.90qspR + 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):' Patch #0 (spindown-0.4.0-Makefile.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Makefile + echo 'Patch #1 (spindown-0.4.0-iniparser.patch):' Patch #1 (spindown-0.4.0-iniparser.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/disk.cpp patching file src/disk.h patching file src/spindownd.cpp + echo 'Patch #2 (spindown-0.4.0-iniparser-3.0-1.patch):' Patch #2 (spindown-0.4.0-iniparser-3.0-1.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/disk.cpp patching file src/spindownd.cpp + echo 'Patch #3 (spindown-0.4.0-bz1037334.patch):' Patch #3 (spindown-0.4.0-bz1037334.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/log.cpp + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.E6Kg6I + 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' 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 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: 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: 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: 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: 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: 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: 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: for(i=0 ; i < disks->size() ; i++) BUILDSTDERR: ~~^~~~~~~~~~~~~~~ BUILDSTDERR: src/spindown.cpp:100:107: warning: writing into constant object (argument 3) [-Wformat=] BUILDSTDERR: 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: for(i=0 ; i < disks->size() ; i++) BUILDSTDERR: ~~^~~~~~~~~~~~~~~ BUILDSTDERR: src/spindown.cpp:82:23: warning: unused variable 'blocks' [-Wunused-variable] BUILDSTDERR: 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: for( int i=0 ; i < disks->size() ; i++ ) BUILDSTDERR: ~~^~~~~~~~~~~~~~~ BUILDSTDERR: src/spindown.cpp: In member function 'std::__cxx11::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: for( int i=0 ; i < disks->size() ; i++ ) BUILDSTDERR: ~~^~~~~~~~~~~~~~~ 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 BUILDSTDERR: src/disk.cpp: In member function 'void Disk::findDevName(std::__cxx11::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: 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: } BUILDSTDERR: ^ 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 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: write (file, status.data(), status.size()); BUILDSTDERR: ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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!!!! --- + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.RNyv1p + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64 + cd spindown-0.4.0 + make DESTDIR=/builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64 install --- THE CONFIGURATION FILE HAS CHANGED SINCE V0.2.1!!!! --- install -D -m 755 spindownd /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64/usr/sbin/spindownd install -D -m 644 spindown.conf.example /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64/etc/spindown.conf + mkdir -p /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64//usr/lib64/pm-utils/sleep.d + mkdir -p /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64//usr/lib/systemd/system + install -p -m 755 01spindown /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64//usr/lib64/pm-utils/sleep.d/01spindown + install -p -m 755 spindown.service /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.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-24.fc30 --unique-debug-suffix -0.4.0-24.fc30.riscv64 --unique-debug-src-base spindown-0.4.0-24.fc30.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/spindown-0.4.0 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64/usr/sbin/spindownd extracting debug info from /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64/usr/sbin/spindownd /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. BUILDSTDERR: 88 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig BUILDSTDERR: /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64/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 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 mangling shebang in /usr/lib64/pm-utils/sleep.d/01spindown from /bin/sh to #!/usr/bin/sh Processing files: spindown-0.4.0-24.fc30.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.zD5t2y + umask 022 + cd /builddir/build/BUILD + cd spindown-0.4.0 + DOCDIR=/builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.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-24.fc30.riscv64/usr/share/doc/spindown + cp -pr COPYING /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64/usr/share/doc/spindown + cp -pr CHANGELOG /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64/usr/share/doc/spindown + cp -pr README /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64/usr/share/doc/spindown + exit 0 Provides: config(spindown) = 0.4.0-24.fc30 spindown = 0.4.0-24.fc30 spindown(riscv-64) = 0.4.0-24.fc30 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.0()(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-24.fc30.riscv64 Provides: spindown-debugsource = 0.4.0-24.fc30 spindown-debugsource(riscv-64) = 0.4.0-24.fc30 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-24.fc30.riscv64 Provides: debuginfo(build-id) = 70cf5dc9d6fbe3bef897958b104e774f88c0d5b5 spindown-debuginfo = 0.4.0-24.fc30 spindown-debuginfo(riscv-64) = 0.4.0-24.fc30 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-24.fc30 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64 Wrote: /builddir/build/RPMS/spindown-0.4.0-24.fc30.riscv64.rpm Wrote: /builddir/build/RPMS/spindown-debugsource-0.4.0-24.fc30.riscv64.rpm Wrote: /builddir/build/RPMS/spindown-debuginfo-0.4.0-24.fc30.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.eRxBm3 + umask 022 + cd /builddir/build/BUILD + cd spindown-0.4.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/spindown-0.4.0-24.fc30.riscv64 + exit 0 Child return code was: 0