D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 warning: Macro expanded in comment on line 10: %{version}/%{name}-%{version}.tar.gz Installing /home/pterjan/rpmbuild/SRPMS/cave9-0.4.1-6.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.KSuCOj Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.k14fUc + umask 022 + cd /home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build + rm -rf cave9-0.4.1 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/cave9-0.4.1.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd cave9-0.4.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0001-Data-paths-support-games-FHS-dir.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/cave9-0.4.1-gcc7.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + sed -i src/GNUmakefile -e 's/-Wall -Werror -ggdb//' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.VbMnlq + umask 022 + cd /home/pterjan/rpmbuild/BUILD/cave9-0.4.1-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 cave9-0.4.1 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + 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 + export '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 -Wno-error=unused-result' + 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 -Wno-error=unused-result' + /usr/bin/make -O -j16 V=1 VERBOSE=1 /usr/bin/make -C src make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' gcc -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 -Wno-error=unused-result -std=c99 `sdl-config --cflags` -I/usr/local/include/SDL -I/usr/include/SDL -c -o main.o main.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' gcc -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 -Wno-error=unused-result -std=c99 `sdl-config --cflags` -I/usr/local/include/SDL -I/usr/include/SDL -c -o detrand.o detrand.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' gcc -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 -Wno-error=unused-result -std=c99 `sdl-config --cflags` -I/usr/local/include/SDL -I/usr/include/SDL -c -o score.o score.c score.c: In function 'score_init': score.c:165:33: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 165 | fscanf (fp, "%11d:%2d:%11d ", &fseed, &fmonstal, &fscore); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ score.c: In function 'score_update': score.c:215:49: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 215 | fscanf (fp, "%11d:%2d:%11d", &fseed, &fmonstal, &fscore); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' gcc -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 -Wno-error=unused-result -std=c99 `sdl-config --cflags` -I/usr/local/include/SDL -I/usr/include/SDL -c -o util.o util.c util.c: In function 'find_file': util.c:54:61: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=] 54 | snprintf (path, FILENAME_MAX, "%s/%s/%s", bin_path, paths[i], basename); | ^ In file included from /usr/include/stdio.h:970, from util.c:4: In function 'snprintf', inlined from 'find_file' at util.c:54:4: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 3 or more bytes (assuming 4098) into a destination of size 4096 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' gcc -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 -Wno-error=unused-result -std=c99 `sdl-config --cflags` -I/usr/local/include/SDL -I/usr/include/SDL -c -o audio.o audio.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' gcc -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 -Wno-error=unused-result -std=c99 `sdl-config --cflags` -I/usr/local/include/SDL -I/usr/include/SDL -c -o render.o render.c render.c: In function 'render_world_transform': render.c:175:9: error: implicit declaration of function 'gluLookAt' [-Wimplicit-function-declaration] 175 | gluLookAt( | ^~~~~~~~~ make[1]: *** [: render.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' gcc -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 -Wno-error=unused-result -std=c99 `sdl-config --cflags` -I/usr/local/include/SDL -I/usr/include/SDL -c -o display.o display.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' gcc -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 -Wno-error=unused-result -std=c99 `sdl-config --cflags` -I/usr/local/include/SDL -I/usr/include/SDL -c -o control.o control.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' gcc -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 -Wno-error=unused-result -std=c99 `sdl-config --cflags` -I/usr/local/include/SDL -I/usr/include/SDL -c -o game.o game.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/cave9-0.4.1-build/cave9-0.4.1/src' make: *** [GNUmakefile:17: build] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.VbMnlq (%build) RPM build warnings: Macro expanded in comment on line 10: %{version}/%{name}-%{version}.tar.gz RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.VbMnlq (%build) I: [iurt_root_command] ERROR: chroot