Open zetalog opened 2 years ago
I also created an issue to ck here if this issue is not meant to be fixed by sysbench: https://github.com/concurrencykit/ck/issues/193
ck riscv support is pushed here: https://github.com/concurrencykit/ck/pull/194
Do you cross compile a riscv binary on a X86 host machine? I found it will compile with gcc on x86 even if I select --host and --target variable.:
./configure --with-sysroot=/home/caelus/share/sysbench/rfs_ramfs --target=riscv32-linux-gnu --without-mysql --prefix=/mnt/sysbench --host=riscv32-linux-gnu
If I set CC to the cross tool chain, it wille stopped with error in
$CC -o .1 .1.c
COMPILER=`./.1 2> /dev/null`
r=$?
rm -f .1.c .1
Since it tried to run a riscv binary on a X86 machine.
I tried sysbench with the following build steps:
And failed with:
It seems the concurrency_ck configure was trying to execute a target binary on host:
What should I do to fix the issue? Thanks in advance.