当前运行的内核版本:6.1.112-rt43-DR-4.0.2-2507211155-gfd2b59-g30e6e8
PCAN驱动版本:peak-linux-driver-8.20.0
sunrise@ubuntu:~$ sudo make -C /usr/src/linux-headers-$(uname -r) prepare
make: Entering directory '/usr/src/linux-headers-6.1.112-rt43-DR-4.0.2-2507211155-gfd2b59-g30e6e8'
CALL scripts/checksyscalls.sh
make: Leaving directory '/usr/src/linux-headers-6.1.112-rt43-DR-4.0.2-2507211155-gfd2b59-g30e6e8'
编译报错:
make[3]: *** [scripts/Makefile.build:250: /home/sunrise/peak-linux-driver-8.20.0/driver/src/pcan_isa.o] Error 1
make[3]: *** [scripts/Makefile.build:250: /home/sunrise/peak-linux-driver-8.20.0/driver/src/pcan_sja1000.o] Error 1
make[3]: *** [scripts/Makefile.build:250: /home/sunrise/peak-linux-driver-8.20.0/driver/src/pcanfd_core.o] Error 1
make[3]: *** [scripts/Makefile.build:250: /home/sunrise/peak-linux-driver-8.20.0/driver/src/pcan_usb_core.o] Error 1
make[3]: *** [scripts/Makefile.build:250: /home/sunrise/peak-linux-driver-8.20.0/driver/src/pcan_pci.o] Error 1
make[3]: *** [scripts/Makefile.build:250: /home/sunrise/peak-linux-driver-8.20.0/driver/src/pcan_pci_spi.o] Error 1
make[3]: *** [scripts/Makefile.build:250: /home/sunrise/peak-linux-driver-8.20.0/driver/src/pcan_pciec.o] Error 1
make[3]: *** [scripts/Makefile.build:250: /home/sunrise/peak-linux-driver-8.20.0/driver/src/pcanfd_pci.o] Error 1
make[3]: *** [scripts/Makefile.build:250: /home/sunrise/peak-linux-driver-8.20.0/driver/src/pcan_usbpro.o] Error 1
make[3]: *** [scripts/Makefile.build:250: /home/sunrise/peak-linux-driver-8.20.0/driver/src/pcanfd_ucan.o] Error 1
make[3]: *** [scripts/Makefile.build:250: /home/sunrise/peak-linux-driver-8.20.0/driver/src/pcanfd_usb.o] Error 1
make[2]: *** [Makefile:2011: /home/sunrise/peak-linux-driver-8.20.0/driver] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-6.1.112-rt43-DR-4.0.2-2507211155-gfd2b59-g30e6e8'
make[1]: *** [Makefile:523: all] Error 2
make[1]: Leaving directory '/home/sunrise/peak-linux-driver-8.20.0/driver'
make: *** [Makefile:84: all] Error 2
之前给出方案的4.0.3的内核头文件版本未释放,不知道是不是版本的问题,期待解决