+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/patchutils.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.Xdnaik + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf patchutils-0.3.4 + /usr/bin/xz -dc /builddir/build/SOURCES/patchutils-0.3.4.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd patchutils-0.3.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (patchutils-bz1226985.patch):' Patch #1 (patchutils-bz1226985.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .bz1226985 --fuzz=0 patching file Makefile.am patching file src/filterdiff.c patching file tests/fullheader3/run-test + autoreconf Makefile.am:39: warning: notdir $<: non-POSIX variable name Makefile.am:39: (probably a GNU make extension) Makefile.am:42: warning: notdir $<: non-POSIX variable name Makefile.am:42: (probably a GNU make extension) Makefile.am:45: warning: notdir $<: non-POSIX variable name Makefile.am:45: (probably a GNU make extension) Makefile.am:48: warning: notdir $<: non-POSIX variable name Makefile.am:48: (probably a GNU make extension) + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.jKi0Ax + umask 022 + cd /builddir/build/BUILD + cd patchutils-0.3.4 + touch doc/patchutils.xml + 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 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no 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 whether gcc understands -c and -o together... yes checking for style of include used by make... GNU checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for riscv64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for xmlto... /usr/bin/xmlto checking for perl... /usr/bin/perl checking for sensible-editor... no checking for editor... no checking for vim... no checking for vi... no 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/wait.h that is POSIX.1 compatible... 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 sys/types.h... (cached) yes checking for unistd.h... (cached) yes checking error.h usability... yes checking error.h presence... yes checking for error.h... yes checking for an ANSI C-conforming const... yes checking for pid_t... yes checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for working POSIX fnmatch... yes checking for strcspn... yes checking for strspn... yes checking for strtoul... yes checking for getline... yes checking for error... yes checking for getopt_long... yes checking for diff program... diff checking for patch program... patch checking whether patch works... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating scripts/splitdiff config.status: creating scripts/editdiff config.status: creating scripts/fixcvsdiff config.status: creating scripts/recountdiff config.status: creating scripts/unwrapdiff config.status: creating scripts/dehtmldiff config.status: creating scripts/espdiff config.status: creating patchutils.spec config.status: creating config.h config.status: executing depfiles commands + make -j2 (CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /builddir/build/BUILD/patchutils-0.3.4/missing autoheader) rm -f stamp-h1 touch config.h.in cd . && /bin/sh ./config.status config.h config.status: creating config.h config.status: config.h is unchanged make all-am make[1]: Entering directory '/builddir/build/BUILD/patchutils-0.3.4' /usr/bin/xmlto man -o doc doc/patchutils.xml /usr/bin/xmlto man -o doc doc/patchutils.xml Note: Writing interdiff.1 Note: Writing interdiff.1 Note: Writing combinediff.1 Note: Writing combinediff.1 Note: Writing filterdiff.1 Note: Writing filterdiff.1 Note: Writing fixcvsdiff.1 Note: Writing fixcvsdiff.1 Note: Writing lsdiff.1 Note: Writing lsdiff.1 Note: Writing splitdiff.1 Note: Writing splitdiff.1 Note: Writing rediff.1 Note: Writing editdiff.1 (soelim stub) Note: Writing rediff.1 Note: Writing editdiff.1 (soelim stub) Note: Writing grepdiff.1 Note: Writing grepdiff.1 Note: Writing recountdiff.1 Note: Writing recountdiff.1 Note: Writing unwrapdiff.1 Note: Writing unwrapdiff.1 Note: Writing dehtmldiff.1 Note: Writing dehtmldiff.1 Note: Writing flipdiff.1 Note: Writing flipdiff.1 Note: Writing espdiff.1 /usr/bin/xmlto man -o doc doc/patchutils.xml Note: Writing espdiff.1 gcc -DHAVE_CONFIG_H -I. -D_GNU_SOURCE -I./src -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 -c -o src/interdiff.o src/interdiff.c src/interdiff.c: In function 'flipdiff': src/interdiff.c:1549:2: warning: ignoring return value of 'getline', declared with attribute warn_unused_result [-Wunused-result] getline (&header1[0], &linelen, p1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/interdiff.c:1551:2: warning: ignoring return value of 'getline', declared with attribute warn_unused_result [-Wunused-result] getline (&header1[1], &linelen, p1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/interdiff.c:1555:2: warning: ignoring return value of 'getline', declared with attribute warn_unused_result [-Wunused-result] getline (&header2[0], &linelen, p2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/interdiff.c:1557:2: warning: ignoring return value of 'getline', declared with attribute warn_unused_result [-Wunused-result] getline (&header2[1], &linelen, p2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Note: Writing interdiff.1 gcc -DHAVE_CONFIG_H -I. -D_GNU_SOURCE -I./src -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 -c -o src/util.o src/util.c src/util.c: In function 'xpipe': src/util.c:305:2: warning: ignoring return value of 'pipe', declared with attribute warn_unused_result [-Wunused-result] pipe (fildes); ^~~~~~~~~~~~~ src/util.c:315:4: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] dup (fildes[1]); ^~~~~~~~~~~~~~~ src/util.c:320:4: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] dup(2); ^~~~~~ src/util.c:322:4: warning: ignoring return value of 'dup', declared with attribute warn_unused_result [-Wunused-result] dup (fildes[0]); ^~~~~~~~~~~~~~~ Note: Writing combinediff.1 gcc -DHAVE_CONFIG_H -I. -D_GNU_SOURCE -I./src -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 -c -o src/diff.o src/diff.c Note: Writing filterdiff.1 src/diff.c: In function 'do_convert_to_unified': src/diff.c:804:5: warning: 'llen[1]' may be used uninitialized in this function [-Wmaybe-uninitialized] fwrite (l[1] + 2, llen[1] - 2, 1, stdout); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/diff.c:743:11: note: 'llen[1]' was declared here size_t llen[2]; ^~~~ gcc -DHAVE_CONFIG_H -I. -D_GNU_SOURCE -I./src -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 -c -o src/myerror.o src/myerror.c gcc -DHAVE_CONFIG_H -I. -D_GNU_SOURCE -I./src -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 -c -o src/filterdiff.o src/filterdiff.c Note: Writing fixcvsdiff.1 src/filterdiff.c: In function 'read_regex_file': src/filterdiff.c:1358:28: error: format not a string literal and no format arguments [-Werror=format-security] error (EXIT_FAILURE, 0, errstr); ^~~~~~ src/filterdiff.c: In function 'main': src/filterdiff.c:1616:28: error: format not a string literal and no format arguments [-Werror=format-security] error (EXIT_FAILURE, 0, errstr); ^~~~~~ Note: Writing lsdiff.1 cc1: some warnings being treated as errors Note: Writing splitdiff.1 make[1]: *** [Makefile:905: src/filterdiff.o] Error 1 make[1]: *** Waiting for unfinished jobs.... Note: Writing rediff.1 Note: Writing editdiff.1 (soelim stub) Note: Writing grepdiff.1 Note: Writing recountdiff.1 Note: Writing unwrapdiff.1 Note: Writing dehtmldiff.1 Note: Writing flipdiff.1 Note: Writing espdiff.1 make[1]: Leaving directory '/builddir/build/BUILD/patchutils-0.3.4' make: *** [Makefile:709: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.jKi0Ax (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.jKi0Ax (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff