D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/t-engine4-1.7.6-2.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.D8XrQa + umask 022 + cd /home/pterjan/rpmbuild/BUILD/t-engine4-1.7.6-build + test -d /home/pterjan/rpmbuild/BUILD/t-engine4-1.7.6-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/t-engine4-1.7.6-build + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/t-engine4-1.7.6-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/t-engine4-1.7.6-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/t-engine4-1.7.6-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.c8itiG + umask 022 + cd /home/pterjan/rpmbuild/BUILD/t-engine4-1.7.6-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/t-engine4-1.7.6-build + rm -rf t-engine4-1.7.6 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/t-engine4-1.7.6.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd t-engine4-1.7.6 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/t-engine4-1.3.1-mga-include-sdl2.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/t-engine4-1.4.1-mga-no-stripping.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/t-engine4-missing-include.patch + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.W497Wy + umask 022 + cd /home/pterjan/rpmbuild/BUILD/t-engine4-1.7.6-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 t-engine4-1.7.6 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + 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-incompatible-pointer-types' + 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-incompatible-pointer-types' + premake4 --lua=jit2 gmake Building configurations... Running action 'gmake'... Generating Makefile... Generating build/TEngine.make... Generating build/physfs.make... Generating build/minilua.make... Generating build/buildvm.make... Generating build/luajit2.make... Generating build/luasocket.make... Generating build/fov.make... Generating build/lpeg.make... Generating build/luaprofiler.make... Generating build/tcodimport.make... Generating build/expatstatic.make... Generating build/lxp.make... Generating build/luamd5.make... Generating build/luazlib.make... Generating build/luabitop.make... Generating build/te4-bzip.make... Generating build/te4-wfc.make... Generating build/utf8proc.make... Done. + echo .NOTPARALLEL: + echo .NOTPARALLEL: + /usr/bin/make -O -j4 V=1 VERBOSE=1 config=release CC=gcc CXX=g++ ==== Building physfs (release) ==== ==== Building minilua (release) ==== ==== Building fov (release) ==== ==== Building luasocket (release) ==== Creating ../bin/Release Creating ../bin/Release Creating ../obj/Release/fov Creating ../obj/Release/luasocket Creating ../obj/Release/minilua Creating ../obj/Release/physfs auxiliar.c buffer.c except.c inet.c io.c luasocket.c options.c ../src/luasocket/options.c: In function 'opt_meth_setoption': ../src/luasocket/options.c:37:43: warning: '%.35s' directive writing up to 35 bytes into a region of size 25 [-Wformat-overflow=] 37 | sprintf(msg, "unsupported option `%.35s'", name); | ^~~~~ In file included from /usr/include/stdio.h:970, from ../src/luajit2/src/lauxlib.h:13, from ../src/luasocket/options.c:9: In function 'sprintf', inlined from 'opt_meth_setoption' at ../src/luasocket/options.c:37:9: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 22 and 57 bytes into a destination of size 45 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ physfs.c select.c tcp.c physfs_unicode.c timeout.c physfs_byteorder.c udp.c usocket.c mime.c Linking luasocket ==== Building luaprofiler (release) ==== Creating ../obj/Release/luaprofiler stack.c physfsrwops.c function_meter.c lua50_profiler.c inftrees.c core_profiler.c clocks.c ioapi.c Linking luaprofiler ==== Building lpeg (release) ==== Creating ../obj/Release/lpeg adler32.c gzclose.c gzwrite.c compress.c lptree.c In file included from ../src/lpeg/lptree.c:12: ../src/lpeg/lptypes.h:13:9: warning: "NDEBUG" redefined 13 | #define NDEBUG | ^~~~~~ : note: this is the location of the previous definition lpprint.c In file included from ../src/lpeg/lpprint.c:9: ../src/lpeg/lptypes.h:13:9: warning: "NDEBUG" redefined 13 | #define NDEBUG | ^~~~~~ : note: this is the location of the previous definition crc32.c uncompr.c lpcap.c In file included from ../src/lpeg/lpcap.h:9, from ../src/lpeg/lpcap.c:9: ../src/lpeg/lptypes.h:13:9: warning: "NDEBUG" redefined 13 | #define NDEBUG | ^~~~~~ : note: this is the location of the previous definition lpcode.c In file included from ../src/lpeg/lpcode.c:9: ../src/lpeg/lptypes.h:13:9: warning: "NDEBUG" redefined 13 | #define NDEBUG | ^~~~~~ : note: this is the location of the previous definition trees.c zutil.c lpvm.c In file included from ../src/lpeg/lpcap.h:9, from ../src/lpeg/lpvm.c:11: ../src/lpeg/lptypes.h:13:9: warning: "NDEBUG" redefined 13 | #define NDEBUG | ^~~~~~ : note: this is the location of the previous definition Linking lpeg ==== Building tcodimport (release) ==== Creating ../obj/Release/tcodimport noise_c.c In file included from ../src/libtcod_import/noise_c.c:32: ../src/SFMT.h:74:6: warning: inline function 'fill_array64' declared but never defined 74 | void fill_array64(uint64_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:70:6: warning: inline function 'fill_array32' declared but never defined 70 | void fill_array32(uint32_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:66:10: warning: inline function 'gen_rand64' declared but never defined 66 | uint64_t gen_rand64(void); | ^~~~~~~~~~ ../src/SFMT.h:62:10: warning: inline function 'gen_rand32' declared but never defined 62 | uint32_t gen_rand32(void); | ^~~~~~~~~~ Linking tcodimport mzip.c ==== Building lxp (release) ==== Creating ../obj/Release/lxp lxplib.c Linking lxp ==== Building expatstatic (release) ==== Creating ../obj/Release/expatstatic deflate.c minilua.c Linking minilua Running post-build commands cp ../bin/Release/minilua ../src/luajit2/src/host/ ==== Building luamd5 (release) ==== Creating ../obj/Release/luamd5 infback.c ldes56.c md5lib.c md5.c des56.c Linking luamd5 ==== Building luazlib (release) ==== Creating ../obj/Release/luazlib lzlib.c inflate.c lgzip.c Linking luazlib ==== Building luabitop (release) ==== gzlib.c Creating ../obj/Release/luabitop bit.c xmlparse.c Linking luabitop ==== Building te4-bzip (release) ==== Creating ../obj/Release/te4-bzip gzread.c crctable.c xmlrole.c xmltok_ns.c inffast.c xmltok_impl.c bind_physfs.c zip.c decompress.c randtable.c dir.c subzip.c ../src/physfs/archivers/subzip.c: In function 'SUBZIP_openArchive': ../src/physfs/archivers/subzip.c:112:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 112 | char *base = name; | ^~~~ unix.c posix.c Linking physfs ==== Building te4-wfc (release) ==== Creating ../obj/Release/te4-wfc xmltok.c Linking expatstatic ==== Building utf8proc (release) ==== Creating ../obj/Release/utf8proc compress.c utf8proc.c Linking utf8proc ==== Building buildvm (release) ==== Creating ../obj/Release/buildvm bzlib.c Running pre-build commands ../src/luajit2/src/host/minilua ../src/luajit2/dynasm/dynasm.lua -D VER= -D P64 -D JIT -D FFI -D FPU -D HFABI -o ../src/luajit2/src/host/buildvm_arch.h ../src/luajit2/src/vm_x86.dasc huffman.c buildvm_lib.c buildvm_peobj.c blocksort.c Linking te4-bzip buildvm.c buildvm_asm.c buildvm_fold.c Linking buildvm Running post-build commands cp ../bin/Release/buildvm ../src/luajit2/src/ ==== Building luajit2 (release) ==== Creating ../obj/Release/luajit2 Running pre-build commands ../src/luajit2/src/buildvm -m elfasm -o ../src/luajit2/src/lj_vm.s ../src/luajit2/src/buildvm -m bcdef -o ../src/luajit2/src/lj_bcdef.h ../src/luajit2/src/lib_base.c ../src/luajit2/src/lib_math.c ../src/luajit2/src/lib_bit.c ../src/luajit2/src/lib_string.c ../src/luajit2/src/lib_table.c ../src/luajit2/src/lib_io.c ../src/luajit2/src/lib_os.c ../src/luajit2/src/lib_package.c ../src/luajit2/src/lib_debug.c ../src/luajit2/src/lib_jit.c ../src/luajit2/src/lib_ffi.c ../src/luajit2/src/buildvm -m ffdef -o ../src/luajit2/src/lj_ffdef.h ../src/luajit2/src/lib_base.c ../src/luajit2/src/lib_math.c ../src/luajit2/src/lib_bit.c ../src/luajit2/src/lib_string.c ../src/luajit2/src/lib_table.c ../src/luajit2/src/lib_io.c ../src/luajit2/src/lib_os.c ../src/luajit2/src/lib_package.c ../src/luajit2/src/lib_debug.c ../src/luajit2/src/lib_jit.c ../src/luajit2/src/lib_ffi.c ../src/luajit2/src/buildvm -m libdef -o ../src/luajit2/src/lj_libdef.h ../src/luajit2/src/lib_base.c ../src/luajit2/src/lib_math.c ../src/luajit2/src/lib_bit.c ../src/luajit2/src/lib_string.c ../src/luajit2/src/lib_table.c ../src/luajit2/src/lib_io.c ../src/luajit2/src/lib_os.c ../src/luajit2/src/lib_package.c ../src/luajit2/src/lib_debug.c ../src/luajit2/src/lib_jit.c ../src/luajit2/src/lib_ffi.c ../src/luajit2/src/buildvm -m recdef -o ../src/luajit2/src/lj_recdef.h ../src/luajit2/src/lib_base.c ../src/luajit2/src/lib_math.c ../src/luajit2/src/lib_bit.c ../src/luajit2/src/lib_string.c ../src/luajit2/src/lib_table.c ../src/luajit2/src/lib_io.c ../src/luajit2/src/lib_os.c ../src/luajit2/src/lib_package.c ../src/luajit2/src/lib_debug.c ../src/luajit2/src/lib_jit.c ../src/luajit2/src/lib_ffi.c ../src/luajit2/src/buildvm -m vmdef -o ../src/luajit2/vmdef.lua ../src/luajit2/src/lib_base.c ../src/luajit2/src/lib_math.c ../src/luajit2/src/lib_bit.c ../src/luajit2/src/lib_string.c ../src/luajit2/src/lib_table.c ../src/luajit2/src/lib_io.c ../src/luajit2/src/lib_os.c ../src/luajit2/src/lib_package.c ../src/luajit2/src/lib_debug.c ../src/luajit2/src/lib_jit.c ../src/luajit2/src/lib_ffi.c ../src/luajit2/src/buildvm -m folddef -o ../src/luajit2/src/lj_folddef.h ../src/luajit2/src/lj_opt_fold.c lj_ffrecord.c lj_opt_split.c lua_wfc.cpp cc1plus: warning: command-line option '-Wno-incompatible-pointer-types' is valid for C/ObjC but not for C++ In file included from ../src/wfc/lua_wfc.cpp:27: ../src/SFMT.h:62:10: warning: inline function 'uint32_t gen_rand32()' used but never defined 62 | uint32_t gen_rand32(void); | ^~~~~~~~~~ ../src/SFMT.h:66:10: warning: inline function 'uint64_t gen_rand64()' used but never defined 66 | uint64_t gen_rand64(void); | ^~~~~~~~~~ Linking te4-wfc lj_lex.c lj_gdbjit.c lj_lib.c lj_clib.c lib_os.c lj_strscan.c lib_init.c lj_carith.c lj_cdata.c lj_vmmath.c lib_string.c lj_dispatch.c lj_bcwrite.c lib_package.c lj_cparse.c lib_debug.c fov.c Linking fov lj_asm.c lj_record.c lj_opt_dce.c lib_math.c lib_aux.c lj_str.c lib_jit.c lib_bit.c lj_alloc.c lj_udata.c lj_gc.c lj_trace.c lj_bc.c lj_state.c lj_meta.c lj_api.c lj_cconv.c lj_load.c lj_char.c lib_table.c lj_tab.c lj_opt_narrow.c lj_ccallback.c lj_obj.c lj_opt_mem.c lj_crecord.c lj_ctype.c lj_ccall.c lib_base.c lj_func.c lj_opt_sink.c lj_parse.c lj_opt_loop.c lj_snap.c lj_debug.c lib_io.c lj_mcode.c lj_ir.c lib_ffi.c lj_err.c lj_bcread.c lj_vmevent.c lj_opt_fold.c lj_vm.s Linking luajit2 ==== Building TEngine (release) ==== Creating ../obj/Release/TEngine physfs.c fov.c Assembler messages: Fatal error: can't create ../obj/Release/TEngine/fov.o: No such file or directory In file included from ../src/fov.c:32: ../src/SFMT.h:74:6: warning: inline function 'fill_array64' declared but never defined 74 | void fill_array64(uint64_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:70:6: warning: inline function 'fill_array32' declared but never defined 70 | void fill_array32(uint32_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:66:10: warning: inline function 'gen_rand64' declared but never defined 66 | uint64_t gen_rand64(void); | ^~~~~~~~~~ ../src/SFMT.h:62:10: warning: inline function 'gen_rand32' declared but never defined 62 | uint32_t gen_rand32(void); | ^~~~~~~~~~ In file included from ../src/display.h:23, from ../src/fov.c:21: ../src/display_sdl.h:46:6: warning: inline function 'sdlDrawImage' declared but never defined 46 | void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y); | ^~~~~~~~~~~~ make[1]: *** [TEngine.make:155: ../obj/Release/TEngine/fov.o] Error 2 make[1]: *** Waiting for unfinished jobs.... glew.c Assembler messages: Fatal error: can't create ../obj/Release/TEngine/glew.o: No such file or directory make[1]: *** [TEngine.make:159: ../obj/Release/TEngine/glew.o] Error 2 music.c particles.c In file included from ../src/particles.h:24, from ../src/particles.c:30: ../src/particles.c: In function 'particles_draw': ../src/tgl.h:86:17: warning: comparison of distinct pointer types lacks a cast [-Wcompare-distinct-pointer-types] 86 | if ((p) != gl_c_texcoords_ptr || (nb) != gl_c_colors_nb) { glTexCoordPointer((nb), (t), (v), (p)); gl_c_texcoords_ptr=(p); gl_c_texcoords_nb = (nb); } \ | ^~ ../src/particles.c:441:9: note: in expansion of macro 'glTexCoordPointer' 441 | glTexCoordPointer(2, GL_SHORT, 0, texcoords); | ^~~~~~~~~~~~~~~~~ ../src/particles.c: In function 'thread_particle_init': ../src/particles.c:796:82: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 796 | printf("Particle args init error %x (%s): %s\n", (int)l, ps->args, lua_tostring(L, -1)); | ^ ../src/particles.c:844:68: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 844 | printf("Particle run error %x (%s): %s\n", (int)l, ps->args, lua_tostring(L, -1)); | ^ ../src/particles.c: In function 'thread_particle_die': ../src/particles.c:1026:40: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1026 | if (ps->args) { free(ps->args); ps->args = NULL; } | ~~^~~~~~ In file included from /usr/include/SDL2/SDL_stdinc.h:42, from /usr/include/SDL2/SDL_main.h:25, from /usr/include/SDL2/SDL.h:31, from ../src/tSDL.h:12, from ../src/display_sdl.h:24, from ../src/display.h:23, from ../src/particles.c:21: /usr/include/stdlib.h:687:25: note: expected 'void *' but argument is of type 'const char *' 687 | extern void free (void *__ptr) __THROW; | ~~~~~~^~~~~ ../src/particles.c:1027:44: warning: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1027 | if (ps->name_def) { free(ps->name_def); ps->name_def = NULL; } | ~~^~~~~~~~~~ /usr/include/stdlib.h:687:25: note: expected 'void *' but argument is of type 'const char *' 687 | extern void free (void *__ptr) __THROW; | ~~~~~~^~~~~ ../src/particles.c: In function 'free_particles_thread': ../src/particles.c:1181:86: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1181 | printf("Destroying particle thread %d (waiting for thread %x)\n", i, (int)pt->thread); | ^ In file included from ../src/particles.c:33: ../src/SFMT.h: At top level: ../src/SFMT.h:74:6: warning: inline function 'fill_array64' declared but never defined 74 | void fill_array64(uint64_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:70:6: warning: inline function 'fill_array32' declared but never defined 70 | void fill_array32(uint32_t array[], int size); | ^~~~~~~~~~~~ ../src/SFMT.h:66:10: warning: inline function 'gen_rand64' declared but never defined 66 | uint64_t gen_rand64(void); | ^~~~~~~~~~ ../src/SFMT.h:62:10: warning: inline function 'gen_rand32' declared but never defined 62 | uint32_t gen_rand32(void); | ^~~~~~~~~~ ../src/display_sdl.h:46:6: warning: inline function 'sdlDrawImage' declared but never defined 46 | void sdlDrawImage(SDL_Surface *dest, SDL_Surface *image, int x, int y); | ^~~~~~~~~~~~ make: *** [Makefile:17: TEngine] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.W497Wy (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.W497Wy (%build) I: [iurt_root_command] ERROR: chroot