+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/mtx.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.Ycb0uO + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf mtx-1.3.12 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/mtx-1.3.12.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd mtx-1.3.12 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (mtx-1.3.12-destdir.patch):' Patch #0 (mtx-1.3.12-destdir.patch): + /usr/bin/patch --no-backup-if-mismatch -p2 -b --suffix .destdir --fuzz=0 patching file Makefile.in + echo 'Patch #1 (mtx-1.3.12-argc.patch):' Patch #1 (mtx-1.3.12-argc.patch): + /usr/bin/patch --no-backup-if-mismatch -p2 -b --suffix .argc --fuzz=0 patching file loaderinfo.c patching file tapeinfo.c + chmod a-x contrib/config_sgen_solaris.sh contrib/mtx-changer + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.WfShZR + umask 022 + cd /builddir/build/BUILD + cd mtx-1.3.12 + 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 ' + 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 ' + 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 + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 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 checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu checking target system type... riscv64-redhat-linux-gnu checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /usr/bin/install -c checking for objcopy... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for unistd.h... (cached) yes checking for stdlib.h... (cached) yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking for string.h... (cached) yes checking scsi/scsi.h usability... yes checking scsi/scsi.h presence... yes checking for scsi/scsi.h... yes checking scsi/scsi_ioctl.h usability... yes checking scsi/scsi_ioctl.h presence... yes checking for scsi/scsi_ioctl.h... yes checking scsi/sg.h usability... yes checking scsi/sg.h presence... yes checking for scsi/sg.h... yes checking sys/gscdds.h usability... no checking sys/gscdds.h presence... no checking for sys/gscdds.h... no checking camlib.h usability... no checking camlib.h presence... no checking for camlib.h... no checking cam/cam_ccb.h usability... no checking cam/cam_ccb.h presence... no checking for cam/cam_ccb.h... no checking cam/scsi/scsi_message.h usability... no checking cam/scsi/scsi_message.h presence... no checking for cam/scsi/scsi_message.h... no checking sys/fsid.h usability... no checking sys/fsid.h presence... no checking for sys/fsid.h... no checking sys/fstyp.h usability... no checking sys/fstyp.h presence... no checking for sys/fstyp.h... no checking for sys/stat.h... (cached) yes checking for sys/types.h... (cached) yes checking sys/mnttab.h usability... no checking sys/mnttab.h presence... no checking for sys/mnttab.h... no checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/scsi/impl/uscsi.h usability... no checking sys/scsi/impl/uscsi.h presence... no checking for sys/scsi/impl/uscsi.h... no checking sys/scsi.h usability... no checking sys/scsi.h presence... no checking for sys/scsi.h... no checking sys/scsi_ctl.h usability... no checking sys/scsi_ctl.h presence... no checking for sys/scsi_ctl.h... no checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/mtio.h usability... yes checking sys/mtio.h presence... yes checking for sys/mtio.h... yes checking for sys/param.h... (cached) yes checking dslib.h usability... no checking dslib.h presence... no checking for dslib.h... no checking du/defs.h usability... no checking du/defs.h presence... no checking for du/defs.h... no checking ddk/ntddscsi.h usability... no checking ddk/ntddscsi.h presence... no checking for ddk/ntddscsi.h... no checking for an ANSI C-conforming const... yes checking for size_t... yes checking for pid_t... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for int... yes checking size of int... 4 checking for long... yes checking size of long... 8 checking whether byte ordering is bigendian... no checking return type of signal handlers... void checking for vprintf... yes checking for _doprnt... no configure: creating ./config.status config.status: creating Makefile config.status: WARNING: Makefile.in seems to ignore the --datarootdir setting config.status: creating config.h + make -j4 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 -Wall -DVERSION="\"1.3.12\"" -I. -I. -DLONG_PRINT_REQUEST_SENSE=1 -c -o mtx.o mtx.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 -Wall -DVERSION="\"1.3.12\"" -I. -I. -DLONG_PRINT_REQUEST_SENSE=1 -c -o mtxl.o mtxl.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 -Wall -DVERSION="\"1.3.12\"" -I. -I. -DLONG_PRINT_REQUEST_SENSE=1 -c -o tapeinfo.o tapeinfo.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 -Wall -DVERSION="\"1.3.12\"" -I. -I. -DLONG_PRINT_REQUEST_SENSE=1 -c -o loaderinfo.o loaderinfo.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 -Wall -DVERSION="\"1.3.12\"" -I. -I. -DLONG_PRINT_REQUEST_SENSE=1 -c -o scsitape.o scsitape.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 -Wall -DVERSION="\"1.3.12\"" -I. -I. -DLONG_PRINT_REQUEST_SENSE=1 -c -o scsieject.o scsieject.c scsitape.c: In function 'execute_command': scsitape.c:149:23: warning: comparison of constant '-1' with boolean expression is always false [-Wbool-compare] if (!MediumChangerFD == -1) ^~ scsitape.c:149:23: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] scsitape.c:149:6: note: add parentheses around left hand side expression to silence this warning if (!MediumChangerFD == -1) ^~~~~~~~~~~~~~~~ ( ) scsitape.c: In function 'S_read': scsitape.c:867:5: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(outfile,buffer,len); ^~~~~~~~~~~~~~~~~~~~~~~~~ scsitape.c:887:6: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(outfile,buffer,len); ^~~~~~~~~~~~~~~~~~~~~~~~~ scsitape.c:899:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(outfile,buffer,len); ^~~~~~~~~~~~~~~~~~~~~~~~~ gcc -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o mtx mtx.o mtxl.o gcc -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o tapeinfo tapeinfo.o mtxl.o gcc -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o loaderinfo loaderinfo.o mtxl.o gcc -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o scsitape scsitape.o mtxl.o gcc -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o scsieject scsieject.o mtxl.o + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.KBSvQg + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64 + cd mtx-1.3.12 + rm -rf /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64 + make install DESTDIR=/builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64 /usr/bin/install -c -m 755 -d /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/sbin for file in mtx tapeinfo loaderinfo scsitape scsieject; do \ /usr/bin/install -c -m 755 "$file" /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/sbin ; \ done /usr/bin/install -c -m 755 -d /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/share/man /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/share/man/man1 for file in mtx.1 tapeinfo.1 scsitape.1 scsieject.1 loaderinfo.1 ; do \ /usr/bin/install -c -m 644 "$file" /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/share/man/man1 ; \ done + /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: mtx-1.3.12-17.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.surLqJ + umask 022 + cd /builddir/build/BUILD + cd mtx-1.3.12 + DOCDIR=/builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/share/doc/mtx + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/share/doc/mtx + cp -pr CHANGES /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/share/doc/mtx + cp -pr COMPATABILITY /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/share/doc/mtx + cp -pr contrib /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/share/doc/mtx + cp -pr FAQ /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/share/doc/mtx + cp -pr LICENSE /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/share/doc/mtx + cp -pr mtx.doc /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/share/doc/mtx + cp -pr mtxl.README.html /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/share/doc/mtx + cp -pr README /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/share/doc/mtx + cp -pr TODO /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64/usr/share/doc/mtx + exit 0 Provides: mtx = 1.3.12-17.fc28 mtx(riscv-64) = 1.3.12-17.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 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) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64 Wrote: /builddir/build/SRPMS/mtx-1.3.12-17.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/mtx-1.3.12-17.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.5jPcRk + umask 022 + cd /builddir/build/BUILD + cd mtx-1.3.12 + rm -rf /builddir/build/BUILDROOT/mtx-1.3.12-17.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff