#443·sysbench

Cross compile error

Author: WangYingChuAomCreated Jan 5, 2022Updated Oct 22, 2025

I am trying to run the sysbench on arm. I use the command ./autogen.sh, then ./configure --build=aarch64-linux --host=arm CC=/media/sf_20.04_share/asdk-6.4.1-a55-EL-4.9-g2.26-a64nut-180426/bin/asdk64-linux-gcc. I am not sure is it correct for the command ./configure. Then, make -j, get the error as the below

Making all in third_party/luajit make[1]: Entering directory '/media/sf_20.04_share/sysbench/third_party/luajit' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/media/sf_20.04_share/sysbench/third_party/luajit' Making all in third_party/concurrency_kit make[1]: Entering directory '/media/sf_20.04_share/sysbench/third_party/concurrency_kit' rm -rf tmp mkdir tmp tar -C . -cf - ck | tar -xf - -C tmp/ chmod -R u+w tmp cd tmp/ck &&
CC="/media/sf_20.04_share/asdk-6.4.1-a55-EL-4.9-g2.26-a64nut-180426/bin/asdk64-linux-gcc"
CFLAGS="-O3 -funroll-loops -ggdb3 -D_GNU_SOURCE -DCK_MD_CACHELINE=128"
LDFLAGS="-static"
./configure
--prefix=/media/sf_20.04_share/sysbench/third_party/concurrency_kit &&
make &&
make install Detecting operating system.......success [linux] Detecting machine architecture...success [x86_64] Finding dirname command..........success [/usr/bin/dirname] Determining build directory......success [/media/sf_20.04_share/sysbench/third_party/concurrency_kit/tmp/ck] Finding gzip tool................success [/usr/bin/gzip] Finding suitable compiler........failed [update compiler] make[1]: *** [Makefile:505: lib/libck.a] Error 1

How can I fix it?