lua - Premake5 Won't Build On FreeBSD 10.1 -
i'm trying build premake5 on freebsd 10.1 sources. got compile removing "-dl" option , using gmake explicitly build. built, can't spit out following error message. doesn't matter how invoke it. crashes on 'premake5 --help'.
here's message:
panic: unprotected error in call lua api (attempt call string value)
the code buggy get-out. starts assuming linux posix not case. use linuxism on place converting posix going quite task, , until done never work satisfactorily on non-linux posix based systems.
the -ldl
first stumbling block. next in function premake_locate_executable
in premake.c
. in using /proc
filesystem linuxism , since fails on bsd falling lua methods seem assuming lua_tostring
pops corresponding value doesn't. since stack isn't balanced in function following lua_call
trying call garbage they've left on stack rather function intended.
even after fixed issue use getconf _nprocessors_onln
number of cores multi-job make build don't check call succeeds (which doesn't outside of linux , macosx).
after fixing issue ran problem makefiles aren't regular make, gnu-make, had change using gmake
try , build.
from point came unravelled because none of premake files in contrib
directory configured bsd despite being 1 of legal configuration targets (i.e. doesn't default linux
) , there no configuration components.
tldr: bsd not supported platform
Comments
Post a Comment