Closed xevilstar closed 2 years ago
Are you trying to build a 64bit module in a 32bit userland?
Also, current stable kernel seems to be 5.4.72, so raspberrypi-kernel-headers wouldn't have 5.4.77 headers.
@xevilstar is this issue still relevant? Else please close it, thanks :-)
errors while trying to compile any kind of module
apt-get install raspberrypi-kernel-headers Reading package lists... Done Building dependency tree
Reading state information... Done raspberrypi-kernel-headers is already the newest version (1.20201022-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@raspberrypi:/home/pi/Documents/WM8960-Audio-HAT# make make -C /lib/modules/5.4.77-v8+/build M=/home/pi/Documents/WM8960-Audio-HAT modules make[1]: /lib/modules/5.4.77-v8+/build: No such file or directory. Stop. make: [Makefile:9: all] Error 2 root@raspberrypi:/home/pi/Documents/WM8960-Audio-HAT# cd ../quectel/ root@raspberrypi:/home/pi/Documents/quectel# ls OneDrive_2020-11-14 quectel_linux root@raspberrypi:/home/pi/Documents/quectel# cd quectel_linux/ root@raspberrypi:/home/pi/Documents/quectel/quectel_linux# ls qmi_wwan_q 'Quectel_Linux&Android_QMI_WWAN_Driver_V1.1.zip' root@raspberrypi:/home/pi/Documents/quectel/quectel_linux# cd qmi_wwan_q/ root@raspberrypi:/home/pi/Documents/quectel/quectel_linux/qmi_wwan_q# make make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/5.4.77-v8+/build M=/home/pi/Documents/quectel/quectel_linux/qmi_wwan_q modules make[1]: /lib/modules/5.4.77-v8+/build: No such file or directory. Stop. make: [Makefile:22: default] Error 2