-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error compiling wrk on zLinux #32
Comments
Are u following our instruction(https://github.com/linux-on-ibm-z/docs/wiki/Building-LuaJIT) here to build luajit and has problem? Your issue seems to be talking about building another package. |
It looks like bcsave.lua is part of the JIT package. We haven't ported the JIT compiler to s390x (we only did the virtual machine). It looks like the Makefile is trying to save the bytecode generated by luajit directly into an object file but the code for doing that in bcsave.lua doesn't support s390x. For example there is no s390x case in this line: f16(({ x86=3, x64=62, arm=40, arm64=183, arm64be=183, ppc=20, mips=8, mipsel=8 })[ctx.arch]) You might be able to get it to work by adding code to handle s390x to bcsave.lua. I'm not sure if it will be enough though, we might need full JIT support for this application. |
@mundaym Thanks Mike. Indeed it sounds like the s390x port is missing some features (JIT in this case). Hacking bcsave.lua might get wrk to work but that requires lua language knowledge which I certainly don't possess. I imagine porting JIT would be a non-trivial undertaking. Is there any plan to do so in the (hopefully not so distant) future? |
We don't have plan to port JIT because the effort is too huge. We might re-consider if there is a solid business case to do so. Email me to talk further. |
Install LuaJIT from git://github.com/linux-on-ibm-z/LuaJIT.git using branch v2.1 into /usr/local.
Clone wrk from https://github.com/wg/wrk then modify Makefile as:
Compiling wrk with
results in the following error:
The text was updated successfully, but these errors were encountered: