+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/kcc.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.H3HX25 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf kcc + /usr/bin/gzip -dc /builddir/build/SOURCES/kcc.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd kcc + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (kcc-2.3-dontstrip.patch):' Patch #0 (kcc-2.3-dontstrip.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .dontstrip --fuzz=0 patching file Makefile + echo 'Patch #1 (kcc-2.3-varargs.patch):' Patch #1 (kcc-2.3-varargs.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .varargs --fuzz=0 patching file kcc.c + echo 'Patch #2 (kcc-2.3-fix-segv.patch):' Patch #2 (kcc-2.3-fix-segv.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .segv --fuzz=0 patching file kcc.c + echo 'Patch #3 (kcc-2.3-timestamp.patch):' Patch #3 (kcc-2.3-timestamp.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .timestamp --fuzz=0 patching file Makefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.HHqnu5 + umask 022 + cd /builddir/build/BUILD + cd kcc + make '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 ' cc -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 kcc.o kcc.c kcc.c:148:1: warning: return type defaults to 'int' [-Wimplicit-int] main(c, v) ^~~~ kcc.c: In function 'main': kcc.c:181:18: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] if ((size = atoi(*v)) <= 0) ^~~~ kcc.c:306:10: warning: implicit declaration of function 'isatty' [-Wimplicit-function-declaration] if (isatty(fileno(stdin)) && feof(stdin)) ^~~~~~ kcc.c: In function 'error': kcc.c:378:5: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(1); ^~~~ kcc.c:378:5: warning: incompatible implicit declaration of built-in function 'exit' kcc.c:378:5: note: include '' or provide a declaration of 'exit' kcc.c: In function 'filter': kcc.c:419:18: warning: implicit declaration of function 'getstr'; did you mean 'strstr'? [-Wimplicit-function-declaration] while (len = getstr(str, sizeof str, fp)) { ^~~~~~ strstr kcc.c:419:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (len = getstr(str, sizeof str, fp)) { ^~~ kcc.c:420:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (!(code & NONASCII) && code & BIT8 || ^ kcc.c: In function 'check': kcc.c:476:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] while (len = getstr(str, sizeof str, fp)) { ^~~ kcc.c: In function 'buffalloc': kcc.c:640:36: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] if ((bufp = holdbuf = (char *) malloc(len)) == NULL) ^~~~~~ kcc.c:640:36: warning: incompatible implicit declaration of built-in function 'malloc' kcc.c:640:36: note: include '' or provide a declaration of 'malloc' kcc.c: In function 'guess': kcc.c:101:31: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] #define bitflag(c) (1L << (c) - '@') ~~~~^~~ kcc.c:724:11: note: in expansion of macro 'bitflag' insi |= bitflag(((u_char *) s)[2]); ^~~~~~~ kcc.c:101:24: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] #define bitflag(c) (1L << (c) - '@') ^ kcc.c:728:11: note: in expansion of macro 'bitflag' innj |= bitflag('B'); ^~~~~~~ kcc.c:101:31: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] #define bitflag(c) (1L << (c) - '@') ~~~~^~~ kcc.c:733:11: note: in expansion of macro 'bitflag' inso |= bitflag(((u_char *) s)[2]); ^~~~~~~ kcc.c:101:24: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] #define bitflag(c) (1L << (c) - '@') ^ kcc.c:737:11: note: in expansion of macro 'bitflag' inso |= bitflag('I'); ^~~~~~~ kcc.c:101:24: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] #define bitflag(c) (1L << (c) - '@') ^ kcc.c:741:11: note: in expansion of macro 'bitflag' ingj |= bitflag('D'); ^~~~~~~ kcc.c:775:28: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (0xa0 < *(u_char *) s && *(u_char *) s < 0xff || ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ kcc.c:780:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] if (extend) ^ kcc.c: In function 'out': kcc.c:101:31: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] #define bitflag(c) (1L << (c) - '@') ~~~~^~~ kcc.c:902:11: note: in expansion of macro 'bitflag' insi |= bitflag(((u_char *) s)[2]); ^~~~~~~ kcc.c:101:24: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] #define bitflag(c) (1L << (c) - '@') ^ kcc.c:906:11: note: in expansion of macro 'bitflag' innj |= bitflag('B'); ^~~~~~~ kcc.c:101:31: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] #define bitflag(c) (1L << (c) - '@') ~~~~^~~ kcc.c:911:11: note: in expansion of macro 'bitflag' inso |= bitflag(((u_char *) s)[2]); ^~~~~~~ kcc.c:101:24: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] #define bitflag(c) (1L << (c) - '@') ^ kcc.c:915:11: note: in expansion of macro 'bitflag' inso |= bitflag('I'); ^~~~~~~ kcc.c:101:24: warning: suggest parentheses around '-' inside '<<' [-Wparentheses] #define bitflag(c) (1L << (c) - '@') ^ kcc.c:919:11: note: in expansion of macro 'bitflag' ingj |= bitflag('D'); ^~~~~~~ kcc.c:941:3: warning: enumeration value 'M_ASCII' not handled in switch [-Wswitch] switch (inmode) { ^~~~~~ kcc.c:1003:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses] ((u_char *) s)[0] != SS2 && ^ kcc.c:1014:50: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (!(code & SJIS) || 0xa0 < ((u_char *) s)[0] && ~~~~~~~~~~~~~~~~~~~~~~~~~^~ ((u_char *) s)[0] < 0xe0) ~~~~~~~~~~~~~~~~~~~~~~~~ kcc.c:957:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] } else if (((u_char *) s)[0] & 0x80) ^ kcc.c: In function 'jiskana': kcc.c:1197:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] putchar(!nogaiji || 0x20 < c && c < 0x60 ? c : HANPAD); ~~~~~~~~~^~~~~~~~~~~ kcc.c: In function 'jiskanak': kcc.c:1211:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] putchar(!nogaiji || 0x20 < c && c < 0x60 ? c : HANPAD); ~~~~~~~~~^~~~~~~~~~~ kcc.c: In function 'jiskana8': kcc.c:1225:35: warning: suggest parentheses around '&&' within '||' [-Wparentheses] putchar((!nogaiji || 0x20 < c && c < 0x60 ? c : HANPAD) | 0x80); ~~~~~~~~~^~~~~~~~~~~ kcc.c: In function 'eucgaiji': kcc.c:1248:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] putchar(ZENPAD & 0xff | 0x80); ^ kcc.c: In function 'euckana': kcc.c:1264:35: warning: suggest parentheses around '&&' within '||' [-Wparentheses] putchar((!nogaiji || 0x20 < c && c < 0x60 ? c : HANPAD) | 0x80); ~~~~~~~~~^~~~~~~~~~~ kcc.c: In function 'sjiskanji': kcc.c:1274:17: warning: suggest parentheses around '-' inside '>>' [-Wparentheses] putchar((c1 - 1 >> 1) + (c1 <= 0x5e ? 0x71 : 0xb1)); ~~~^~~ kcc.c: In function 'sjisgaiji': kcc.c:1292:26: warning: suggest parentheses around '-' inside '>>' [-Wparentheses] putchar(c1 < 0x3b ? (c1 - 1 >> 1) + 0xe0 : 0xfc); ~~~^~~ kcc.c: In function 'decgaiji': kcc.c:1353:24: warning: suggest parentheses around arithmetic in operand of '|' [-Wparentheses] putchar(ZENPAD & 0xff | 0x80); ^ At top level: kcc.c:26:13: warning: 'copyright' defined but not used [-Wunused-variable] static char copyright[] = "@(#)Copyright (c) 1992 Yasuhiro Tonooka"; ^~~~~~~~~ kcc.c:25:13: warning: 'sccsid' defined but not used [-Wunused-variable] static char sccsid[] = "@(#)kcc.c 2.3 (Y.Tonooka) 7/1/94"; ^~~~~~ kcc.c: In function 'main': kcc.c:339:19: warning: 'dev' may be used uninitialized in this function [-Wmaybe-uninitialized] sbuf.st_dev == dev && sbuf.st_ino == ino) { ~~~~~~~~~~~~^~~~~~ cc -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 -o kcc kcc.o + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.2EshQm + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64 + cd kcc + rm -rf /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/bin + mkdir -p /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/share/man/ja/man1 + mkdir -p /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/share/man/man1 + make BINPATH=/builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/bin install make kcc make[1]: Entering directory '/builddir/build/BUILD/kcc' make[1]: 'kcc' is up to date. make[1]: Leaving directory '/builddir/build/BUILD/kcc' install -p kcc /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/bin `make install' done. Run `make install.man' to install a manual. + make MANPATH=/builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/share/man JMANDIR=ja install.man install -m 644 -p kcc.jman /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/share/man/ja/man1/kcc.1 ++ find /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/share/man/ja -type f + for i in `find $RPM_BUILD_ROOT/usr/share/man/ja -type f` + iconv -f euc-jp -t utf-8 /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/share/man/ja/man1/kcc.1 + mv -f /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/share/man/ja/man1/kcc.1.new /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/share/man/ja/man1/kcc.1 + chmod 444 /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/share/man/ja/man1/kcc.1 + install -m0644 -p /builddir/build/SOURCES/kcc.1 /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/share/man/man1/ + gzip -9 /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/share/man/man1/kcc.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: kcc-2.3-43.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.zRG0Jl + umask 022 + cd /builddir/build/BUILD + cd kcc + DOCDIR=/builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/share/doc/kcc + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/share/doc/kcc + cp -pr COPYING /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/share/doc/kcc + cp -pr README /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64/usr/share/doc/kcc + exit 0 Provides: kcc = 2.3-43.fc28 kcc(riscv-64) = 2.3-43.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) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64 Wrote: /builddir/build/SRPMS/kcc-2.3-43.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/kcc-2.3-43.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.hklph9 + umask 022 + cd /builddir/build/BUILD + cd kcc + rm -rf /builddir/build/BUILDROOT/kcc-2.3-43.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync Terminated +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff