新手入门
- 积分
- 12
- 金钱
- 12
- 注册时间
- 2023-7-21
- 在线时间
- 3 小时
|
楼主 |
发表于 2023-8-22 18:55:22
|
显示全部楼层
make -C /home/yuan/mp1/kernel/linux-5.4.31 M=/home/yuan/driver/LinuxDriver/02_led modules make[1]: 进入目录“/home/yuan/mp1/kernel/linux-5.4.31” CC [M] /home/yuan/driver/LinuxDriver/02_led/led.o In file included from ./include/asm-generic/int-ll64.h:11, from ./arch/arm/include/uapi/asm/types.h:5, from ./include/uapi/linux/types.h:5, from ./include/linux/types.h:6, from /home/yuan/driver/LinuxDriver/02_led/led.c:1: ./include/uapi/asm-generic/int-ll64.h:12:10: 致命错误: asm/bitsperlong.h:没有那个文件或目录 12 | #include <asm/bitsperlong.h> | ^~~~~~~~~~~~~~~~~~~ 编译中断。 scripts/Makefile.build:265: recipe for target '/home/yuan/driver/LinuxDriver/02_led/led.o' failed make[2]: *** [/home/yuan/driver/LinuxDriver/02_led/led.o] Error 1 Makefile:1693: recipe for target '/home/yuan/driver/LinuxDriver/02_led' failed make[1]: *** [/home/yuan/driver/LinuxDriver/02_led] Error 2 make[1]: 离开目录“/home/yuan/mp1/kernel/linux-5.4.31” Makefile:9: recipe for target 'kernel_modules' failed make: *** [kernel_modules] Error 2 |
|