uname -a
Linux rock64 5.8.16-rockchip64 #20.08.14 SMP PREEMPT Tue Oct 20 22:37:51 CEST 2020 aarch64 GNU/Linux
gcc -v
(snip) gcc version 8.3.0 (Debian 8.3.0-6)
make
make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/5.8.16-rockchip64/build M=/home/silviu/rtl8821cu/rtl8821CU modules
make[1]: Entering directory '/usr/src/linux-source-5.8.16-rockchip64'
CC [M] /home/silviu/rtl8821cu/rtl8821CU/core/rtw_cmd.o
gcc: error: unrecognized command line option ‘-mbranch-protection=pac-ret+leaf’; did you mean ‘-fcf-protection=return’?
gcc: error: unrecognized command line option ‘-mstack-protector-guard=sysreg’; did you mean ‘-fstack-protector-strong’?
gcc: error: unrecognized command line option ‘-mstack-protector-guard-reg=sp_el0’; did you mean ‘-fstack-protector-all’?
gcc: error: unrecognized command line option ‘-mstack-protector-guard-offset=1192’; did you mean ‘-fstack-protector-strong’?
uname -a Linux rock64 5.8.16-rockchip64 #20.08.14 SMP PREEMPT Tue Oct 20 22:37:51 CEST 2020 aarch64 GNU/Linux
gcc -v (snip) gcc version 8.3.0 (Debian 8.3.0-6)
make make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/5.8.16-rockchip64/build M=/home/silviu/rtl8821cu/rtl8821CU modules make[1]: Entering directory '/usr/src/linux-source-5.8.16-rockchip64' CC [M] /home/silviu/rtl8821cu/rtl8821CU/core/rtw_cmd.o gcc: error: unrecognized command line option ‘-mbranch-protection=pac-ret+leaf’; did you mean ‘-fcf-protection=return’? gcc: error: unrecognized command line option ‘-mstack-protector-guard=sysreg’; did you mean ‘-fstack-protector-strong’? gcc: error: unrecognized command line option ‘-mstack-protector-guard-reg=sp_el0’; did you mean ‘-fstack-protector-all’? gcc: error: unrecognized command line option ‘-mstack-protector-guard-offset=1192’; did you mean ‘-fstack-protector-strong’?