hi, sorry for the wrong info.
git does not have gcc included.
git windows has a mini mingw32 environment, but no gcc included.
just that the gcc I installed is in the PATH ,
and in git-bash it accept the PATH, and can execute gcc.
anyway, I found that the true problem is : sh.exe
this file:
C:\program\Git\bin\sh.exe
if it exists, then make luart failed.
if I delete or rename this file sh.exe, then make luaRT success.
if Git\bin\sh.exe exists in PATH, then gcc make failed:
gcc.exe: error: lualvm.c: No such file or directory
if requires unix path separator /, not \
if there is not any Git\bin\sh.exe, then it can use normal window separator back slash \
strange
and I find that I can use git or git-bash without this file sh.exe, so I just delete this useless file.