Build error on riscv64
jershell opened this issue · 0 comments
jershell commented
I have 2 errors.
First
DKMS make.log for rtl8814au-5.8.5.1 for kernel 5.19.0-1016-starfive (riscv64)
Sun Apr 30 14:38:35 MSK 2023
make ARCH=riscv64 CROSS_COMPILE= -C /lib/modules/5.19.0-1016-starfive/build M=/var/lib/dkms/rtl8814au/5.8.5.1/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-1016-starfive'
Makefile:704: arch/riscv64/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/riscv64/Makefile'. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-1016-starfive'
make: *** [Makefile:2393: modules] Error 2
When i copied
sudo cp -r /usr/src/linux-headers-5.19.0-1016-starfive/arch/riscv/ /usr/src/linux-headers-5.19.0-1016-starfive/arch/riscv64/
i got a error
DKMS make.log for rtl8814au-5.8.5.1 for kernel 5.19.0-1016-starfive (riscv64)
Sun Apr 30 14:25:30 MSK 2023
make ARCH=riscv64 CROSS_COMPILE= -C /lib/modules/5.19.0-1016-starfive/build M=/var/lib/dkms/rtl8814au/5.8.5.1/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-1016-starfive'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: riscv64-linux-gnu-gcc-12 (Ubuntu 12.1.0-2ubuntu1~22.04) 12.1.0
You are using: gcc-12 (Ubuntu 12.1.0-2ubuntu1~22.04) 12.1.0
CC [M] /var/lib/dkms/rtl8814au/5.8.5.1/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl8814au/5.8.5.1/build/core/rtw_security.o
Arch riscv64 is not supported with CONFIG_FTRACE_MCOUNT_RECORD at ./scripts/recordmcount.pl line 369.
make[2]: *** [scripts/Makefile.build:257: /var/lib/dkms/rtl8814au/5.8.5.1/build/core/rtw_security.o] Error 255
make[2]: *** Deleting file '/var/lib/dkms/rtl8814au/5.8.5.1/build/core/rtw_security.o'
make[2]: *** Waiting for unfinished jobs....
Arch riscv64 is not supported with CONFIG_FTRACE_MCOUNT_RECORD at ./scripts/recordmcount.pl line 369.
make[2]: *** [scripts/Makefile.build:257: /var/lib/dkms/rtl8814au/5.8.5.1/build/core/rtw_cmd.o] Error 255
make[2]: *** Deleting file '/var/lib/dkms/rtl8814au/5.8.5.1/build/core/rtw_cmd.o'
make[1]: *** [Makefile:1850: /var/lib/dkms/rtl8814au/5.8.5.1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-1016-starfive'
make: *** [Makefile:2393: modules] Error 2
( visionfive v1| ubuntu 22.04 | Bus 001 Device 003: ID 2357:0106 TP-Link Archer T9UH v1 [Realtek RTL8814AU] )
Do you have any ideas? x_x