I was trying to cross compile selftest of Linux for ARM architecure , I am getting following errors , I have no idea of about cross compilation :
pradeepgoswami@delandroid02:~/5_1_code/bin/code$ make ARCH=arm CROSS_COMPILE=arm-eabi- -C kernel/tools/testing/selftests/vm/
make: Entering directory `/home/pradeepgoswami/5_1_code/bin/code/kernel/tools/testing/selftests/vm'
arm-eabi-gcc -Wall -o hugepage-mmap hugepage-mmap.c
hugepage-mmap.c:19:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
^
compilation terminated.
make: *** [hugepage-mmap] Error 1
I am interested in vm test cases of selftest tool