D: [iurt_root_command] chroot
warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend.
Installing /home/iurt/rpmbuild/SRPMS/phalanx-22-15.mga9.src.rpm
Building target platforms: aarch64
Building for target aarch64
Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.q9S892
+ umask 022
+ cd /home/iurt/rpmbuild/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/iurt/rpmbuild/BUILD
+ rm -rf Phalanx-XXII
+ /usr/bin/bzip2 -dc /home/iurt/rpmbuild/SOURCES/phalanx-22.tar.bz2
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd Phalanx-XXII
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (phalanx-22.build.patch):'
Patch #0 (phalanx-22.build.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .newgcc --fuzz=0
patching file io.c
patching file phalanx.c
+ echo 'Patch #1 (phalanx-22-mga-fix-format-security-error.patch):'
Patch #1 (phalanx-22-mga-fix-format-security-error.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0
patching file book.c
patching file io.c
patching file phalanx.c
Hunk #1 succeeded at 414 (offset -2 lines).
patching file search.c
+ mv sbook.phalanx sbook.phalanx.bak
+ bzip2 -dc /home/iurt/rpmbuild/SOURCES/sbook.phalanx.bz2
+ bzip2 -dc /home/iurt/rpmbuild/SOURCES/learn.phalanx.bz2
+ bzip2 -dc /home/iurt/rpmbuild/SOURCES/phalanx.sh.bz2
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.HZsuO9
+ umask 022
+ cd /home/iurt/rpmbuild/BUILD
+ cd Phalanx-XXII
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ /usr/bin/make -O -j8 V=1 VERBOSE=1 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math' 'DEFINES=-DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\"'
mkdir .o
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\" -c data.c -o .o/data.o
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\" -c hash.c -o .o/hash.o
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\" -c moving.c -o .o/moving.o
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\" -c phalanx.c -o .o/phalanx.o
phalanx.c: In function 'main':
phalanx.c:419:12: warning: format '%i' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
  419 | printf(", %i kB hashtable, %i/%i kB P/S opening book",((1+SizeHT)*sizeof(thashentry)-1)/1024,Pbook.filesize/1024,Sbook.filesize/1024);
      |           ~^                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |            |                                                                           |
      |            int                                                                         long unsigned int
      |           %li
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\" -c bcreate.c -o .o/bcreate.o
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\" -c search.c -o .o/search.o
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\" -c levels.c -o .o/levels.o
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\" -c killers.c -o .o/killers.o
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\" -c genmoves.c -o .o/genmoves.o
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\" -c learn.c -o .o/learn.o
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\" -c evaluate.c -o .o/evaluate.o
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\" -c book.c -o .o/book.o
book.c: In function 'myfread':
book.c:29:35: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
   29 |         { for( j=0; j!=ISI; j++ ) fread( (char*)ptr+i+j, 1, 1, stream ); }
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
book.c:30:35: warning: ignoring return value of 'fread' declared with attribute 'warn_unused_result' [-Wunused-result]
   30 |         for( j=0; i+j<size; j++ ) fread( (char*)ptr+i+j, 1, 1, stream );
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
book.c: In function 'linSB':
book.c:99:22: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
   99 |         if(!feof(f)) fgets(s,80,f);     /* skip to the first \n */
      |                      ^~~~~~~~~~~~~
book.c:103:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  103 |                 fgets(s,100,f);
      |                 ^~~~~~~~~~~~~~
book.c: In function 'binSB':
book.c:123:22: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  123 |         if(!feof(f)) fgets(s,80,f);     /* skip to the first \n */
      |                      ^~~~~~~~~~~~~
book.c:125:22: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  125 |         if(!feof(f)) fgets(s,100,f);
      |                      ^~~~~~~~~~~~~~
book.c: In function 'bk':
book.c:471:19: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  471 |                   fgets(t,126,Eco);
      |                   ^~~~~~~~~~~~~~~~
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\" -c endgame.c -o .o/endgame.o
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\" -c io.c -o .o/io.o
io.c: In function 'interrupt':
io.c:933:24: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
  933 |         if( c=='.' ) { fgets(Inp,255,stdin); goto go_on; }
      |                        ^~~~~~~~~~~~~~~~~~~~
io.c: In function 'command':
io.c:1156:38: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
 1156 |                 { printf("depth= "); scanf( "%i", &newdepth ); }
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\" -c static.c -o .o/static.o
gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -ffast-math -DGNUFUN -DPBOOK_DIR=\"/usr/share/games/phalanx\" -DSBOOK_DIR=\"/usr/share/games/phalanx\" -DECO_DIR=\"/usr/share/games/phalanx\"  .o/phalanx.o .o/bcreate.o .o/search.o .o/io.o .o/data.o .o/evaluate.o .o/genmoves.o .o/moving.o .o/hash.o .o/static.o .o/levels.o .o/book.o .o/killers.o .o/endgame.o .o/learn.o -o phalanx
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%install): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.HbkqBD
+ umask 022
+ cd /home/iurt/rpmbuild/BUILD
+ '[' 1 -eq 1 ']'
+ '[' /home/iurt/rpmbuild/BUILDROOT/phalanx-22-15.mga9.aarch64 '!=' / ']'
+ rm -rf /home/iurt/rpmbuild/BUILDROOT/phalanx-22-15.mga9.aarch64
++ dirname /home/iurt/rpmbuild/BUILDROOT/phalanx-22-15.mga9.aarch64
+ mkdir -p /home/iurt/rpmbuild/BUILDROOT
+ mkdir /home/iurt/rpmbuild/BUILDROOT/phalanx-22-15.mga9.aarch64
+ cd Phalanx-XXII
+ '[' 1 -eq 1 ']'
+ install -D -m 755 phalanx /home/iurt/rpmbuild/BUILDROOT/phalanx-22-15.mga9.aarch64/usr/games/phalanx.real
+ install -D -m 755 phalanx.sh /home/iurt/rpmbuild/BUILDROOT/phalanx-22-15.mga9.aarch64/usr/games/phalanx
+ mkdir -p /home/iurt/rpmbuild/BUILDROOT/phalanx-22-15.mga9.aarch64/usr/share/games/phalanx
+ install -m 644 eco.phalanx pbook.phalanx sbook.phalanx learn.phalanx /home/iurt/rpmbuild/BUILDROOT/phalanx-22-15.mga9.aarch64/usr/share/games/phalanx/
+ /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 22-15.mga9 --unique-debug-suffix -22-15.mga9.aarch64 --unique-debug-src-base phalanx-22-15.mga9.aarch64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /home/iurt/rpmbuild/BUILD/Phalanx-XXII

extracting debug info from /home/iurt/rpmbuild/BUILDROOT/phalanx-22-15.mga9.aarch64/usr/games/phalanx.real
dwz: ./usr/games/phalanx.real-22-15.mga9.aarch64.debug: Unknown debugging section .debug_line_str
original debug info size: 264kB, size after compression: 264kB
/usr/bin/sepdebugcrcfix: Updated 0 CRC32s, 1 CRC32s did match.
394 blocks
+ /usr/lib/rpm/check-buildroot
+ '[' -n '' ']'
+ /usr/share/spec-helper/clean_files
+ '[' -n '' ']'
+ /usr/share/spec-helper/compress_files .xz
+ '[' -n '' ']'
+ /usr/share/spec-helper/relink_symlinks
+ '[' -n '' ']'
+ /usr/share/spec-helper/clean_perl
+ '[' -n '' ']'
+ /usr/share/spec-helper/lib_symlinks
+ '[' -n '' ']'
+ /usr/share/spec-helper/gprintify
+ '[' -n '' ']'
+ /usr/share/spec-helper/fix_mo
+ '[' -n '' ']'
+ /usr/share/spec-helper/fix_pamd
+ '[' -n '' ']'
+ /usr/share/spec-helper/remove_info_dir
+ '[' -n '' ']'
+ /usr/share/spec-helper/fix_eol
+ '[' -n '' ']'
+ /usr/share/spec-helper/check_desktop_files
+ '[' -n '' ']'
+ /usr/share/spec-helper/check_elf_files
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python3 1 0
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/brp-remove-la-files
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
mangling shebang in /usr/games/phalanx from /bin/sh to #!/usr/bin/sh
Processing files: phalanx-22-15.mga9.aarch64
Executing(%doc): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.vhTH2a
+ umask 022
+ cd /home/iurt/rpmbuild/BUILD
+ cd Phalanx-XXII
+ DOCDIR=/home/iurt/rpmbuild/BUILDROOT/phalanx-22-15.mga9.aarch64/usr/share/doc/phalanx
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /home/iurt/rpmbuild/BUILDROOT/phalanx-22-15.mga9.aarch64/usr/share/doc/phalanx
+ cp -pr HISTORY /home/iurt/rpmbuild/BUILDROOT/phalanx-22-15.mga9.aarch64/usr/share/doc/phalanx
+ cp -pr README /home/iurt/rpmbuild/BUILDROOT/phalanx-22-15.mga9.aarch64/usr/share/doc/phalanx
+ RPM_EC=0
++ jobs -p
+ exit 0
Provides: phalanx = 22-15.mga9 phalanx(aarch-64) = 22-15.mga9
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: ld-linux-aarch64.so.1()(64bit) ld-linux-aarch64.so.1(GLIBC_2.17)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit)
Processing files: phalanx-debugsource-22-15.mga9.aarch64
Provides: phalanx-debugsource = 22-15.mga9 phalanx-debugsource(aarch-64) = 22-15.mga9
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: phalanx-debuginfo-22-15.mga9.aarch64
Provides: debuginfo(build-id) = c2283ae5abd6a126095f7a06b7d99c527e54d66e phalanx-debuginfo = 22-15.mga9 phalanx-debuginfo(aarch-64) = 22-15.mga9
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Recommends: phalanx-debugsource(aarch-64) = 22-15.mga9
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/iurt/rpmbuild/BUILDROOT/phalanx-22-15.mga9.aarch64
Wrote: /home/iurt/rpmbuild/RPMS/aarch64/phalanx-debugsource-22-15.mga9.aarch64.rpm
Wrote: /home/iurt/rpmbuild/RPMS/aarch64/phalanx-debuginfo-22-15.mga9.aarch64.rpm
Wrote: /home/iurt/rpmbuild/RPMS/aarch64/phalanx-22-15.mga9.aarch64.rpm
Executing(%clean): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.6lVccT
+ umask 022
+ cd /home/iurt/rpmbuild/BUILD
+ cd Phalanx-XXII
+ /usr/bin/rm -rf /home/iurt/rpmbuild/BUILDROOT/phalanx-22-15.mga9.aarch64
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(--clean): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.WVXpxD
+ umask 022
+ cd /home/iurt/rpmbuild/BUILD
+ rm -rf Phalanx-XXII
+ RPM_EC=0
++ jobs -p
+ exit 0
D: [iurt_root_command] Success!