akopytov / sysbench

Scriptable database and system performance benchmark
GNU General Public License v2.0
6.09k stars 1.08k forks source link

Cross compile error #443

Open WangYingChuAom opened 2 years ago

WangYingChuAom commented 2 years ago

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?

liuwenlve commented 1 year ago

do you have fix it?i have the same problem

RomanovSergey commented 1 year ago

do you have fix it?i have the same problem

This error in subproject: concurrency_kit. You may use config option: --with-system-ck do not make concurrency_kit and use external one.

dhruux commented 1 year ago

What is solution for this error? I am facing same!

garyfcg commented 1 year ago

Hi All, How to fix i? Detecting operating system.......success [linux] Detecting machine architecture...success [x86_64] Finding dirname command..........success [/usr/bin/dirname] Determining build directory......success [/workspace/opensource/sysbench/third_party/concurrency_kit/tmp/ck] Finding gzip tool................success [/bin/gzip] Finding suitable compiler........failed [update compiler] Makefile:498: recipe for target 'lib/libck.a' failed make[1]: [lib/libck.a] Error 1 make[1]: Leaving directory '/workspace/chunguo.feng/opensource/sysbench/third_party/concurrency_kit' Makefile:478: recipe for target 'all-recursive' failed make: [all-recursive] Error 1