Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure on Debian 11 kernel 5.10 #15

Open
Bubbgump209 opened this issue Aug 18, 2023 · 2 comments
Open

Build failure on Debian 11 kernel 5.10 #15

Bubbgump209 opened this issue Aug 18, 2023 · 2 comments

Comments

@Bubbgump209
Copy link

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 #14 but I don't know how to tweak things to see if that fixes my issue as well.

@robertzaage
Copy link
Contributor

robertzaage commented Aug 18, 2023

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

robertzaage added a commit to robertzaage/gasket-driver that referenced this issue Aug 18, 2023
…r DMA_BUF necessity. Solves incompatibility with backports in 5.1x.x (RedHat/Debian) kernels.
mbrooksx pushed a commit that referenced this issue Sep 5, 2023
…cessity. Solves incompatibility with backports in 5.1x.x (RedHat/Debian) kernels.
@Spanni26
Copy link

Spanni26 commented Apr 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants