Mock Version: 1.3.4 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/teeworlds.spec'], nspawn_args=[]shell=Falseuid=995env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/community-php74-armhfp-1d4e04f6a60c4fca32c70cc9462c17b0edb29c80/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/teeworlds.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/teeworlds-0.4.2-1.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u"/usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/teeworlds.spec"], nspawn_args=[]shell=Falseuid=995env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '}chrootPath='/var/lib/mock/community-php74-armhfp-1d4e04f6a60c4fca32c70cc9462c17b0edb29c80/root'gid=135user='mockbuild'timeout=0logger=printOutput=False) Executing command: ['bash', '--login', '-c', u"/usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/teeworlds.spec"] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PS1': ' \\s-\\v\\$ '} and shell False Building target platforms: armv7hl Building for target armv7hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.6KpRww + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf teeworlds-0.4.2-src + /usr/bin/bzip2 -dc /builddir/build/SOURCES/teeworlds-0.4.2-src.tar.bz2 + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd teeworlds-0.4.2-src + /usr/bin/bzip2 -dc /builddir/build/SOURCES/bam-svn-r117.tar.bz2 + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (teeworlds-0.4.2-aliasing.patch): + echo 'Patch #0 (teeworlds-0.4.2-aliasing.patch):' + /usr/bin/cat /builddir/build/SOURCES/teeworlds-0.4.2-aliasing.patch + /usr/bin/patch -p0 --fuzz=0 patching file src/game/server/gs_server.cpp Hunk #1 succeeded at 1439 (offset 46 lines). Hunk #2 succeeded at 1450 (offset 46 lines). Patch #1 (teeworlds-0.4.2-optflags.patch): + echo 'Patch #1 (teeworlds-0.4.2-optflags.patch):' + /usr/bin/cat /builddir/build/SOURCES/teeworlds-0.4.2-optflags.patch + /usr/bin/patch -p0 --fuzz=0 patching file default.bam + sed -i 's:_OPTFLAGS_:-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard:' default.bam ++ find -name '*.c' -o -name '*.cpp' + sed -i s:data/:/usr/share/games/teeworlds/:g datasrc/data.ds ./bam-svn-r117/src/context.c ./bam-svn-r117/src/main.c ./bam-svn-r117/src/dep_cpp_2.c ./bam-svn-r117/src/lua/src/lstring.c ./bam-svn-r117/src/lua/src/ldo.c ./bam-svn-r117/src/lua/src/lopcodes.c ./bam-svn-r117/src/lua/src/lapi.c ./bam-svn-r117/src/lua/src/lzio.c ./bam-svn-r117/src/lua/src/lib/lstrlib.c ./bam-svn-r117/src/lua/src/lib/lbaselib.c ./bam-svn-r117/src/lua/src/lib/lauxlib.c ./bam-svn-r117/src/lua/src/lib/liolib.c ./bam-svn-r117/src/lua/src/lib/ldblib.c ./bam-svn-r117/src/lua/src/lib/lmathlib.c ./bam-svn-r117/src/lua/src/lib/loadlib.c ./bam-svn-r117/src/lua/src/lib/ltablib.c ./bam-svn-r117/src/lua/src/llex.c ./bam-svn-r117/src/lua/src/lparser.c ./bam-svn-r117/src/lua/src/lmem.c ./bam-svn-r117/src/lua/src/lfunc.c ./bam-svn-r117/src/lua/src/ltests.c ./bam-svn-r117/src/lua/src/ldebug.c ./bam-svn-r117/src/lua/src/lstate.c ./bam-svn-r117/src/lua/src/ldump.c ./bam-svn-r117/src/lua/src/ltm.c ./bam-svn-r117/src/lua/src/lobject.c ./bam-svn-r117/src/lua/src/lcode.c ./bam-svn-r117/src/lua/src/lgc.c ./bam-svn-r117/src/lua/src/ltable.c ./bam-svn-r117/src/lua/src/lvm.c ./bam-svn-r117/src/lua/src/lundump.c ./bam-svn-r117/src/support.c ./bam-svn-r117/src/mem.c ./bam-svn-r117/src/node.c ./bam-svn-r117/src/path.c ./bam-svn-r117/src/tools/txt2c.c ./bam-svn-r117/tests/subproject/main.c ./bam-svn-r117/tests/subproject/mod/mod2/mod2.c ./bam-svn-r117/tests/subproject/mod/mod.c ./bam-svn-r117/tests/locked/locked.cpp ./bam-svn-r117/tests/include_paths/include_paths.c ./bam-svn-r117/tests/multi_target/multi_target.c ./bam-svn-r117/tests/looseincludes/loose_includes.c ./bam-svn-r117/tests/cyclic/cyclic.c ./bam-svn-r117/tests/clone/clone.c ./bam-svn-r117/tests/retval/retval.cpp ./bam-svn-r117/tests/dot.in.dir/dot_in_dir.cpp ./src/trackinggenerator/main.cpp ./src/mastersrv/mastersrv.cpp ./src/game/g_game.cpp ./src/game/editor/ed_layer_quads.cpp ./src/game/editor/ed_io.cpp ./src/game/editor/ed_layer_game.cpp ./src/game/editor/ed_popups.cpp ./src/game/editor/ed_editor.cpp ./src/game/editor/ed_layer_tiles.cpp ./src/game/g_layers.cpp ./src/game/client/gc_render_obj.cpp ./src/game/client/gc_map_image.cpp ./src/game/client/gc_hooks.cpp ./src/game/client/gc_flow.cpp ./src/game/client/gc_render.cpp ./src/game/client/gc_skin.cpp ./src/game/client/gc_particles.cpp ./src/game/client/gc_menu.cpp ./src/game/client/gc_ui.cpp ./src/game/client/gc_render_map.cpp ./src/game/client/gc_console.cpp ./src/game/client/gc_client.cpp ./src/game/client/gc_effects.cpp ./src/game/g_collision.cpp ./src/game/server/gs_server.cpp ./src/game/server/gs_game_tdm.cpp ./src/game/server/gs_game_dm.cpp ./src/game/server/gs_game.cpp ./src/game/server/gs_game_ctf.cpp ./src/engine/e_system.c ./src/engine/e_config.c ./src/engine/e_msg.c ./src/engine/e_ringbuffer.c ./src/engine/e_memheap.c ./src/engine/e_console.c ./src/engine/e_map.c ./src/engine/e_compression.c ./src/engine/e_datafile.c ./src/engine/client/ec_client.c ./src/engine/client/ec_gfx.c ./src/engine/client/ec_font.c ./src/engine/client/ec_inp.c ./src/engine/client/ec_snd.c ./src/engine/client/ec_srvbrowse.c ./src/engine/e_engine.c ./src/engine/e_packer.c ./src/engine/e_linereader.c ./src/engine/e_snapshot.c ./src/engine/server/es_server.c ./src/engine/server/es_register.c ./src/engine/e_network.c ./src/engine/e_keynames.c ./src/engine/external/portaudio/src/common/pa_process.c ./src/engine/external/portaudio/src/common/pa_debugprint.c ./src/engine/external/portaudio/src/common/pa_cpuload.c ./src/engine/external/portaudio/src/common/pa_skeleton.c ./src/engine/external/portaudio/src/common/pa_dither.c ./src/engine/external/portaudio/src/common/pa_stream.c ./src/engine/external/portaudio/src/common/pa_allocation.c ./src/engine/external/portaudio/src/common/pa_ringbuffer.c ./src/engine/external/portaudio/src/common/pa_trace.c ./src/engine/external/portaudio/src/common/pa_converters.c ./src/engine/external/portaudio/src/common/pa_front.c ./src/engine/external/portaudio/src/hostapi/wmme/pa_win_wmme.c ./src/engine/external/portaudio/src/hostapi/wasapi/pa_win_wasapi.cpp ./src/engine/external/portaudio/src/hostapi/alsa/pa_linux_alsa.c ./src/engine/external/portaudio/src/hostapi/jack/pa_jack.c ./src/engine/external/portaudio/src/hostapi/dsound/pa_win_ds_dynlink.c ./src/engine/external/portaudio/src/hostapi/dsound/pa_win_ds.c ./src/engine/external/portaudio/src/hostapi/oss/recplay.c ./src/engine/external/portaudio/src/hostapi/oss/pa_unix_oss.c ./src/engine/external/portaudio/src/hostapi/asio/pa_asio.cpp ./src/engine/external/portaudio/src/hostapi/asio/iasiothiscallresolver.cpp ./src/engine/external/portaudio/src/hostapi/wdmks/pa_win_wdmks.c ./src/engine/external/portaudio/src/hostapi/asihpi/pa_linux_asihpi.c ./src/engine/external/portaudio/src/hostapi/coreaudio/pa_mac_core_utilities.c ./src/engine/external/portaudio/src/hostapi/coreaudio/pa_mac_core_blocking.c ./src/engine/external/portaudio/src/hostapi/coreaudio/pa_mac_core.c ./src/engine/external/portaudio/src/os/win/pa_win_waveformat.c ./src/engine/external/portaudio/src/os/win/pa_win_hostapis.c ./src/engine/external/portaudio/src/os/win/pa_win_util.c ./src/engine/external/portaudio/src/os/win/pa_x86_plain_converters.c ./src/engine/external/portaudio/src/os/unix/pa_unix_hostapis.c ./src/engine/external/portaudio/src/os/unix/pa_unix_util.c ./src/engine/external/portaudio/src/os/mac_osx/pa_mac_osx_util.c ./src/engine/external/portaudio/src/os/mac_osx/pa_mac_osx_hostapis.c ./src/engine/external/wavpack/words.c ./src/engine/external/wavpack/metadata.c ./src/engine/external/wavpack/bits.c ./src/engine/external/wavpack/unpack.c ./src/engine/external/wavpack/float.c ./src/engine/external/wavpack/wputils.c ./src/engine/external/glfw/lib/joystick.c ./src/engine/external/glfw/lib/init.c ./src/engine/external/glfw/lib/thread.c ./src/engine/external/glfw/lib/window.c ./src/engine/external/glfw/lib/win32/win32_time.c ./src/engine/external/glfw/lib/win32/win32_fullscreen.c ./src/engine/external/glfw/lib/win32/win32_thread.c ./src/engine/external/glfw/lib/win32/win32_window.c ./src/engine/external/glfw/lib/win32/win32_init.c ./src/engine/external/glfw/lib/win32/win32_dllmain.c ./src/engine/external/glfw/lib/win32/win32_enable.c ./src/engine/external/glfw/lib/win32/win32_joystick.c ./src/engine/external/glfw/lib/win32/win32_glext.c ./src/engine/external/glfw/lib/time.c ./src/engine/external/glfw/lib/tga.c ./src/engine/external/glfw/lib/fullscreen.c ./src/engine/external/glfw/lib/glext.c ./src/engine/external/glfw/lib/enable.c ./src/engine/external/glfw/lib/image.c ./src/engine/external/glfw/lib/x11/x11_thread.c ./src/engine/external/glfw/lib/x11/x11_glext.c ./src/engine/external/glfw/lib/x11/x11_fullscreen.c ./src/engine/external/glfw/lib/x11/x11_init.c ./src/engine/external/glfw/lib/x11/x11_joystick.c ./src/engine/external/glfw/lib/x11/x11_enable.c ./src/engine/external/glfw/lib/x11/x11_keysym2unicode.c ./src/engine/external/glfw/lib/x11/x11_time.c ./src/engine/external/glfw/lib/x11/x11_window.c ./src/engine/external/glfw/lib/stream.c ./src/engine/external/glfw/lib/input.c ./src/engine/external/glfw/lib/macosx/macosx_enable.c ./src/engine/external/glfw/lib/macosx/macosx_fullscreen.c ./src/engine/external/glfw/lib/macosx/macosx_thread.c ./src/engine/external/glfw/lib/macosx/macosx_time.c ./src/engine/external/glfw/lib/macosx/macosx_init.c ./src/engine/external/glfw/lib/macosx/macosx_window.c ./src/engine/external/glfw/lib/macosx/macosx_glext.c ./src/engine/external/glfw/lib/macosx/macosx_joystick.c ./src/engine/external/zlib/adler32.c ./src/engine/external/zlib/deflate.c ./src/engine/external/zlib/crc32.c ./src/engine/external/zlib/uncompr.c ./src/engine/external/zlib/zutil.c ./src/engine/external/zlib/infback.c ./src/engine/external/zlib/inflate.c ./src/engine/external/zlib/inftrees.c ./src/engine/external/zlib/trees.c ./src/engine/external/zlib/inffast.c ./src/engine/external/zlib/gzio.c ./src/engine/external/zlib/compress.c ./src/engine/external/pnglite/pnglite.c ./src/tools/packetgen.c ./src/tools/tileset_borderfix.c ./src/tools/crapnet.cpp ./src/tools/dilate.c ./src/tools/fake_server.c ./src/tools/map_resave.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.pJh0sI + umask 022 + cd /builddir/build/BUILD + cd teeworlds-0.4.2-src + cd bam-svn-r117 + sh make_unix.sh src/node.c: In function 'node_walk_r': src/node.c:217:6: warning: variable 'needrebuild' set but not used [-Wunused-but-set-variable] int needrebuild = 0; ^ src/node.c: At top level: src/node.c:136:12: warning: 'is_node_in_tree' defined but not used [-Wunused-function] static int is_node_in_tree(struct NODE *stack, struct NODE *needle) ^ + cd .. + ./bam-svn-r117/src/bam release bam: building 'release' c compress.c c gzio.c c inffast.c c trees.c c inftrees.c c inflate.c c infback.c c zutil.c c uncompr.c c crc32.c c deflate.c c adler32.c c e_keynames.c c e_network.c c e_snapshot.c c e_linereader.c c e_packer.c c e_engine.c c e_datafile.c c e_compression.c c e_map.c c e_console.c c e_memheap.c c e_ringbuffer.c c e_msg.c c e_config.c c e_system.c /builddir/build/BUILD/teeworlds-0.4.2-src/src/engine/e_system.c: In function 'io_seek': /builddir/build/BUILD/teeworlds-0.4.2-src/src/engine/e_system.c:259:6: warning: variable 'real_origin' set but not used [-Wunused-but-set-variable] int real_origin; ^ c map_resave.c link map_resave c fake_server.c link fake_server c dilate.c In file included from /builddir/build/BUILD/teeworlds-0.4.2-src/src/tools/dilate.c:3:0: /builddir/build/BUILD/teeworlds-0.4.2-src/src/tools/../engine/external/pnglite/pnglite.c: In function 'png_init': /builddir/build/BUILD/teeworlds-0.4.2-src/src/tools/../engine/external/pnglite/pnglite.c:116:13: warning: assignment from incompatible pointer type [enabled by default] png_alloc = &malloc; ^ link dilate c tileset_borderfix.c In file included from /builddir/build/BUILD/teeworlds-0.4.2-src/src/tools/tileset_borderfix.c:3:0: /builddir/build/BUILD/teeworlds-0.4.2-src/src/tools/../engine/external/pnglite/pnglite.c: In function 'png_init': /builddir/build/BUILD/teeworlds-0.4.2-src/src/tools/../engine/external/pnglite/pnglite.c:116:13: warning: assignment from incompatible pointer type [enabled by default] png_alloc = &malloc; ^ link tileset_borderfix c packetgen.c link packetgen c++ crapnet.cpp /builddir/build/BUILD/teeworlds-0.4.2-src/src/tools/crapnet.cpp: In function 'int run(int, NETADDR4)': /builddir/build/BUILD/teeworlds-0.4.2-src/src/tools/crapnet.cpp:25:32: warning: narrowing conversion of 'port' from 'int' to 'short unsigned int' inside { } is ill-formed in C++11 [-Wnarrowing] NETADDR4 src = {{0,0,0,0},port}; ^ /builddir/build/BUILD/teeworlds-0.4.2-src/src/tools/crapnet.cpp:135:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ link crapnet c++ mastersrv.cpp link mastersrv dc_cdata gs_internaldata.cpp = data.ds ~ server.dts c++ gs_internaldata.cpp dc_header gs_data.h = data.ds ~ server.dts dc_source gs_data.cpp+gs_data.h = data.ds ~ server.dts c++ gs_data.cpp /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/generated/gs_data.cpp: In function 'data_container* load_data_from_file(const char*)': /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/generated/gs_data.cpp:62:25: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fread(data, 1, size, f); ^ netobj header g_protocol.h = g_protocol.def c++ gs_game_ctf.cpp c++ gs_game.cpp c++ gs_game_dm.cpp c++ gs_game_tdm.cpp dc_header g_protocol_ids.h = data.ds ~ network.dts cmd5 nethash.c c++ gs_server.cpp /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp: In function 'float evaluate_spawn(spawneval*, vec2)': /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp:811:9: warning: variable 'scoremod' set but not used [-Wunused-but-set-variable] float scoremod = 1.0f; ^ /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp: In member function 'void player::fire_weapon()': /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp:1162:10: warning: variable 'fdir' set but not used [-Wunused-but-set-variable] vec2 fdir = normalize(ents[i]->pos - pos); ^ /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp: In member function 'int player::handle_weapons()': /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp:1278:7: warning: variable 'direction' set but not used [-Wunused-but-set-variable] vec2 direction = normalize(vec2(latest_input.target_x, latest_input.target_y)); ^ /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp: In function 'player* intersect_player(vec2, vec2, float, vec2&, entity*)': /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp:1954:7: warning: variable 'line_dir' set but not used [-Wunused-but-set-variable] vec2 line_dir = normalize(pos1-pos0); ^ In file included from /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/g_collision.h:6:0, from /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp:8: /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/g_vmath.h: In instantiation of 'vector2_base normalize(const vector2_base&) [with T = float]': /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp:598:28: required from here /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/g_vmath.h:61:40: error: 'sqrtf' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] T l = (T)(1.0f/sqrtf(v.x*v.x + v.y*v.y)); ^ In file included from /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/../g_game.h:7:0, from /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_common.h:2, from /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp:11: /usr/include/bits/mathcalls.h:157:1: note: 'float sqrtf(float)' declared here, later in the translation unit __MATHCALL (sqrt,, (_Mdouble_ __x)); ^ In file included from /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/g_collision.h:6:0, from /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp:8: /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/g_vmath.h: In instantiation of 'T length(const vector2_base&) [with T = float]': /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp:1168:33: required from here /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/g_vmath.h:43:32: error: 'sqrtf' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] return sqrtf(a.x*a.x + a.y*a.y); ^ In file included from /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/../g_game.h:7:0, from /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_common.h:2, from /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp:11: /usr/include/bits/mathcalls.h:157:1: note: 'float sqrtf(float)' declared here, later in the translation unit __MATHCALL (sqrt,, (_Mdouble_ __x)); ^ In file included from /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/g_collision.h:6:0, from /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp:8: /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/g_vmath.h: In instantiation of 'vector2_base closest_point_on_line(vector2_base, vector2_base, vector2_base) [with T = float]': /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp:1965:72: required from here /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/g_vmath.h:77:58: error: 'clamp' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive] return mix(line_point0, line_point1, clamp(t, (T)0, (T)1)); ^ In file included from /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/server/gs_server.cpp:10:0: /builddir/build/BUILD/teeworlds-0.4.2-src/src/game/g_math.h:8:10: note: 'template T clamp(T, T, T)' declared here, later in the translation unit inline T clamp(T val, T min, T max) ^ bam: compile_cxx returned error number 256 bam: error during build RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.pJh0sI (%build) Bad exit status from /var/tmp/rpm-tmp.pJh0sI (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 89, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 582, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target armv7hl --nodeps --define '__spec_check_template exit 0; ' /builddir/build/SPECS/teeworlds.spec