D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/nethack-3.6.7-1.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.2Eo1SE Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.pBiFCA + umask 022 + cd /home/pterjan/rpmbuild/BUILD/nethack-3.6.7-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/nethack-3.6.7-build + rm -rf NetHack-3.6.7 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/nethack-367-src.tgz + STATUS=0 + '[' 0 -ne 0 ']' + cd NetHack-3.6.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/nethack-3.6.2-makefile.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/nethack-3.6.2-config.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/Makefile.top.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/nethack-3.6.6-guidebook.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + sed -i -e 's:PREFIX=$(wildcard ~)/nh/install:PREFIX=/usr:' sys/unix/hints/linux + sed -i -e 's:^\(HACKDIR=\).*:\1/usr/games/nethack:' sys/unix/hints/linux + sh sys/unix/setup.sh sys/unix/hints/linux + sed -i -e 's:^\(HACKDIR=\).*:\1/usr/games/nethack:' sys/unix/nethack.sh + sed -i -e s:FEDORA_CONFDIR:/usr/games/nethack: sys/unix/nethack.sh + sed -i -e s:FEDORA_STATEDIR:/var/games/nethack: include/unixconf.h + sed -i -e s:FEDORA_HACKDIR:/usr/games/nethack: include/config.h + sed -i -e s:/usr/games/lib/nethackdir:/usr/games/nethack: doc/nethack.6 doc/nethack.txt doc/recover.6 doc/recover.txt + 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/pterjan/rpmbuild/tmp/rpm-tmp.Uk2Bod + umask 022 + cd /home/pterjan/rpmbuild/BUILD/nethack-3.6.7-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd NetHack-3.6.7 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make all ( cd src ; make ) make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/nethack-3.6.7-build/NetHack-3.6.7/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:9: warning: 'CURSES_GRAPHICS' redefined 48 | #define CURSES_GRAPHICS /* Curses interface - Karl Garrison*/ | ^~~~~~~~~~~~~~~ : note: this is the location of the previous definition ../include/config.h:314:9: warning: 'DLB' redefined 314 | #define DLB /* not supported on all platforms */ | ^~~ : note: this is the location of the previous definition In file included from ../include/global.h:136, from ../include/config.h:581: ../include/unixconf.h:136:9: warning: 'TIMED_DELAY' redefined 136 | #define TIMED_DELAY /* usleep() */ | ^~~~~~~~~~~ : note: this is the location of the previous definition In file included from ../include/unixconf.h:323: /usr/include/stdlib.h:601:13: error: conflicting types for 'srand48'; have 'void(long int)' 601 | extern void srand48 (long int __seedval) __THROW; | ^~~~~~~ In file included from ../include/unixconf.h:320: ../include/system.h:99:8: note: previous declaration of 'srand48' with type 'void(void)' 99 | E void srand48(); | ^~~~~~~ In file included from ../include/unixconf.h:324: /usr/include/unistd.h:464:21: error: conflicting types for 'sleep'; have 'unsigned int(unsigned int)' 464 | extern unsigned int sleep (unsigned int __seconds); | ^~~~~ ../include/system.h:358:12: note: previous declaration of 'sleep' with type 'unsigned int(void)' 358 | E unsigned sleep(); | ^~~~~ make[1]: *** [Makefile:657: monst.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/nethack-3.6.7-build/NetHack-3.6.7/src' make: *** [Makefile:161: nethack] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.Uk2Bod (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.Uk2Bod (%build) I: [iurt_root_command] ERROR: chroot