+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/pg_top.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.AEYs46 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pg_top-3.7.0 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/pg_top-3.7.0.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd pg_top-3.7.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.U4IzfD + umask 022 + cd /builddir/build/BUILD + cd pg_top-3.7.0 + 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 Configuring pg_top 3.7.0 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 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 for make... make 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 style of include used by make... GNU checking dependency style of gcc... none checking for gawk... (cached) gawk checking for a BSD-compatible install... /usr/bin/install -c checking OS revision number... 4160rc501493g7f82cffaad50 checking for pg_config... /usr/bin/pg_config checking for PostgreSQL libraries... checking for library containing PQexec... -lpq checking for library containing kstat_open... no checking for library containing kvm_open... no checking for library containing elf32_getphdr... -lelf checking for library containing vm_statistics... no checking for library containing tgetent... -ltermcap checking for library containing exp... -lm checking for library containing dlerror... -ldl checking for library containing inet_aton... none required 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 stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking sys/resource.h usability... yes checking sys/resource.h presence... yes checking for sys/resource.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking whether time.h and sys/time.h may both be included... yes checking for a good signal.h... no checking whether sys_errlist is declared... yes checking return type of signal handlers... void checking for time_t... yes checking for getopt... yes checking for memcpy... yes checking for setpriority... yes checking for strchr... yes checking for strerror... yes checking for snprintf... yes checking for sighold... yes checking for sigrelse... yes checking for sigaction... yes checking for sigprocmask... yes checking for correct ls options... ls -l checking for a platform module... linux checking for installation settings... mode=755 configure: creating ./config.status config.status: creating Makefile config.status: creating pg_top.1 config.status: creating config.h config.status: executing depfiles commands + make -j4 '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 ' gawk -f ./sigconv.awk /dev/null > sigdesc.h make all-am make[1]: Entering directory '/builddir/build/BUILD/pg_top-3.7.0' gcc -DHAVE_CONFIG_H -I. -I/usr/include -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 -c color.c gcc -DHAVE_CONFIG_H -I. -I/usr/include -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 -c commands.c gcc -DHAVE_CONFIG_H -I. -I/usr/include -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 -c display.c gcc -DHAVE_CONFIG_H -I. -I/usr/include -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 -c getopt.c gcc -DHAVE_CONFIG_H -I. -I/usr/include -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 -c screen.c display.c: In function 'display_pagerend': display.c:1615:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] (void) read(0, &ch, 1); ^~~~~~~~~~~~~~~~~~~~~~ display.c: In function 'display_pager': display.c:1634:5: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] (void) read(0, &readch, 1); ^~~~~~~~~~~~~~~~~~~~~~~~~~ screen.c: In function 'init_termcap': screen.c:275:6: warning: array subscript is above array bounds [-Warray-bounds] home[15] = '\0'; ~~~~^~~~ gcc -DHAVE_CONFIG_H -I. -I/usr/include -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 -c sprompt.c gcc -DHAVE_CONFIG_H -I. -I/usr/include -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 -c pg.c gcc -DHAVE_CONFIG_H -I. -I/usr/include -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 -c pg_top.c gcc -DHAVE_CONFIG_H -I. -I/usr/include -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 -c username.c display.c: In function 'i_io': display.c:1262:65: warning: ' KB/s ' directive output may be truncated writing 7 bytes into a region of size between 0 and 32 [-Wformat-truncation=] snprintf(buf, 80, "%5ld reads/s, %5ld KB/s, %5ld writes/s, %5ld KB/s ", ^~~~~~~ In file included from /usr/include/stdio.h:861:0, from os.h:8, from display.c:30: /usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output between 56 and 116 bytes into a destination of size 80 return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ __bos (__s), __fmt, __va_arg_pack ()); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from pg_top.c:33:0: pg_top.c: In function 'main': os.h:24:50: warning: the address of 'stdoutbuf' will always evaluate as 'true' [-Waddress] #define setbuffer(f, b, s) setvbuf((f), (b), (b) ? _IOFBF : _IONBF, (s)) ^ pg_top.c:452:2: note: in expansion of macro 'setbuffer' setbuffer(stdout, stdoutbuf, Buffersize); ^~~~~~~~~ pg_top.c:597:7: warning: ignoring return value of 'nice', declared with attribute warn_unused_result [-Wunused-result] (void) nice(-20); ^~~~~~~~~~~~~~~~ pg_top.c:1214:12: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result] (void) read(0, &ch, 1); ^~~~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I/usr/include -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 -c utils.c gcc -DHAVE_CONFIG_H -I. -I/usr/include -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 -c version.c gcc -DHAVE_CONFIG_H -I. -I/usr/include -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 -c -o m_remote.o `test -f 'machine/m_remote.c' || echo './'`machine/m_remote.c gcc -DHAVE_CONFIG_H -I. -I/usr/include -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 -c -o m_common.o `test -f 'machine/m_common.c' || echo './'`machine/m_common.c utils.c: In function 'string_list': utils.c:297:9: warning: 'result' may be used uninitialized in this function [-Wmaybe-uninitialized] return result; ^~~~~~ pg_top.c:516:9: warning: 'ac' may be used uninitialized in this function [-Wmaybe-uninitialized] while ((i = getopt_long(ac, av, ^ pg_top.c:659:25: warning: 'av' may be used uninitialized in this function [-Wmaybe-uninitialized] if (optind < ac && *av[optind]) ^ gcc -DHAVE_CONFIG_H -I. -I/usr/include -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 -c -o m_linux.o `test -f 'machine/m_linux.c' || echo './'`machine/m_linux.c machine/m_linux.c: In function 'machine_init': machine/m_linux.c:393:2: warning: ignoring return value of 'chdir', declared with attribute warn_unused_result [-Wunused-result] chdir(PROCFS); ^~~~~~~~~~~~~ machine/m_linux.c:438:6: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized] if (cnt > 5) ^ machine/m_linux.c: In function 'get_system_info': machine/m_linux.c:542:15: warning: array subscript is below array bounds [-Warray-bounds] p = buffer - 1; ~~~~~~~^~~ 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 -L/usr/lib64 -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -L/usr/lib64 -o pg_top color.o commands.o display.o getopt.o screen.o sprompt.o pg.o pg_top.o username.o utils.o version.o m_remote.o m_common.o m_linux.o -ldl -lm -ltermcap -lelf -lpq make[1]: Leaving directory '/builddir/build/BUILD/pg_top-3.7.0' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.WT0DLN + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64 + cd pg_top-3.7.0 + install -Dp -m 755 pg_top /builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64/usr/bin/pg_top + install -Dp -m 644 pg_top.1 /builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64/usr/share/man/man1/pg_top.1 + /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: pg_top-3.7.0-8.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.N0Dy4A + umask 022 + cd /builddir/build/BUILD + cd pg_top-3.7.0 + DOCDIR=/builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64/usr/share/doc/pg_top + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64/usr/share/doc/pg_top + cp -pr FAQ /builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64/usr/share/doc/pg_top + cp -pr HISTORY /builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64/usr/share/doc/pg_top + cp -pr LICENSE /builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64/usr/share/doc/pg_top + cp -pr README /builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64/usr/share/doc/pg_top + cp -pr TODO /builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64/usr/share/doc/pg_top + cp -pr Y2K /builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64/usr/share/doc/pg_top + exit 0 Provides: pg_top = 3.7.0-8.fc28 pg_top(riscv-64) = 3.7.0-8.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) libdl.so.2()(64bit) libelf.so.1()(64bit) libm.so.6()(64bit) libpq.so.5()(64bit) libtinfo.so.6()(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64 Wrote: /builddir/build/SRPMS/pg_top-3.7.0-8.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/pg_top-3.7.0-8.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.xBpihF + umask 022 + cd /builddir/build/BUILD + cd pg_top-3.7.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/pg_top-3.7.0-8.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync ++ sleep 5 Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff