Interestingly, Ubuntu Mate for raspberry pi does not need luajit to install sysbench. (That system has one minor version older systbench: 1.0.18+ds-1 but luajit is not installed.)
had a look into Manjaro for Raspberry PI too:
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)
sudo emerge sysbench
Password:
Local copy of remote index is up-to-date and will be used.
Local copy of remote index is up-to-date and will be used.
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 2) dev-lang/luajit-2.0.5-r2::gentoo
>>> Failed to emerge dev-lang/luajit-2.0.5-r2, Log file:
>>> '/var/tmp/portage/dev-lang/luajit-2.0.5-r2/temp/build.log'
>>> Jobs: 0 of 2 complete, 1 failed Load avg: 1.91, 2.77, 2.16
* Package: dev-lang/luajit-2.0.5-r2
* Repository: gentoo
* Maintainer: rafaelmartins@gentoo.org
* USE: arm64 elibc_glibc kernel_linux userland_GNU
* FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking LuaJIT-2.0.5.tar.gz to /var/tmp/portage/dev-lang/luajit-2.0.5-r2/work
>>> Source unpacked in /var/tmp/portage/dev-lang/luajit-2.0.5-r2/work
>>> Preparing source in /var/tmp/portage/dev-lang/luajit-2.0.5-r2/work/LuaJIT-2.0.5 ...
* Applying luajit-2-ldconfig.patch ...
[ ok ]
* Applying CVE-2020-15890.patch ...
[ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lang/luajit-2.0.5-r2/work/LuaJIT-2.0.5 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-lang/luajit-2.0.5-r2/work/LuaJIT-2.0.5 ...
make -j5 -l4 Q= PREFIX=/usr MULTILIB=lib64 DESTDIR=/var/tmp/portage/dev-lang/luajit-2.0.5-r2/image/ HOST_CC=aarch64-unknown-linux-gnu-gcc STATIC_CC=aarch64-unknown-linux-gnu-gcc 'DYNAMIC_CC=aarch64-unknown-linux-gnu-gcc -fPIC' TARGET_LD=aarch64-unknown-linux-gnu-gcc 'TARGET_AR=aarch64-unknown-linux-gnu-ar rcus' BUILDMODE=dynamic TARGET_STRIP=true INSTALL_LIB=/var/tmp/portage/dev-lang/luajit-2.0.5-r2/image/usr/lib64 XCFLAGS=
==== Building LuaJIT 2.0.5 ====
make -C src
make[1]: Entering directory '/var/tmp/portage/dev-lang/luajit-2.0.5-r2/work/LuaJIT-2.0.5/src'
lj_arch.h:55:2: error: #error "No support for this architecture (yet)"
55 | #error "No support for this architecture (yet)"
| ^~~~~
lj_arch.h:294:2: error: #error "No target architecture defined"
294 | #error "No target architecture defined"
| ^~~~~
lj_arch.h:55:2: error: #error "No support for this architecture (yet)"
55 | #error "No support for this architecture (yet)"
| ^~~~~
lj_arch.h:294:2: error: #error "No target architecture defined"
294 | #error "No target architecture defined"
| ^~~~~
lj_arch.h:55:2: error: #error "No support for this architecture (yet)"
55 | #error "No support for this architecture (yet)"
| ^~~~~
lj_arch.h:294:2: error: #error "No target architecture defined"
294 | #error "No target architecture defined"
| ^~~~~
lj_arch.h:55:2: error: #error "No support for this architecture (yet)"
55 | #error "No support for this architecture (yet)"
| ^~~~~
lj_arch.h:294:2: error: #error "No target architecture defined"
294 | #error "No target architecture defined"
| ^~~~~
lj_arch.h:55:2: error: #error "No support for this architecture (yet)"
55 | #error "No support for this architecture (yet)"
| ^~~~~
lj_arch.h:294:2: error: #error "No target architecture defined"
294 | #error "No target architecture defined"
| ^~~~~
lj_arch.h:55:2: error: #error "No support for this architecture (yet)"
55 | #error "No support for this architecture (yet)"
| ^~~~~
lj_arch.h:294:2: error: #error "No target architecture defined"
294 | #error "No target architecture defined"
| ^~~~~
Makefile:254: *** Unsupported target architecture. Stop.
make[1]: Leaving directory '/var/tmp/portage/dev-lang/luajit-2.0.5-r2/work/LuaJIT-2.0.5/src'
make: *** [Makefile:110: default] Error 2
* ERROR: dev-lang/luajit-2.0.5-r2::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=dev-lang/luajit-2.0.5-r2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-lang/luajit-2.0.5-r2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-lang/luajit-2.0.5-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-lang/luajit-2.0.5-r2/temp/environment'.
* Working directory: '/var/tmp/portage/dev-lang/luajit-2.0.5-r2/work/LuaJIT-2.0.5'
* S: '/var/tmp/portage/dev-lang/luajit-2.0.5-r2/work/LuaJIT-2.0.5'
* Messages for package dev-lang/luajit-2.0.5-r2:
* ERROR: dev-lang/luajit-2.0.5-r2::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=dev-lang/luajit-2.0.5-r2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-lang/luajit-2.0.5-r2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-lang/luajit-2.0.5-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-lang/luajit-2.0.5-r2/temp/environment'.
* Working directory: '/var/tmp/portage/dev-lang/luajit-2.0.5-r2/work/LuaJIT-2.0.5'
* S: '/var/tmp/portage/dev-lang/luajit-2.0.5-r2/work/LuaJIT-2.0.5'
Interestingly, Ubuntu Mate for raspberry pi does not need luajit to install sysbench. (That system has one minor version older systbench: 1.0.18+ds-1 but luajit is not installed.)
had a look into Manjaro for Raspberry PI too:
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)