google / gasket-driver

GNU General Public License v2.0
47 stars 29 forks source link

Build failure on Debian 11 kernel 5.10 #15

Open Bubbgump209 opened 11 months ago

Bubbgump209 commented 11 months ago
DKMS make.log for gasket-1.0 for kernel 5.10.0-24-cloud-amd64 (x86_64)
Fri Aug 18 12:35:47 EDT 2023
make: Entering directory '/usr/src/linux-headers-5.10.0-24-cloud-amd64'
  CC [M]  /var/lib/dkms/gasket/1.0/build/gasket_core.o
  CC [M]  /var/lib/dkms/gasket/1.0/build/gasket_ioctl.o
  CC [M]  /var/lib/dkms/gasket/1.0/build/gasket_interrupt.o
  CC [M]  /var/lib/dkms/gasket/1.0/build/gasket_page_table.o
  CC [M]  /var/lib/dkms/gasket/1.0/build/gasket_sysfs.o
  LD [M]  /var/lib/dkms/gasket/1.0/build/gasket.o
  CC [M]  /var/lib/dkms/gasket/1.0/build/apex_driver.o
  LD [M]  /var/lib/dkms/gasket/1.0/build/apex.o
  MODPOST /var/lib/dkms/gasket/1.0/build/Module.symvers
ERROR: modpost: "dma_buf_detach" [/var/lib/dkms/gasket/1.0/build/gasket.ko] undefined!
ERROR: modpost: "dma_buf_put" [/var/lib/dkms/gasket/1.0/build/gasket.ko] undefined!
ERROR: modpost: "dma_buf_get" [/var/lib/dkms/gasket/1.0/build/gasket.ko] undefined!
ERROR: modpost: "dma_buf_unmap_attachment" [/var/lib/dkms/gasket/1.0/build/gasket.ko] undefined!
ERROR: modpost: "dma_buf_map_attachment" [/var/lib/dkms/gasket/1.0/build/gasket.ko] undefined!
ERROR: modpost: "dma_buf_attach" [/var/lib/dkms/gasket/1.0/build/gasket.ko] undefined!
make[2]: *** [/usr/src/linux-headers-5.10.0-24-common/scripts/Makefile.modpost:123: /var/lib/dkms/gasket/1.0/build/Module.symvers] Error 1
make[2]: *** Deleting file '/var/lib/dkms/gasket/1.0/build/Module.symvers'
make[1]: *** [/usr/src/linux-headers-5.10.0-24-common/Makefile:1779: modules] Error 2
make: *** [/usr/src/linux-headers-5.10.0-24-common/Makefile:192: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-5.10.0-24-cloud-amd64'

This feels a lot like https://github.com/google/gasket-driver/issues/14 but I don't know how to tweak things to see if that fixes my issue as well.

robertzaage commented 11 months ago

@Bubbgump209 Looks like this is exactly the same error from #14 I guess you can close this issue.

Spanni26 commented 3 months ago

it does not seem to solve the problem.

On 5.14.21:

k-ifc5:~/gasket-driver/src # make all make -C /lib/modules/5.14.21-150500.53-default/build M=/root/gasket-driver/src modules make[1]: Entering directory '/usr/src/linux-5.14.21-150500.53-obj/x86_64/default' CC [M] /root/gasket-driver/src/gasket_core.o CC [M] /root/gasket-driver/src/gasket_ioctl.o CC [M] /root/gasket-driver/src/gasket_interrupt.o CC [M] /root/gasket-driver/src/gasket_page_table.o CC [M] /root/gasket-driver/src/gasket_sysfs.o LD [M] /root/gasket-driver/src/gasket.o CC [M] /root/gasket-driver/src/apex_driver.o LD [M] /root/gasket-driver/src/apex.o MODPOST /root/gasket-driver/src/Module.symvers ERROR: modpost: module gasket uses symbol dma_buf_detach from namespace DMA_BUF, but does not import it. ERROR: modpost: module gasket uses symbol dma_buf_put from namespace DMA_BUF, but does not import it. ERROR: modpost: module gasket uses symbol dma_buf_get from namespace DMA_BUF, but does not import it. ERROR: modpost: module gasket uses symbol dma_buf_unmap_attachment from namespace DMA_BUF, but does not import it. ERROR: modpost: module gasket uses symbol dma_buf_map_attachment from namespace DMA_BUF, but does not import it. ERROR: modpost: module gasket uses symbol dma_buf_attach from namespace DMA_BUF, but does not import it. make[3]: [/usr/src/linux-5.14.21-150500.53/scripts/Makefile.modpost:140: /root/gasket-driver/src/Module.symvers] Error 1 make[3]: Deleting file '/root/gasket-driver/src/Module.symvers' make[2]: [/usr/src/linux-5.14.21-150500.53/Makefile:1810: modules] Error 2 make[1]: [../../../linux-5.14.21-150500.53/Makefile:220: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-5.14.21-150500.53-obj/x86_64/default' make: *** [Makefile:14: all] Error 2