giltene / wrk2

A constant throughput, correct latency recording variant of wrk
Apache License 2.0
4.28k stars 395 forks source link

Fail install on Mac OSX #85

Closed WilliamB17 closed 8 months ago

WilliamB17 commented 5 years ago

HOSTCC    host/minilua.o
HOSTLINK  host/minilua
DYNASM    host/buildvm_arch.h
HOSTCC    host/buildvm.o
HOSTCC    host/buildvm_asm.o
HOSTCC    host/buildvm_peobj.o
HOSTCC    host/buildvm_lib.o
HOSTCC    host/buildvm_fold.o
HOSTLINK  host/buildvm
BUILDVM   lj_vm.s
ASM       lj_vm.o
CC        lj_gc.o
BUILDVM   lj_ffdef.h
CC        lj_err.o
CC        lj_char.o
BUILDVM   lj_bcdef.h
CC        lj_bc.o
CC        lj_obj.o
CC        lj_str.o
CC        lj_tab.o
CC        lj_func.o
CC        lj_udata.o
CC        lj_meta.o
CC        lj_debug.o
CC        lj_state.o
CC        lj_dispatch.o
CC        lj_vmevent.o
CC        lj_vmmath.o
CC        lj_strscan.o
CC        lj_api.o
CC        lj_lex.o
CC        lj_parse.o
CC        lj_bcread.o
CC        lj_bcwrite.o
CC        lj_load.o
CC        lj_ir.o
CC        lj_opt_mem.o
BUILDVM   lj_folddef.h
make[1]: *** [lj_folddef.h] Segmentation fault: 11
make[1]: *** Deleting file `lj_folddef.h'
make: *** [deps/luajit/src/libluajit.a] Error 2```

I am on macOS 10.15.1 (19B88)

Is there any solution for this? Thank you.
abelsalgadoromeroWD commented 4 years ago

I having the same issue trying to compile. I just cloned the repo and run make.

sunzoje commented 4 years ago

Seems issue is with LuaJit MACOSX_DEPLOYMENT_TARGET https://github.com/LuaJIT/LuaJIT/issues/538

ytian commented 4 years ago

you can try to replace the "luajit" directory to new version luajit: https://github.com/LuaJIT/LuaJIT, and run make again(old luajit may have some problems in osx 10.15).

When you make, you may meet this problem:
error: array has incomplete element type 'const struct luaL_reg'

then you can solve it by adding following line in src/script.c to solve the problem:

define luaL_reg luaL_Reg

then make it again.