Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/nut.spec'], chrootPath='/var/lib/mock/f33-build-563862-65892/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'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/nut.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'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1599004800 Wrote: /builddir/build/SRPMS/nut-2.7.4-35.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/nut.spec'], chrootPath='/var/lib/mock/f33-build-563862-65892/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'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/nut.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'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1599004800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.kuCJDi + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf nut-2.7.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/nut-2.7.4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd nut-2.7.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (504.patch):' Patch #0 (504.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .openssl --fuzz=0 patching file clients/upsclient.c patching file m4/nut_check_libopenssl.m4 patching file server/netssl.c Hunk #1 succeeded at 387 (offset -1 lines). patching file clients/upsclient.c patching file server/netssl.c Hunk #1 succeeded at 370 (offset -1 lines). Hunk #2 succeeded at 381 (offset -1 lines). patching file clients/upssched.c patching file clients/upsclient.c patching file server/netssl.c Hunk #1 succeeded at 274 (offset -1 lines). patching file m4/nut_check_libopenssl.m4 patching file clients/upsclient.c patching file server/netssl.c Hunk #1 succeeded at 380 (offset -1 lines). + echo 'Patch #1 (nut-2.6.3-tmpfiles.patch):' Patch #1 (nut-2.6.3-tmpfiles.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .tmpfiles --fuzz=0 patching file scripts/systemd/nut-driver.service.in patching file scripts/systemd/nut-monitor.service.in + echo 'Patch #3 (nut-2.6.5-quickfix.patch):' Patch #3 (nut-2.6.5-quickfix.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .quickfix --fuzz=0 patching file configure.ac Hunk #1 succeeded at 1066 (offset 1 line). + echo 'Patch #5 (nut-2.6.5-dlfix.patch):' Patch #5 (nut-2.6.5-dlfix.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .dlfix --fuzz=0 patching file tools/nut-scanner/scan_xml_http.c Patch #7 (nut-2.6.5-foreground.patch): + echo 'Patch #7 (nut-2.6.5-foreground.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .foreground --fuzz=0 patching file clients/upsmon.c patching file scripts/systemd/nut-monitor.service.in patching file scripts/systemd/nut-server.service.in Hunk #1 succeeded at 8 (offset 3 lines). patching file server/upsd.c Hunk #5 succeeded at 1033 (offset -3 lines). + echo 'Patch #8 (nut-2.6.5-unreachable.patch):' Patch #8 (nut-2.6.5-unreachable.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .unreachable --fuzz=0 patching file scripts/python/app/NUT-Monitor Hunk #1 succeeded at 683 (offset 9 lines). patching file scripts/python/module/PyNUT.py Hunk #1 succeeded at 165 (offset 7 lines). + echo 'Patch #9 (nut-2.6.5-rmpidf.patch):' Patch #9 (nut-2.6.5-rmpidf.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .rmpidf --fuzz=0 patching file clients/upsmon.c patching file common/common.c patching file include/common.h Hunk #1 succeeded at 71 (offset 1 line). patching file server/upsd.c + echo 'Patch #10 (nut-2.7.4-cloexec.patch):' Patch #10 (nut-2.7.4-cloexec.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cloexec --fuzz=0 patching file common/parseconf.c patching file clients/upsmon.c patching file clients/upssched.c Patch #11 (nut-2.7.4-nutscanner-FTBFS.patch): + echo 'Patch #11 (nut-2.7.4-nutscanner-FTBFS.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .nutscanner-FTBFS --fuzz=0 patching file tools/nut-scanner/Makefile.am + sed -i 's|=NUT-Monitor|=nut-monitor|' scripts/python/app/nut-monitor.desktop + sed -i 's|env python|env python3|' scripts/python/app/NUT-Monitor + sed -i 's|sys.argv\[0\]|'\''/usr/share/nut/nut-monitor/nut-monitor'\''|' scripts/python/app/NUT-Monitor + sed -i 's|LIBSSL_LDFLAGS|LIBSSL_LIBS|' lib/libupsclient-config.in + sed -i 's|LIBSSL_LDFLAGS|LIBSSL_LIBS|' lib/libupsclient.pc.in + pathfix.py -pni '/usr/bin/python3 -s' scripts/python scripts/python/app/NUT-Monitor recursedown('scripts/python') recursedown('scripts/python/app') recursedown('scripts/python/app/locale') recursedown('scripts/python/app/locale/fr') recursedown('scripts/python/app/locale/fr/LC_MESSAGES') recursedown('scripts/python/app/locale/it') recursedown('scripts/python/app/locale/it/LC_MESSAGES') recursedown('scripts/python/app/pixmaps') recursedown('scripts/python/module') scripts/python/module/PyNUT.py: updating scripts/python/module/test_nutclient.py: updating scripts/python/app/NUT-Monitor: updating + find . -mtime -1 -print0 + xargs -0 touch --reference /builddir/build/SOURCES/nut-2.7.4.tar.gz + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.wMQwBi + umask 022 + cd /builddir/build/BUILD + cd nut-2.7.4 + autoreconf -i libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltversion.m4' + export LDFLAGS=-Wl,-z,now + LDFLAGS=-Wl,-z,now + 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,now + 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 2021-04-09 03:33:06.066166622 -0400 +++ ./configure 2021-04-09 03:34:13.946167468 -0400 @@ -2166,7 +2166,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 --- ./configure.backup 2021-04-09 03:34:13.946167468 -0400 +++ ./configure 2021-04-09 03:34:15.146167483 -0400 @@ -13922,7 +13922,7 @@ # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="sed -n"\ +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" @@ -24916,7 +24916,7 @@ compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' + '[' 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 + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./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 --with-all --without-powerman --with-libltdl --without-wrap --with-cgi --datadir=/usr/share/nut --with-user=nut --with-group=dialout --with-statepath=/var/run/nut --with-pidpath=/var/run/nut --with-altpidpath=/var/run/nut --sysconfdir=/etc/ups --with-cgipath=/var/www/nut-cgi-bin --with-drvpath=/usr/sbin --with-systemdsystemunitdir=/usr/lib/systemd/system --with-pkgconfig-dir=/usr/lib64/pkgconfig --disable-static --with-udev-dir=/usr/lib/udev --libdir=/usr/lib64 Network UPS Tools version 2.7.4 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 host system name... fedora 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 autoconf macro to enable system extensions... 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 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 dependency style of gcc... none 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 minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for riscv64-redhat-linux-gnu-gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) none checking how to run the C preprocessor... gcc -E checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking for egrep... (cached) /usr/bin/grep -E checking for ar... /usr/bin/ar checking for riscv64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking whether byte ordering is bigendian... no checking for inline... inline checking for flexible array members... yes checking for variable-length arrays... yes checking for flock... yes checking for lockf... yes checking for fcvt... yes checking for fcvtl... no checking for cfsetispeed... yes checking for tcsendbreak... yes checking for seteuid... yes checking for setsid... yes checking for getpassphrase... no checking for on_exit... yes checking for strptime... yes checking for setlogmask... yes checking whether LOG_UPTO is declared... yes checking for unsigned long long int... yes checking for vsnprintf... yes checking for snprintf... yes checking for setenv... yes checking for strerror... yes checking for atexit... 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 CPPUNIT... yes checking whether optind is declared... yes checking for getopt.h... yes checking for getopt_long... yes checking whether uu_lock is declared... no checking whether __func__ is declared... yes checking for library containing gethostbyname... none required checking for library containing connect... none required checking whether time.h and sys/time.h may both be included... yes checking for sys/modem.h... no checking for stdarg.h... yes checking for varargs.h... no checking for sys/termios.h... yes checking for sys/time.h... yes checking for library containing pthread_create... -lpthread checking for socklen_t... yes checking for --with-all... "yes" checking for Net-SNMP version via net-snmp-config... 5.9 found checking for Net-SNMP cflags... -I/usr/include checking for Net-SNMP libs... -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lm -L/usr/lib64 -lnetsnmp -lm -lssl -lssl -lcrypto checking for net-snmp/net-snmp-config.h... yes checking for init_snmp... no checking for libusb version via pkg-config... 0.1.12 found checking for libusb cflags... -I/usr/include/libusb-1.0 checking for libusb ldflags... -lusb checking for usb.h... yes checking for usb_init... yes checking for usb_detach_kernel_driver_np... yes checking for libneon version via pkg-config (0.25.0 minimum required)... 0.31.1 found checking for libneon cflags... -I/usr/include/neon checking for libneon ldflags... -lneon checking for ne_xmlreq.h... yes checking for ne_xml_dispatch_request... yes checking for ne_set_connect_timeout... yes checking for ne_sock_connect_timeout... yes checking for libpowerman cflags... checking for libpowerman libs... checking for libpowerman.h... no checking for pm_connect... no checking for avahi-core version via pkg-config (0.6.30 minimum required)... 0.8 found checking for avahi-client version via pkg-config (0.6.30 minimum required)... 0.8 found checking for avahi cflags... -D_REENTRANT checking for avahi ldflags... -lavahi-core -lavahi-common -lavahi-client checking for avahi-common/malloc.h... yes checking for avahi_free... yes checking for avahi-client/client.h... yes checking for avahi_client_new... yes checking whether to build serial drivers... yes checking whether to build USB drivers... yes configure: error: "Net-SNMP libraries not found, required for SNMP drivers" error: Bad exit status from /var/tmp/rpm-tmp.wMQwBi (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.wMQwBi (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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/nut.spec