+ exec
+ rm -rf /rpmbuild
+ mkdir -p /rpmbuild
+ su -c 'rpmbuild -ba /builddir/build/SPECS/tipcutils.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.3TNLKL
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf tipcutils-2.0.6
+ /usr/bin/gzip -dc /builddir/build/SOURCES/v2.0.6.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd tipcutils-2.0.6
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ head -n31 tipc-config/tipc-config.c
+ tail -n28
+ sed -e 's/ \* //g' -e 's/\*//g'
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.agJ8rq
+ umask 022
+ cd /builddir/build/BUILD
+ cd tipcutils-2.0.6
+ ./bootstrap
+ autoreconf -i
configure.ac:8: installing './compile'
configure.ac:4: installing './install-sh'
configure.ac:4: installing './missing'
demos/benchmark/Makefile.am: installing './depcomp'
+ 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 whether make supports the include directive... yes (GNU style)
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 linux/tipc.h usability... yes
checking linux/tipc.h presence... yes
checking for linux/tipc.h... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tipc-config/Makefile
config.status: creating tipc-pipe/Makefile
config.status: creating ptts/Makefile
config.status: creating demos/Makefile
config.status: creating demos/benchmark/Makefile
config.status: creating demos/connection_demo/Makefile
config.status: creating demos/hello_world/Makefile
config.status: creating demos/inventory_sim/Makefile
config.status: creating demos/multicast_demo/Makefile
config.status: creating demos/stream_demo/Makefile
config.status: creating demos/topology_subscr_demo/Makefile
config.status: creating man/Makefile
config.status: creating scripts/Makefile
config.status: creating config.h
config.status: executing depfiles commands
+ make
make  all-recursive
make[1]: Entering directory '/builddir/build/BUILD/tipcutils-2.0.6'
Making all in tipc-config
make[2]: Entering directory '/builddir/build/BUILD/tipcutils-2.0.6/tipc-config'
gcc -DHAVE_CONFIG_H -I. -I..     -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 -fno-strict-aliasing -c -o tipc-config.o tipc-config.c
tipc-config.c: In function 'get_local_address':
tipc-config.c:1160:9: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
    addr = ifa->ifa_addr;
         ^
tipc-config.c:1175:25: warning: embedded '\0' in format [-Wformat-contains-nul]
   sprintf(arg, "%s:%s:%s\0", MEDIA_NAME_UDP, ifaddr, savep);
                         ^~
tipc-config.c:1177:22: warning: embedded '\0' in format [-Wformat-contains-nul]
   sprintf(arg, "%s:%s\0", MEDIA_NAME_UDP, ifaddr);
                      ^~
tipc-config.c:1133:6: warning: unused variable 'i' [-Wunused-variable]
  int i;
      ^
tipc-config.c: In function 'resolve_bearer_endpoint':
tipc-config.c:1211:19: error: format not a string literal and no format arguments [-Werror=format-security]
  snprintf(arg, i, tmp);
                   ^~~
tipc-config.c: In function 'enable_bearer':
tipc-config.c:1256:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if (err = get_local_address(a) != 0)
       ^~~
tipc-config.c:1258:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   if (err = resolve_bearer_endpoint(a) != 0) {
       ^~~
tipc-config.c: In function 'disable_bearer':
tipc-config.c:1285:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  if (err = get_local_address(bearer_name) != 0)
      ^~~
cc1: some warnings being treated as errors
make[2]: *** [Makefile:348: tipc-config.o] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/tipcutils-2.0.6/tipc-config'
make[1]: *** [Makefile:350: all-recursive] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/tipcutils-2.0.6'
make: *** [Makefile:291: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.agJ8rq (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.agJ8rq (%build)
++ cleanup
++ set +e
++ sync
++ sleep 5
++ sync
++ poweroff
Terminated
+++ cleanup
+++ set +e
+++ sync
Terminated
++++ cleanup
++++ set +e
++++ sync
++++ sleep 5
++++ sync
++++ poweroff