"lmbench" Android-9 cross compilation error


I am trying to cross compile the lmbench for Android 9 and noticed below error.

Can some one help me on the same?


koti#~/lmbench/lmbench3$ make CC=/opt/android/standalone_toolchains/arm64/bin/aarch64-linux-android-gcc  OS=linux
cd src && make
make[1]: Entering directory '/home/admin1/lmbench/lmbench3/src'
+ make OS=linux CC=/opt/android/standalone_toolchains/arm64/bin/aarch64-linux-android-gcc CFLAGS= -O -static -DSYS5 -Dvalloc=malloc -DRUSAGE -DHAVE_uint=1 -DHAVE_uint64_t=1 -DHAVE_int64_t=1 -DHAVE_DRAND48 -DHAVE_SCHED_SETAFFINITY=1 -I/usr/include/tirpc LDLIBS=-lm -ltirpc O=../bin/linux all
make[2]: Entering directory '/home/admin1/lmbench/lmbench3/src'
/opt/android/standalone_toolchains/arm64/bin/aarch64-linux-android-gcc -O -static -DSYS5 -Dvalloc=malloc -DRUSAGE -DHAVE_uint=1 -DHAVE_uint64_t=1 -DHAVE_int64_t=1 -DHAVE_DRAND48 -DHAVE_SCHED_SETAFFINITY=1 -I/usr/include/tirpc  -pie -c lib_tcp.c -o ../bin/linux/lib_tcp.o
clang80: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
In file included from lib_tcp.c:9:
./bench.h:38:10: fatal error: 'rpc/rpc.h' file not found
#include        <rpc/rpc.h>
1 error generated.
Makefile:246: recipe for target '../bin/linux/lib_tcp.o' failed
make[2]: *** [../bin/linux/lib_tcp.o] Error 1
make[2]: Leaving directory '/home/admin1/lmbench/lmbench3/src'
Makefile:114: recipe for target 'lmbench' failed
make[1]: *** [lmbench] Error 2
make[1]: Leaving directory '/home/admin1/lmbench/lmbench3/src'
Makefile:20: recipe for target 'build' failed
make: *** [build] Error 2


More questions in this forum