为什么用通用 ARM 交叉编译正点原子修改的linux内核时会出现错误和这些警告?
求助,大佬们!
tmp/ccGvHNb4.s: Assembler messages:
/tmp/ccGvHNb4.s:1261: 错误: .err encountered
make[1]: *** [scripts/Makefile.build:258:kernel/fork.o] 错误 1
make: *** [Makefile:950:kernel] 错误 2
make: *** 正在等待未完成的任务....
CC arch/arm/mm/mmap.o
CC arch/arm/mach-imx/pm-imx5.o
In file included from include/linux/kernel.h:11,
from include/linux/list.h:8,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:50,
from include/linux/swap.h:4,
from include/linux/suspend.h:4,
from arch/arm/mach-imx/pm-imx5.c:11:
include/linux/log2.h:22:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes]
22 | int ____ilog2_NaN(void);
| ^~~
In file included from include/linux/kernel.h:11,
from arch/arm/mach-imx/devices/devices-common.h:9,
from arch/arm/mach-imx/devices/platform-imx-dma.c:9:
include/linux/log2.h:22:1: warning: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Wattributes]
22 | int ____ilog2_NaN(void);
| ^~~
LD arch/arm/mach-imx/devices/built-in.o
LD arch/arm/mach-imx/built-in.o