curity -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pipe -O2 -ffunction-sections -fdata-sections -fPIE -fstack-protector-all -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 -DLUA_COMPAT_ALL -std=c99 -D_POSIX_C_SOURCE=200809L -U_XOPEN_SOURCE -D_XOPEN_SOURCE=700 -DNDEBUG -D_FORTIFY_SOURCE=2 -DVERSION=\"v0.6\" -DHAVE_MEMRCHR=1 -DVIS_PATH=\"/usr/share/vis\" -DCONFIG_HELP=1 -DCONFIG_CURSES=1 -DCONFIG_LUA=1 -DCONFIG_LPEG=0 -DCONFIG_TRE=1 -DCONFIG_SELINUX=1 -DCONFIG_ACL=1 array.c buffer.c libutf.c main.c map.c sam.c text.c text-motions.c text-objects.c text-util.c ui-terminal.c view.c vis.c vis-lua.c vis-modes.c vis-motions.c vis-operators.c vis-registers.c vis-marks.c vis-prompt.c vis-text-objects.c text-regex-tre.c -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,now -Wl,-z,relro -Wl,--gc-sections -pie -ltermkey -lncursesw -ltinfo -lacl -lselinux -ltre -llua -lm -ldl -lc -o vis RPM build errors: In file included from /usr/include/string.h:519, from view.c:1: In function 'strncat', inlined from 'view_draw' at view.c:384:4: /usr/include/bits/string_fortified.h:137:10: warning: '__strncat_chk' output may be truncated copying between 0 and 15 bytes from a string of length 15 [-Wstringop-truncation] 137 | return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ vis-lua.c: In function 'getpos': vis-lua.c:500:9: warning: implicit declaration of function 'lua_tounsigned' [-Wimplicit-function-declaration] 500 | return lua_tounsigned(L, narg); | ^~~~~~~~~~~~~~ vis-lua.c: In function 'pushpos': vis-lua.c:514:3: warning: implicit declaration of function 'lua_pushunsigned'; did you mean 'lua_pushinteger'? [-Wimplicit-function-declaration] 514 | lua_pushunsigned(L, pos); | ^~~~~~~~~~~~~~~~ | lua_pushinteger vis-lua.c: In function 'keymap': vis-lua.c:820:13: warning: implicit declaration of function 'luaL_checkint'; did you mean 'luaL_checkany'? [-Wimplicit-function-declaration] 820 | int mode = luaL_checkint(L, 2); | ^~~~~~~~~~~~~ | luaL_checkany vis-lua.c: In function 'mappings': vis-lua.c:970:2: error: declaration of non-variable 'luaL_checkint' in 'for' loop initial declaration 970 | for (Mode *mode = mode_get(vis, luaL_checkint(L, 2)); mode; mode = mode->parent) { | ^~~ vis-lua.c: In function 'motion': vis-lua.c:988:22: warning: implicit declaration of function 'luaL_checkunsigned'; did you mean 'luaL_checkinteger'? [-Wimplicit-function-declaration] 988 | enum VisMotion id = luaL_checkunsigned(L, 2); | ^~~~~~~~~~~~~~~~~~ | luaL_checkinteger vis-lua.c: In function 'file_lines_iterator': vis-lua.c:2158:16: warning: implicit declaration of function 'luaL_optunsigned'; did you mean 'luaL_optinteger'? [-Wimplicit-function-declaration] 2158 | size_t line = luaL_optunsigned(L, 2, 1); | ^~~~~~~~~~~~~~~~ | luaL_optinteger make: *** [Makefile:62: vis] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.gjpMYr (%build) Bad exit status from /var/tmp/rpm-tmp.gjpMYr (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/vis.spec