


Make -C /lib/modules/5.15.0-18-generic/build M=/home/test/gps/src/USB I also did an another test on Ubuntu 22.04 server 圆4 with kernel 5.15.0-18-generic latest for Ubuntu website and received following errors make
Driving fail compilation driver#
I think that this issue is from kernel compatibility.ĭrivers were successfully build on Ubuntu VM 20.04 with older kernel 5.4.0-96-generic, however this kernel is older and ethernet driver does not work for the laptop.
Driving fail compilation how to#
Ii libgcc-s1:amd64 10.3.0-1ubuntu1~20.04 amd64 GCC support libraryĬan somenone advise how to compile these drivers in order to see USBx there Ii libgcc-9-dev:amd64 9.3.0-17ubuntu1~20.04 amd64 GCC support library (development files) Ii gcc-9-base:amd64 9.3.0-17ubuntu1~20.04 amd64 GCC, the GNU Compiler Collection (base package) Ii gcc-10-base:amd64 10.3.0-1ubuntu1~20.04 amd64 GCC, the GNU Compiler Collection (base package) Ii gcc 4:9.3.0-1ubuntu2 amd64 GNU C compiler Ii xxd 2:-1ubuntu5.7 amd64 tool to make (or reverse) a hex dpkg -l | grep gcc Ii make 4.2.1-1.2 amd64 utility for directing compilation Make: Leaving directory '/usr/src/linux-headers-5.13.0-30-generic'

home/admin/gps/src/USB/qcserial.c:761:22: note: (near initialization for ‘qcdevice_1.port_remove’)Ĭc1: some warnings being treated as errors home/admin/gps/src/USB/qcserial.c:761:22: error: initialization of ‘void (*)(struct usb_serial_port *)’ from incompatible pointer type ‘int (*)(struct usb_serial_port *)’ ħ61 |. home/admin/gps/src/USB/qcserial.c:734:22: note: (near initialization for ‘qcdevice.port_remove’) home/admin/gps/src/USB/qcserial.c:734:22: error: initialization of ‘void (*)(struct usb_serial_port *)’ from incompatible pointer type ‘int (*)(struct usb_serial_port *)’ ħ34 |. Make: Entering directory '/usr/src/linux-headers-5.13.0-30-generic'ĬC /home/admin/gps/src/USB/qcserial.o Make -C /lib/modules/5.13.0-30-generic/build M=/home/admin/gps/src/USB The compiling failed with the fowoling error: make Then i decided to download ( MBPL_Drivers_R24_ ) and compile them from USB sub directory. usb 4-4: unknown number of interfaces: 5
