+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/rats.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.PuykGu + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf rats-2.4 + /usr/bin/gzip -dc /builddir/build/SOURCES/rats-2.4.tgz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd rats-2.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (0001-Fix-conflicting-declaration.patch):' Patch #0 (0001-Fix-conflicting-declaration.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file tokens.h + echo 'Patch #1 (0002-Fix-engine-output-and-php-extension.patch):' Patch #1 (0002-Fix-engine-output-and-php-extension.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file engine.c + echo 'Patch #2 (0003-Fix-report-layout.patch):' Patch #2 (0003-Fix-report-layout.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file report.c + echo 'Patch #3 (rats-2.4-gtk-vuln.patch):' Patch #3 (rats-2.4-gtk-vuln.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file rats-c.xml + echo 'Patch #4 (rats-2.4-hash.patch):' Patch #4 (rats-2.4-hash.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file hash.c patching file hash.h + sed -e 's/$(BINDIR)/$(DESTDIR)$(BINDIR)/g' -e 's/ $(LIBDIR)/ $(DESTDIR)$(LIBDIR)/g' -e 's/$(MANDIR)/$(DESTDIR)$(MANDIR)/g' -e 's/ $(SHAREDIR)/ $(DESTDIR)$(SHAREDIR)/g' -i Makefile.in + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.PjOccE + umask 022 + cd /builddir/build/BUILD + cd rats-2.4 + 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 --datadir=/usr/share/rats 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 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 ANSI C... none needed checking for flex... flex checking for yywrap in -lfl... no checking for yywrap in -ll... no checking lex output file root... lex.yy checking whether yytext is a pointer... no checking for a BSD-compatible install... /usr/bin/install -c checking for XML_ParserCreate in -lexpat... yes checking how to run the C preprocessor... gcc -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 expat.h usability... yes checking expat.h presence... yes checking for expat.h... yes checking xmlparse.h usability... no checking xmlparse.h presence... no checking for xmlparse.h... no configure: creating ./config.status config.status: creating Makefile + /usr/bin/make -O -j4 lex flex -F -8 -Pyyc c-lex.l flex -F -8 -Pyyp python-lex.l flex -F -8 -Pyyperl perl-lex.l flex -F -8 -Pyyphp php-lex.l flex -F -8 -Pyyruby ruby-lex.l + /usr/bin/make -O -j4 gcc -Wall -g -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/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o lex.yyperl.o -c lex.yyperl.c In file included from perl-lex.l:22:0: tokens.h:117:15: error: conflicting types for 'yyperlleng' extern size_t yyperlleng; ^~~~~~~~~~ lex.yyperl.c:291:5: note: previous declaration of 'yyperlleng' was here int yyperlleng; ^~~~~~~~~~ lex.yyperl.c:3898:17: warning: 'yyunput' defined but not used [-Wunused-function] static void yyunput (int c, char * yy_bp ) ^~~~~~~ make: *** [Makefile:43: lex.yyperl.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -Wall -g -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/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o lex.yyp.o -c lex.yyp.c In file included from python-lex.l:22:0: tokens.h:107:15: error: conflicting types for 'yypleng' extern size_t yypleng; ^~~~~~~ lex.yyp.c:291:5: note: previous declaration of 'yypleng' was here int yypleng; ^~~~~~~ lex.yyp.c:5116:17: warning: 'yyunput' defined but not used [-Wunused-function] static void yyunput (int c, char * yy_bp ) ^~~~~~~ make: *** [Makefile:43: lex.yyp.o] Error 1 gcc -Wall -g -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/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o lex.yyc.o -c lex.yyc.c In file included from c-lex.l:22:0: tokens.h:96:15: error: conflicting types for 'yycleng' extern size_t yycleng; ^~~~~~~ lex.yyc.c:291:5: note: previous declaration of 'yycleng' was here int yycleng; ^~~~~~~ make: *** [Makefile:43: lex.yyc.o] Error 1 gcc -Wall -g -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/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_LIBEXPAT=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_EXPAT_H=1 -DDATADIR=\"/usr/share/rats\" -o engine.o -c engine.c engine.c: In function 'analyze_identifier': engine.c:794:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!analyzed) ^~ engine.c:797:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (process) ^~ engine.c: In function 'analyze_comment': engine.c:1177:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (yyclength < 5) ^~ engine.c:1179:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (*ratslexer.yycomment == NULL) ^~ error: Bad exit status from /var/tmp/rpm-tmp.PjOccE (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.PjOccE (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff