D: [iurt_root_command] chroot warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend. Installing /home/iurt/rpmbuild/SRPMS/nethack-3.6.6-4.mga9.src.rpm Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.3gq5Fn + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf nethack-3.6.6 + /usr/bin/mkdir -p nethack-3.6.6 + cd nethack-3.6.6 + /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/nethack-366-src.tgz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd NetHack-NetHack-3.6.6_Released + mv DEVEL Files Porting README dat doc include src sys util win .. + cd .. + rm -rf NetHack-NetHack-3.6.6_Released + echo 'Patch #0 (nethack-3.6.2-makefile.patch):' Patch #0 (nethack-3.6.2-makefile.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .makefile --fuzz=0 patching file sys/unix/Makefile.src patching file sys/unix/Makefile.utl + echo 'Patch #1 (nethack-3.6.2-config.patch):' Patch #1 (nethack-3.6.2-config.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .config --fuzz=0 patching file include/config.h patching file include/unixconf.h + echo 'Patch #2 (Makefile.top.patch):' Patch #2 (Makefile.top.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .MAK2 --fuzz=0 patching file sys/unix/Makefile.top + echo 'Patch #3 (nethack-3.6.6-guidebook.patch):' Patch #3 (nethack-3.6.6-guidebook.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .guidebook --fuzz=0 patching file sys/unix/Makefile.doc + /usr/bin/sed -i -e 's:PREFIX=$(wildcard ~)/nh/install:PREFIX=/usr:' sys/unix/hints/linux + /usr/bin/sed -i -e 's:^\(HACKDIR=\).*:\1/usr/games/nethack:' sys/unix/hints/linux + sh sys/unix/setup.sh sys/unix/hints/linux + /usr/bin/sed -i -e 's:^\(HACKDIR=\).*:\1/usr/games/nethack:' sys/unix/nethack.sh + /usr/bin/sed -i -e s:FEDORA_CONFDIR:/usr/games/nethack: sys/unix/nethack.sh + /usr/bin/sed -i -e s:FEDORA_STATEDIR:/var/games/nethack: include/unixconf.h + /usr/bin/sed -i -e s:FEDORA_HACKDIR:/usr/games/nethack: include/config.h + /usr/bin/sed -i -e s:/usr/games/lib/nethackdir:/usr/games/nethack: doc/nethack.6 doc/nethack.txt doc/recover.6 doc/recover.txt + /usr/bin/sed -i -e s:-L/usr/X11R6/lib:-L/usr/X11R6/lib64: src/Makefile util/Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.871DZS + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd nethack-3.6.6 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make all ( cd src ; make ) make[1]: Entering directory '/home/iurt/rpmbuild/BUILD/nethack-3.6.6/src' touch ../src/config.h-t gcc -g -O -I../include -DNOTPARMDECL -DDLB -DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" -DSYSCF -DSYSCF_FILE=\"/usr/games/nethack/sysconf\" -DSECURE -DTIMED_DELAY -DHACKDIR=\"/usr/games/nethack\" -DDUMPLOG -DCONFIG_ERROR_SECURE=FALSE -DCURSES_GRAPHICS -c monst.c In file included from monst.c:6: ../include/config.h:48: warning: "CURSES_GRAPHICS" redefined 48 | #define CURSES_GRAPHICS /* Curses interface - Karl Garrison*/ | : note: this is the location of the previous definition In file included from monst.c:6: ../include/config.h:314: warning: "DLB" redefined 314 | #define DLB /* not supported on all platforms */ | : note: this is the location of the previous definition In file included from /usr/include/features.h:488, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from ../include/global.h:9, from ../include/config.h:581, from monst.c:6: /usr/include/sys/cdefs.h:345:73: error: macro "__has_attribute" requires an identifier 345 | #if __GNUC_PREREQ (3,4) || __glibc_has_attribute (__warn_unused_result__) | ^ In file included from ../include/global.h:136, from ../include/config.h:581, from monst.c:6: ../include/unixconf.h:136: warning: "TIMED_DELAY" redefined 136 | #define TIMED_DELAY /* usleep() */ | : note: this is the location of the previous definition make[1]: *** [Makefile:657: monst.o] Error 1 make[1]: Leaving directory '/home/iurt/rpmbuild/BUILD/nethack-3.6.6/src' make: *** [Makefile:161: nethack] Error 2 error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.871DZS (%build) RPM build errors: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend. Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.871DZS (%build) I: [iurt_root_command] ERROR: chroot