I am not able to build the kernel modules on the jetson nano which has the L4T linux kernel based on Ubuntu 18.04
depmod...
DKMS: install completed.
Building initial module for 4.9.140-tegra
ERROR (dkms apport): kernel package linux-headers-4.9.140-tegra is not supported
Error! Bad return status for module build on kernel: 4.9.140-tegra (aarch64)
Consult /var/lib/dkms/anbox/1/build/make.log for more information.
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
rreddy78@jetson:~$ cat /var/lib/dkms/anbox/1/build/make.log
DKMS make.log for anbox-1 for kernel 4.9.140-tegra (aarch64)
Sat Oct 31 09:25:35 IST 2020
make: Entering directory '/var/lib/dkms/anbox/1/build/ashmem'
make -C /lib/modules/4.9.140-tegra/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9'
LD /var/lib/dkms/anbox/1/build/ashmem/built-in.o
CC [M] /var/lib/dkms/anbox/1/build/ashmem/deps.o
CC [M] /var/lib/dkms/anbox/1/build/ashmem/ashmem.o
LD [M] /var/lib/dkms/anbox/1/build/ashmem/ashmem_linux.o
Building modules, stage 2.
MODPOST 1 modules
CC /var/lib/dkms/anbox/1/build/ashmem/ashmem_linux.mod.o
LD [M] /var/lib/dkms/anbox/1/build/ashmem/ashmem_linux.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9'
make: Leaving directory '/var/lib/dkms/anbox/1/build/ashmem'
make: Entering directory '/var/lib/dkms/anbox/1/build/binder'
make -C /lib/modules/4.9.140-tegra/build V=0 M=$PWD
make[1]: Entering directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9'
LD /var/lib/dkms/anbox/1/build/binder/built-in.o
CC [M] /var/lib/dkms/anbox/1/build/binder/deps.o
CC [M] /var/lib/dkms/anbox/1/build/binder/binder.o
In file included from ./include/linux/module.h:18:0,
from /var/lib/dkms/anbox/1/build/binder/binder.c:29:
/var/lib/dkms/anbox/1/build/binder/binder.c:153:39: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
module_param_call(stop_on_user_error, binder_set_stop_on_user_error,
^
./include/linux/moduleparam.h:230:24: note: in definition of macro ‘module_param_call’
{ .flags = 0, .set = _set, .get = _get }; \
^~~~
/var/lib/dkms/anbox/1/build/binder/binder.c:153:39: note: (near initialization for ‘__param_ops_stop_on_user_error.set’)
module_param_call(stop_on_user_error, binder_set_stop_on_user_error,
^
./include/linux/moduleparam.h:230:24: note: in definition of macro ‘module_param_call’
{ .flags = 0, .set = _set, .get = _get }; \
^~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:335: recipe for target '/var/lib/dkms/anbox/1/build/binder/binder.o' failed
make[2]: [/var/lib/dkms/anbox/1/build/binder/binder.o] Error 1
Makefile:1629: recipe for target 'module/var/lib/dkms/anbox/1/build/binder' failed
make[1]: [module/var/lib/dkms/anbox/1/build/binder] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9'
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/var/lib/dkms/anbox/1/build/binder'
I am not able to build the kernel modules on the jetson nano which has the L4T linux kernel based on Ubuntu 18.04
depmod...
DKMS: install completed. Building initial module for 4.9.140-tegra ERROR (dkms apport): kernel package linux-headers-4.9.140-tegra is not supported Error! Bad return status for module build on kernel: 4.9.140-tegra (aarch64) Consult /var/lib/dkms/anbox/1/build/make.log for more information. Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
rreddy78@jetson:~$ cat /var/lib/dkms/anbox/1/build/make.log DKMS make.log for anbox-1 for kernel 4.9.140-tegra (aarch64) Sat Oct 31 09:25:35 IST 2020 make: Entering directory '/var/lib/dkms/anbox/1/build/ashmem' make -C /lib/modules/4.9.140-tegra/build V=0 M=$PWD make[1]: Entering directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9' LD /var/lib/dkms/anbox/1/build/ashmem/built-in.o CC [M] /var/lib/dkms/anbox/1/build/ashmem/deps.o CC [M] /var/lib/dkms/anbox/1/build/ashmem/ashmem.o LD [M] /var/lib/dkms/anbox/1/build/ashmem/ashmem_linux.o Building modules, stage 2. MODPOST 1 modules CC /var/lib/dkms/anbox/1/build/ashmem/ashmem_linux.mod.o LD [M] /var/lib/dkms/anbox/1/build/ashmem/ashmem_linux.ko make[1]: Leaving directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9' make: Leaving directory '/var/lib/dkms/anbox/1/build/ashmem' make: Entering directory '/var/lib/dkms/anbox/1/build/binder' make -C /lib/modules/4.9.140-tegra/build V=0 M=$PWD make[1]: Entering directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9' LD /var/lib/dkms/anbox/1/build/binder/built-in.o CC [M] /var/lib/dkms/anbox/1/build/binder/deps.o CC [M] /var/lib/dkms/anbox/1/build/binder/binder.o In file included from ./include/linux/module.h:18:0, from /var/lib/dkms/anbox/1/build/binder/binder.c:29: /var/lib/dkms/anbox/1/build/binder/binder.c:153:39: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] module_param_call(stop_on_user_error, binder_set_stop_on_user_error, ^ ./include/linux/moduleparam.h:230:24: note: in definition of macro ‘module_param_call’ { .flags = 0, .set = _set, .get = _get }; \ ^~~~ /var/lib/dkms/anbox/1/build/binder/binder.c:153:39: note: (near initialization for ‘__param_ops_stop_on_user_error.set’) module_param_call(stop_on_user_error, binder_set_stop_on_user_error, ^ ./include/linux/moduleparam.h:230:24: note: in definition of macro ‘module_param_call’ { .flags = 0, .set = _set, .get = _get }; \ ^~~~ cc1: some warnings being treated as errors scripts/Makefile.build:335: recipe for target '/var/lib/dkms/anbox/1/build/binder/binder.o' failed make[2]: [/var/lib/dkms/anbox/1/build/binder/binder.o] Error 1 Makefile:1629: recipe for target 'module/var/lib/dkms/anbox/1/build/binder' failed make[1]: [module/var/lib/dkms/anbox/1/build/binder] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.9.140-tegra-ubuntu18.04_aarch64/kernel-4.9' Makefile:8: recipe for target 'all' failed make: *** [all] Error 2 make: Leaving directory '/var/lib/dkms/anbox/1/build/binder'