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

New kernel can't compile dkms on debian #2

Closed
Parlane opened this issue Dec 17, 2024 · 3 comments
Closed

New kernel can't compile dkms on debian #2

Parlane opened this issue Dec 17, 2024 · 3 comments

Comments

@Parlane
Copy link

Parlane commented Dec 17, 2024

Gidday,

First off, thank you for creating this docker builder.

I have Debian using 6.12.5-amd64 and it can't compile googles version of gasket_core.c:

~/gasket-builder# cat  /var/lib/dkms/gasket/1.0/build/make.log
DKMS make.log for gasket-1.0 for kernel 6.12.5-amd64 (x86_64)
Tue 17 Dec 2024 13:09:15 NZDT
make: Entering directory '/usr/src/linux-headers-6.12.5-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
  CC [M]  /var/lib/dkms/gasket/1.0/build/apex_driver.o
/var/lib/dkms/gasket/1.0/build/gasket_core.c:1376:19: error: ‘no_llseek’ undeclared here (not in a function); did you mean ‘noop_llseek’?
 1376 |         .llseek = no_llseek,
      |                   ^~~~~~~~~
      |                   noop_llseek
make[2]: *** [/usr/src/linux-headers-6.12.5-common/scripts/Makefile.build:234: /var/lib/dkms/gasket/1.0/build/gasket_core.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/usr/src/linux-headers-6.12.5-common/Makefile:1962: /var/lib/dkms/gasket/1.0/build] Error 2
make: *** [/usr/src/linux-headers-6.12.5-common/Makefile:236: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.12.5-amd64'

Another user submitted a fix to google's repo: google/gasket-driver#35 this does fiix my issue if I modify your Dockerfile to the following to use their pull request:

FROM ubuntu:24.04 AS build-stage

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -q -y --no-install-recommends git devscripts dkms dh-dkms build-essential debhelper

RUN git clone -b llseek https://github.com/heitbaum/gasket-driver
RUN cd gasket-driver && debuild -us -uc -tc -b

FROM scratch AS export-stage
COPY --from=build-stage *.deb .
@jnicolson
Copy link
Owner

Thanks! I've pulled in that commit as a patch (5e78723) so that it doesn't risk pulling in any future changes heitbaum might make. Can you try to build it again?

@Parlane
Copy link
Author

Parlane commented Dec 19, 2024

Thanks @jnicolson, that worked.

@jnicolson
Copy link
Owner

Excellent! Thanks for confirming.

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

2 participants