We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
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=linuxcd src && makemake[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 allmake[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.oclang80: 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' failedmake[2]: *** [../bin/linux/lib_tcp.o] Error 1make[2]: Leaving directory '/home/admin1/lmbench/lmbench3/src'Makefile:114: recipe for target 'lmbench' failedmake[1]: *** [lmbench] Error 2make[1]: Leaving directory '/home/admin1/lmbench/lmbench3/src'Makefile:20: recipe for target 'build' failedmake: *** [build] Error 2