安装 luajit 错误:GG_State 中没有名为 'J' 的成员

我想在我的 MacbookAir 上安装 LuaJIT-2.1.0-beta2,当我运行“make”命令时,它会抛出一些错误信息,如下所示。

==== 正在构建 LuaJIT 2.1.0-beta2 ====

/Applications/Xcode.app/Contents/Developer/usr/bin/make -C src
HOSTCC    host/buildvm.o
In file included from host/buildvm.c:73:
vm_x86.dasc:2642:109: error: no member named 'J' in 'GG_State'
  ...Dt7(->pc), PC2PROTO(framesize), Dt1(->base), Dt1(->top), GG_DISP2J, DISP...

./lj_dispatch.h:112:20: note: expanded from macro 'GG_DISP2J'
#define GG_DISP2J       (GG_OFS(J) - GG_OFS(dispatch))

./lj_dispatch.h:103:29: note: expanded from macro 'GG_OFS'
#define GG_OFS(field)   ((int)offsetof(GG_State, field))

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/include/stddef.h:120:24: note:
      expanded from macro 'offsetof'
define offsetof(t, d) __builtin_offsetof(t, d)

......

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/8.1.0/include/stddef.h:120:24: note:
      expanded from macro 'offsetof'
 define offsetof(t, d) __builtin_offsetof(t, d)

14 errors generated.
make[1]: [host/buildvm.o] Error 1
make:  [default] Error 2

我不知道它出了什么问题,能帮我吗?非常感谢。(这是我在这里的第一个问题,我的英语很差。任何需要修改的内容请告诉我,抱歉和谢谢。)

点赞