Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building errors trying to compile on arm64 - gcc 10.2.1 #15

Open
otavioborges opened this issue Mar 20, 2024 · 0 comments
Open

Building errors trying to compile on arm64 - gcc 10.2.1 #15

otavioborges opened this issue Mar 20, 2024 · 0 comments

Comments

@otavioborges
Copy link

otavioborges commented Mar 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant