新手入门
- 积分
- 3
- 金钱
- 3
- 注册时间
- 2025-12-1
- 在线时间
- 1 小时
|
发表于 2025-12-1 16:21:12
|
显示全部楼层
make -C /home/liu/linux/SDK/kernel M=/home/liu/linux/code ARCH=arm64 CROSS_COMPILE=/home/liu/linux/toolchain/bin/arm-buildroot-linux-gnueabihf- DISABLE_GCC_PLUGINS=1 modules
make[1]: Entering directory '/home/liu/linux/SDK/kernel'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621
You are using: arm-buildroot-linux-gnueabihf-gcc.br_real (Buildroot -g5dcf7b5d) 12.4.0
CC [M] /home/liu/linux/code/dev.o
arm-buildroot-linux-gnueabihf-gcc.br_real: error: unrecognized argument in option ‘-mstack-protector-guard=sysreg’
arm-buildroot-linux-gnueabihf-gcc.br_real: note: valid arguments to ‘-mstack-protector-guard=’ are: global tls
arm-buildroot-linux-gnueabihf-gcc.br_real: error: unrecognized command-line option ‘-mstack-protector-guard-reg=sp_el0’; did you mean ‘-mstack-protector-guard-offset=’?
make[2]: *** [scripts/Makefile.build:250: /home/liu/linux/code/dev.o] Error 1
make[1]: *** [Makefile:2009: /home/liu/linux/code] Error 2
make[1]: Leaving directory '/home/liu/linux/SDK/kernel'
make: *** [Makefile:15: all] Error 2根据提供的文档内容尝试编译时报错,想问一下是什么问题吗
|
|