+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/ddrescue.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1yVl7X + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ddrescue-1.22 + /usr/bin/mkdir -p ddrescue-1.22 + cd ddrescue-1.22 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd .. + lzip -d -c /builddir/build/SOURCES/ddrescue-1.22.tar.lz + tar xf ddrescue-1.22.tar + rm ddrescue-1.22.tar + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.klflwb + umask 022 + cd /builddir/build/BUILD + cd ddrescue-1.22 + 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 ' + export CFLAGS + CXXFLAGS='-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 ' + export CXXFLAGS + FFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info '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 ' 'CXXFLAGS=-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 ' configure: WARNING: unrecognized option: '--build=riscv64-redhat-linux-gnu' configure: WARNING: unrecognized option: '--host=riscv64-redhat-linux-gnu' configure: WARNING: unrecognized option: '--program-prefix=' configure: WARNING: unrecognized option: '--disable-dependency-tracking' configure: WARNING: unrecognized option: '--sbindir=/usr/sbin' configure: WARNING: unrecognized option: '--sysconfdir=/etc' configure: WARNING: unrecognized option: '--datadir=/usr/share' configure: WARNING: unrecognized option: '--includedir=/usr/include' configure: WARNING: unrecognized option: '--libdir=/usr/lib64' configure: WARNING: unrecognized option: '--libexecdir=/usr/libexec' configure: WARNING: unrecognized option: '--localstatedir=/var' configure: WARNING: unrecognized option: '--sharedstatedir=/var/lib' creating config.status creating Makefile VPATH = . prefix = /usr exec_prefix = /usr bindir = /usr/bin datarootdir = $(prefix)/share infodir = /usr/share/info mandir = /usr/share/man CXX = g++ CPPFLAGS = CXXFLAGS = -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 LDFLAGS = OK. Now you can run make. + make -j4 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 -c -o arg_parser.o arg_parser.cc 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 -c -o rational.o rational.cc 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 -c -o non_posix.o non_posix.cc 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 -c -o loggers.o loggers.cc 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 -c -o block.o block.cc loggers.cc: In function 'const char* {anonymous}::format_time_dhms(long int)': loggers.cc:31:14: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] const char * format_time_dhms( const long t ) ^~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:862:0, from /usr/include/c++/7/cstdio:42, from loggers.cc:20: /usr/include/bits/stdio2.h:65:44: note: '__builtin___snprintf_chk' output between 15 and 33 bytes into a destination of size 32 __bos (__s), __fmt, __va_arg_pack ()); ^ 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 -c -o mapfile.o mapfile.cc 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 -c -o mapbook.o mapbook.cc 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 -c -o fillbook.o fillbook.cc 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 -c -o genbook.o genbook.cc 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 -c -o io.o io.cc 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 -c -o rescuebook.o rescuebook.cc 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 -DPROGVERSION=\"1.22\" -c -o main.o main.cc 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 -DPROGVERSION=\"1.22\" -c -o ddrescuelog.o ddrescuelog.cc 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 -o ddrescue arg_parser.o rational.o non_posix.o loggers.o block.o mapfile.o mapbook.o fillbook.o genbook.o io.o rescuebook.o main.o 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 -o ddrescuelog arg_parser.o block.o mapfile.o ddrescuelog.o + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.olsS93 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64 + cd ddrescue-1.22 + rm -rf /builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64 + make install DESTDIR=/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64 if [ ! -d "/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/bin" ] ; then install -d -m 755 "/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/bin" ; fi install -m 755 ./ddrescue "/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/bin/ddrescue" install -m 755 ./ddrescuelog "/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/bin/ddrescuelog" if [ ! -d "/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/info" ] ; then install -d -m 755 "/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/info" ; fi rm -f "/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/info/ddrescue.info"* install -m 644 ./doc/ddrescue.info "/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/info/ddrescue.info" if /bin/sh -c "install-info --version" > /dev/null 2>&1 ; then \ install-info --info-dir="/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/info" "/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/info/ddrescue.info" ; \ fi if [ ! -d "/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/man/man1" ] ; then install -d -m 755 "/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/man/man1" ; fi rm -f "/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/man/man1/ddrescue.1"* rm -f "/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/man/man1/ddrescuelog.1"* install -m 644 ./doc/ddrescue.1 "/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/man/man1/ddrescue.1" install -m 644 ./doc/ddrescuelog.1 "/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/man/man1/ddrescuelog.1" + rm -f /builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/info/dir + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /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 /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /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: ddrescue-1.22-3.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.1jP2VH + umask 022 + cd /builddir/build/BUILD + cd ddrescue-1.22 + DOCDIR=/builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/doc/ddrescue + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/doc/ddrescue + cp -pr AUTHORS /builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/doc/ddrescue + cp -pr ChangeLog /builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/doc/ddrescue + cp -pr COPYING /builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/doc/ddrescue + cp -pr NEWS /builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/doc/ddrescue + cp -pr README /builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64/usr/share/doc/ddrescue + exit 0 Provides: ddrescue = 1.22-3.fc28 ddrescue(riscv-64) = 1.22-3.fc28 Requires(interp): /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 info Requires(preun): /bin/sh info 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) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64 Wrote: /builddir/build/SRPMS/ddrescue-1.22-3.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/ddrescue-1.22-3.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.VFUWjE + umask 022 + cd /builddir/build/BUILD + cd ddrescue-1.22 + rm -rf /builddir/build/BUILDROOT/ddrescue-1.22-3.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync ++ sleep 5 +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff