guillaumechereau / goxel

Goxel: Free and Open Source 3D Voxel Editor
GNU General Public License v3.0
2.8k stars 223 forks source link

scons error 1 #200

Closed StuckUpCreations closed 4 years ago

StuckUpCreations commented 4 years ago

i get this error when building on linux (arch)

In file included from src/luagoxel.c:56: In function ‘createstrobj’, inlined from ‘luaS_createlngstrobj’ at src/../ext_src/lua/lstring.c:148:17, inlined from ‘luaS_newlstr’ at src/../ext_src/lua/lstring.c:206:10, inlined from ‘pushstr’ at src/../ext_src/lua/lobject.c:391:3, inlined from ‘luaO_pushvfstring’ at src/../ext_src/lua/lobject.c:405:5: src/../ext_src/lua/lstring.c:142:17: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 142 | getstr(ts)[l] = '\0'; /* ending 0 */ In file included from src/../ext_src/lua/ldebug.h:11, from src/../ext_src/lua/lundump.c:17, from src/luagoxel.c:30: src/../ext_src/lua/lobject.c: In function ‘luaO_pushvfstring’: src/../ext_src/lua/lstate.h:213:18: note: at offset 0 to object ‘ts’ with size 24 declared here 213 | struct TString ts; | ^~ In file included from src/luagoxel.c:56: In function ‘createstrobj’, inlined from ‘luaS_createlngstrobj’ at src/../ext_src/lua/lstring.c:148:17, inlined from ‘luaS_newlstr’ at src/../ext_src/lua/lstring.c:206:10: src/../ext_src/lua/lstring.c:142:17: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 142 | getstr(ts)[l] = '\0'; /* ending 0 */ In file included from src/../ext_src/lua/ldebug.h:11, from src/../ext_src/lua/lundump.c:17, from src/luagoxel.c:30: src/../ext_src/lua/lstring.c: In function ‘luaS_newlstr’: src/../ext_src/lua/lstate.h:213:18: note: at offset 0 to object ‘ts’ with size 24 declared here 213 | struct TString ts; | ^~ In file included from src/luagoxel.c:56: In function ‘createstrobj’, inlined from ‘luaS_createlngstrobj’ at src/../ext_src/lua/lstring.c:148:17, inlined from ‘luaS_newlstr’ at src/../ext_src/lua/lstring.c:206:10, inlined from ‘luaS_new’ at src/../ext_src/lua/lstring.c:231:10, inlined from ‘luaT_init’ at src/../ext_src/lua/ltm.c:49:23: src/../ext_src/lua/lstring.c:142:17: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 142 | getstr(ts)[l] = '\0'; /* ending 0 */ In file included from src/../ext_src/lua/ldebug.h:11, from src/../ext_src/lua/lundump.c:17, from src/luagoxel.c:30: src/../ext_src/lua/ltm.c: In function ‘luaT_init’: src/../ext_src/lua/lstate.h:213:18: note: at offset 0 to object ‘ts’ with size 24 declared here 213 | struct TString ts; | ^~ In file included from src/luagoxel.c:56: In function ‘createstrobj’, inlined from ‘luaS_createlngstrobj’ at src/../ext_src/lua/lstring.c:148:17, inlined from ‘luaS_newlstr’ at src/../ext_src/lua/lstring.c:206:10, inlined from ‘luaS_new’ at src/../ext_src/lua/lstring.c:231:10, inlined from ‘luaX_init’ at src/../ext_src/lua/llex.c:75:19: src/../ext_src/lua/lstring.c:142:17: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 142 | getstr(ts)[l] = '\0'; /* ending 0 */ In file included from src/../ext_src/lua/ldebug.h:11, from src/../ext_src/lua/lundump.c:17, from src/luagoxel.c:30: src/../ext_src/lua/llex.c: In function ‘luaX_init’: src/../ext_src/lua/lstate.h:213:18: note: at offset 0 to object ‘ts’ with size 24 declared here 213 | struct TString ts; | ^~ In file included from src/luagoxel.c:56: In function ‘createstrobj’, inlined from ‘luaS_createlngstrobj’ at src/../ext_src/lua/lstring.c:148:17, inlined from ‘luaS_newlstr’ at src/../ext_src/lua/lstring.c:206:10, inlined from ‘luaS_new’ at src/../ext_src/lua/lstring.c:231:10, inlined from ‘luaT_init’ at src/../ext_src/lua/ltm.c:49:23, inlined from ‘f_luaopen’ at src/../ext_src/lua/lstate.c:209:3: src/../ext_src/lua/lstring.c:142:17: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 142 | getstr(ts)[l] = '\0'; /* ending 0 */ In file included from src/../ext_src/lua/ldebug.h:11, from src/../ext_src/lua/lundump.c:17, from src/luagoxel.c:30: src/../ext_src/lua/lstate.c: In function ‘f_luaopen’: src/../ext_src/lua/lstate.h:213:18: note: at offset 0 to object ‘ts’ with size 24 declared here 213 | struct TString ts; | ^~ src/luagoxel.c: At top level: cc1: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics cc1: note: unrecognized command-line option ‘-Wno-unknow-pragma’ may have been intended to silence earlier diagnostics cc1: all warnings being treated as errors scons: *** [src/luagoxel.o] Error 1 scons: building terminated because of errors. make: *** [Makefile:8: release] Error 2