Mock Version: 2.15
Mock Version: 2.15
Mock Version: 2.15
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ledmon.spec'], chrootPath='/var/lib/mock/f37-build-678958-76478/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x3f9ff3ac10>timeout=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ledmon.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
warning: bogus date in %changelog: Wed Jul 01 2022 Jan Macku <jamacku@redhat.com> - 0.96-1
error: %changelog not in descending chronological order
Building target platforms: riscv64
Building for target riscv64
setting SOURCE_DATE_EPOCH=1658361600
Wrote: /builddir/build/SRPMS/ledmon-0.96-4.fc37.src.rpm
RPM build warnings:
    bogus date in %changelog: Wed Jul 01 2022 Jan Macku <jamacku@redhat.com> - 0.96-1
Child return code was: 0
ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ledmon.spec'], chrootPath='/var/lib/mock/f37-build-678958-76478/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=<mockbuild.trace_decorator.getLog object at 0x3f9ff3ac10>timeout=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False)
Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ledmon.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
warning: bogus date in %changelog: Wed Jul 01 2022 Jan Macku <jamacku@redhat.com> - 0.96-1
error: %changelog not in descending chronological order
Building target platforms: riscv64
Building for target riscv64
setting SOURCE_DATE_EPOCH=1658361600
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.eahc9S
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf ledmon-0.96
+ /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ledmon-0.96.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd ledmon-0.96
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (ledmon_format-truncation-flag.patch):'
Patch #0 (ledmon_format-truncation-flag.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file configure.ac
+ autoreconf -fiv
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /usr/bin/autoconf --force
configure.ac:14: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:14: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:14: the top level
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:13: installing './compile'
configure.ac:63: installing './config.guess'
configure.ac:63: installing './config.sub'
configure.ac:6: installing './install-sh'
configure.ac:6: installing './missing'
src/Makefile.am: installing './depcomp'
autoreconf: Leaving directory '.'
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.qMmtnQ
+ umask 022
+ cd /builddir/build/BUILD
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection'
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection'
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd ledmon-0.96
+ sh autogen.sh
configure.ac:14: warning: The macro `AC_PROG_CC_C99' is obsolete.
configure.ac:14: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
configure.ac:14: the top level
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection'
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection'
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']'
++ find . -type f -name configure -print
+ for file in $(find . -type f -name configure -print)
+ /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure
+ diff -u ./configure.backup ./configure
+ mv ./configure.backup ./configure
+ /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure
+ diff -u ./configure.backup ./configure
+ mv ./configure.backup ./configure
+ /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure
+ diff -u ./configure.backup ./configure
--- ./configure.backup	2022-11-16 06:06:40.964410341 -0500
+++ ./configure	2022-11-16 06:06:59.804436844 -0500
@@ -1841,7 +1841,7 @@
 #ifdef __cplusplus
 extern "C"
 #endif
-char $2 ();
+__attribute__ ((used)) char $2 ();
 /* The GNU C library defines this for functions which it implements
     to always fail with ENOSYS.  Some functions are actually named
     something starting with __ and the normal name is an alias.  */
+ /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure
+ diff -u ./configure.backup ./configure
+ mv ./configure.backup ./configure
+ /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure
+ diff -u ./configure.backup ./configure
+ mv ./configure.backup ./configure
+ '[' 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-Wl,-z,now -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 --enable-systemd=yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free 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 gcc... yes
checking for make... yes
checking whether make supports the include directive... yes (GNU style)
checking for riscv64-redhat-linux-gnu-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 the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking whether C compiler accepts -Wformat -Werror=format-security... yes
checking whether C compiler accepts -Werror=format-overflow=2... yes
checking whether C compiler accepts -Werror=shift-negative-value... yes
checking whether C compiler accepts -Werror=alloca... yes
checking whether C compiler accepts -Werror=missing-field-initializers... yes
checking whether C compiler accepts -Werror=format-signedness... yes
checking whether make supports nested variables... (cached) yes
checking for riscv64-redhat-linux-gnu-pkg-config... /usr/bin/riscv64-redhat-linux-gnu-pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for shm_unlink in -lrt... yes
checking for sg_ll_send_diag in -lsgutils2... yes
checking for LIBUDEV... yes
checking for LIBPCI... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for vfork.h... no
checking for sys/param.h... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking for limits.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/file.h... yes
checking for sys/ioctl.h... yes
checking for sys/param.h... (cached) yes
checking for sys/time.h... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking for struct stat.st_blksize... yes
checking for struct stat.st_rdev... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for fork... yes
checking for vfork... yes
checking for getpagesize... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking build system type... riscv64-redhat-linux-gnu
checking host system type... riscv64-redhat-linux-gnu
checking for GNU libc compatible malloc... yes
checking for working mmap... yes
checking for ftruncate... yes
checking for memset... yes
checking for munmap... yes
checking for realpath... yes
checking for regcomp... yes
checking for select... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating src/Makefile
config.status: creating systemd/Makefile
config.status: creating config_ac.h
config.status: executing depfiles commands
ledmon 0.96 configuration:
  Source code location:    .
  Preprocessor flags:      -D_DEBUG -D_GNU_SOURCE -D_DEFAULT_SOURCE -DDMALLOC_DISABLE -DBUILD_LABEL=\""$(BUILD_LABEL)"\" 
  C compiler flags:        -Wall -I../config -Wformat -Werror=format-security -Werror=format-overflow=2 -Werror=shift-negative-value -Werror=alloca -Werror=missing-field-initializers -Werror=format-signedness -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection
  Common install location: /usr
  configure parameters:    --enable-systemd=yes
+ make
make  all-recursive
make[1]: Entering directory '/builddir/build/BUILD/ledmon-0.96'
Making all in doc
make[2]: Entering directory '/builddir/build/BUILD/ledmon-0.96/doc'
pod2man -r "LEDMON.CONF Version 0.96 " -d "May 2022" \
	-s 5 -n ledmon.conf -c "Intel(R) Enclosure LED Utilities Config" ledmon.conf.pod | gzip -9f > ledmon.conf.gz
pod2man -r "LEDMON Version 0.96 " -d "May 2022" \
	-s 8 -n ledmon -c "Intel(R) Enclosure LED Monitor Service" ledmon.pod | gzip -9f > ledmon.gz
pod2man -r "LEDCTL Version 0.96 " -d "May 2022" \
	-s 8 -n ledctl -c "Intel(R) Enclosure LED Control Application" ledctl.pod | gzip -9f > ledctl.gz
make[2]: Leaving directory '/builddir/build/BUILD/ledmon-0.96/doc'
Making all in src
make[2]: Entering directory '/builddir/build/BUILD/ledmon-0.96/src'
  CC       ledmon-ledmon.o
  CC       ledmon-pidfile.o
  CC       ledmon-ahci.o
  CC       ledmon-block.o
  CC       ledmon-cntrl.o
  CC       ledmon-config_file.o
  CC       ledmon-enclosure.o
  CC       ledmon-list.o
  CC       ledmon-raid.o
  CC       ledmon-scsi.o
  CC       ledmon-slave.o
  CC       ledmon-status.o
  CC       ledmon-sysfs.o
  CC       ledmon-smp.o
  CC       ledmon-dellssd.o
  CC       ledmon-utils.o
  CC       ledmon-pci_slot.o
  CC       ledmon-vmdssd.o
  CC       ledmon-udev.o
  CC       ledmon-amd.o
  CC       ledmon-amd_sgpio.o
  CC       ledmon-amd_ipmi.o
  CC       ledmon-ipmi.o
  CC       ledmon-npem.o
  CC       ledmon-ses.o
  CCLD     ledmon
  CC       ledctl-ledctl.o
  CC       ledctl-ahci.o
  CC       ledctl-block.o
  CC       ledctl-cntrl.o
  CC       ledctl-config_file.o
  CC       ledctl-enclosure.o
  CC       ledctl-list.o
  CC       ledctl-raid.o
  CC       ledctl-scsi.o
  CC       ledctl-slave.o
  CC       ledctl-status.o
  CC       ledctl-sysfs.o
  CC       ledctl-smp.o
  CC       ledctl-dellssd.o
  CC       ledctl-utils.o
  CC       ledctl-pci_slot.o
  CC       ledctl-vmdssd.o
  CC       ledctl-udev.o
  CC       ledctl-amd.o
  CC       ledctl-amd_sgpio.o
  CC       ledctl-amd_ipmi.o
  CC       ledctl-ipmi.o
  CC       ledctl-npem.o
  CC       ledctl-ses.o
  CCLD     ledctl
make[2]: Leaving directory '/builddir/build/BUILD/ledmon-0.96/src'
Making all in systemd
make[2]: Entering directory '/builddir/build/BUILD/ledmon-0.96/systemd'
sed -e 's|@sbindir[@]|/usr/sbin|g' < ledmon.service.in > ledmon.service.tmp
mv ledmon.service.tmp ledmon.service
make[2]: Leaving directory '/builddir/build/BUILD/ledmon-0.96/systemd'
make[2]: Entering directory '/builddir/build/BUILD/ledmon-0.96'
make[2]: Leaving directory '/builddir/build/BUILD/ledmon-0.96'
make[1]: Leaving directory '/builddir/build/BUILD/ledmon-0.96'
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.igzdYF
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64
++ dirname /builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64
+ CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection'
+ export CFLAGS
+ CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection'
+ export CXXFLAGS
+ FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules'
+ export FFLAGS
+ FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules'
+ export FCFLAGS
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd ledmon-0.96
+ /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64 'INSTALL=/usr/bin/install -p' SBIN_DIR=/builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64//usr/sbin MANDIR=/builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/share/man
Making install in doc
make[1]: Entering directory '/builddir/build/BUILD/ledmon-0.96/doc'
make[2]: Entering directory '/builddir/build/BUILD/ledmon-0.96/doc'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/share/man/man5'
 /usr/bin/install -p -m 644 'ledmon.conf.gz' '/builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/share/man/man5/ledmon.conf.5'
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/share/man/man8'
 /usr/bin/install -p -m 644 'ledmon.gz' '/builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/share/man/man8/ledmon.8'
 /usr/bin/install -p -m 644 'ledctl.gz' '/builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/share/man/man8/ledctl.8'
make[2]: Leaving directory '/builddir/build/BUILD/ledmon-0.96/doc'
make[1]: Leaving directory '/builddir/build/BUILD/ledmon-0.96/doc'
Making install in src
make[1]: Entering directory '/builddir/build/BUILD/ledmon-0.96/src'
make[2]: Entering directory '/builddir/build/BUILD/ledmon-0.96/src'
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/sbin'
  /usr/bin/install -p ledmon ledctl '/builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/sbin'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/builddir/build/BUILD/ledmon-0.96/src'
make[1]: Leaving directory '/builddir/build/BUILD/ledmon-0.96/src'
Making install in systemd
make[1]: Entering directory '/builddir/build/BUILD/ledmon-0.96/systemd'
make[2]: Entering directory '/builddir/build/BUILD/ledmon-0.96/systemd'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Leaving directory '/builddir/build/BUILD/ledmon-0.96/systemd'
make[1]: Leaving directory '/builddir/build/BUILD/ledmon-0.96/systemd'
make[1]: Entering directory '/builddir/build/BUILD/ledmon-0.96'
make[2]: Entering directory '/builddir/build/BUILD/ledmon-0.96'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/share/doc/ledmon'
 /usr/bin/install -p -m 644 README.md '/builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/share/doc/ledmon'
make[2]: Leaving directory '/builddir/build/BUILD/ledmon-0.96'
make[1]: Leaving directory '/builddir/build/BUILD/ledmon-0.96'
+ /usr/bin/find-debuginfo -j4 --strict-build-id -m -i --build-id-seed 0.96-4.fc37 --unique-debug-suffix -0.96-4.fc37.riscv64 --unique-debug-src-base ledmon-0.96-4.fc37.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/ledmon-0.96
extracting debug info from /builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/sbin/ledctl
extracting debug info from /builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/sbin/ledmon
original debug info size: 2084kB, size after compression: 1948kB
/usr/bin/sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match.
587 blocks
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
+ /usr/lib/rpm/brp-remove-la-files
+ /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0
+ /usr/lib/rpm/redhat/brp-python-hardlink
Processing files: ledmon-0.96-4.fc37.riscv64
error: File not found: /builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/lib/systemd/system/ledmon.service
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.ixdono
+ umask 022
+ cd /builddir/build/BUILD
+ cd ledmon-0.96
+ DOCDIR=/builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/share/doc/ledmon
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/share/doc/ledmon
+ cp -pr README.md /builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/share/doc/ledmon
+ cp -pr COPYING /builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/share/doc/ledmon
+ RPM_EC=0
++ jobs -p
+ exit 0
RPM build warnings:
RPM build errors:
    bogus date in %changelog: Wed Jul 01 2022 Jan Macku <jamacku@redhat.com> - 0.96-1
    %changelog not in descending chronological order
    File not found: /builddir/build/BUILDROOT/ledmon-0.96-4.fc37.riscv64/usr/lib/systemd/system/ledmon.service
Child return code was: 1
EXCEPTION: [Error()]
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status
    raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode)
mockbuild.exception.Error: Command failed: 
 # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ledmon.spec