问题一
fatal error: linux/compiler-gcc5.h: No such file or directory
缺少compiler-gcc5.h有几个解决办法办法,我在Github上下载了一个compiler-gcc5.h,并顺利把问题解决了
转存到百度云,供大家下载
https://pan.baidu.com/s/1DOu4iWFgKpwGj29jeOGr3Q
当然亦可以降低交叉编译工具版本
sudo apt install gcc-4.7-arm-linux-gnueabi
问题二
arch/arm/kernel/return_address.c:65:7: error: redefinition of ‘return_address’
void *return_address(unsigned int level)
^
In file included from include/linux/ftrace.h:19:0,
from arch/arm/kernel/return_address.c:12:
/linux/hellow/6818GEC/kernel/arch/arm/include/asm/ftrace.h:48:21: note: previous definition of ‘return_address’ was here
extern inline void *return_address(unsigned int level)
*********************************