-
Notifications
You must be signed in to change notification settings - Fork 39
Building errors trying to compile on arm64 - gcc 10.2.1 #15
Copy link
Copy link
Open
Description
This is problem with dkms on debian, but to get it building I needed to force the ARCH variable by running the build command as:
sudo ARCH=arm64 dkms build -m rtl88x2ce -v 35403
Three Werrors were failing the build as well: -Werror-implict-fallthrough, -Werror-endif-labels, -Werror-vla, so added those to Makefile:
EXTRA_CFLAGS += -Wno-implicit-fallthrough
EXTRA_CFLAGS += -Wno-endif-labels
EXTRA_CFLAGS += -Wno-vla
Also needed to edit os_dep/osdep_service.c to include the necessary kernel namespace:
}
+MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
static int readFile(struct file *fp, char *buf, int len)
{
int rlen = 0, sum = 0;
Kernel version was:
Linux rock-3a 5.10.160-12-rk356x #fd78925da SMP Tue Aug 29 11:45:05 UTC 2023 aarch64 GNU/Linux
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels