+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/tack.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.T9vxri + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf tack-1.07-20150606 + /usr/bin/gzip -dc /builddir/build/SOURCES/tack-1.07-20150606.tgz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd tack-1.07-20150606 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZCDabl + umask 022 + cd /builddir/build/BUILD + cd tack-1.07-20150606 + 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 --with-ncurses checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu Configuring for linux-gnu checking whether make sets ${MAKE}... yes checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking how to run the C preprocessor... gcc -E checking for a BSD compatible install... /usr/bin/install -c checking for tdlint... no checking for lint... no checking for alint... no checking for splint... no checking for lclint... no checking for makeflags variable... checking if filesystem supports mixed-case filenames... yes checking for exctags... no checking for ctags... no checking for exetags... no checking for etags... no checking for ctags... no checking for etags... no checking for long file names... yes checking if you want to have a library-prefix... auto checking $CC variable... ok checking for gcc option to accept ANSI C... -DCC_HAS_PROTOS checking if you want to see long compiling messages... yes checking version of gcc... 7.3.1 checking if you want to turn on gcc warnings... no configure: checking for gcc __attribute__ directives... ... scanf ... printf ... unused ... noreturn checking if we must define _GNU_SOURCE... yes checking if _XOPEN_SOURCE really is set... yes checking if data-only library module links... no checking if you want to use pkg-config... yes checking for riscv64-redhat-linux-gnu-pkg-config... /usr/bin/riscv64-redhat-linux-gnu-pkg-config checking for specific curses-directory... no checking for specified curses library type... ncurses checking pkg-config for ncurses... yes checking if the ncurses package files work... yes checking for _nc_tic_expand... no checking pkg-config for tic... yes checking for setupterm... yes checking if tack would link without ncurses library... yes checking for an rpath option... -Wl,-rpath, checking if rpath-hack should be disabled... no checking for updated LDFLAGS... maybe checking for ldd... ldd checking if you want to use dmalloc for testing... no checking if you want to use dbmalloc for testing... no checking if you want to use valgrind for testing... no checking if you want to perform memory-leak testing... no checking for nc_alloc.h... no checking for nc_tparm.h... no checking for nomacros.h... no checking for term_entry.h... yes checking for sys/select.h... yes checking for sys/time.h... yes checking for _nc_free_tic... no checking for gettimeofday... yes checking for select... yes checking for signal global datatype... volatile sig_atomic_t configure: creating ./config.status config.status: creating Makefile config.status: creating ncurses_cfg.h + make -j4 gcc -c -DHAVE_CONFIG_H -I. -I. -D_GNU_SOURCE -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -D_DEFAULT_SOURCE -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 ansi.c gcc -c -DHAVE_CONFIG_H -I. -I. -D_GNU_SOURCE -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -D_DEFAULT_SOURCE -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 charset.c gcc -c -DHAVE_CONFIG_H -I. -I. -D_GNU_SOURCE -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -D_DEFAULT_SOURCE -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 color.c gcc -c -DHAVE_CONFIG_H -I. -I. -D_GNU_SOURCE -D_GNU_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -D_DEFAULT_SOURCE -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 control.c In file included from ./tack.h:75:0, from control.c:22: control.c: In function 'alloc_arrays': ./tack.h:103:32: error: dereferencing pointer to incomplete type 'TERMINAL {aka struct term}' #define CUR_TP (&(cur_term->type)) ^ ./tack.h:104:33: note: in expansion of macro 'CUR_TP' #define MAX_STRINGS NUM_STRINGS(CUR_TP) ^~~~~~ control.c:81:50: note: in expansion of macro 'MAX_STRINGS' pads = (struct test_results **) calloc((size_t) MAX_STRINGS, sizeof(struct test_results *)); ^~~~~~~~~~~ make: *** [Makefile:244: ../tack-1.07-20150606/control.o] Error 1 make: *** Waiting for unfinished jobs.... error: Bad exit status from /var/tmp/rpm-tmp.ZCDabl (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.ZCDabl (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff