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

Nvidia kernel module fails to build on linux 6.7.3 #48504

Closed
HO5DTOAT opened this issue Feb 3, 2024 · 4 comments
Closed

Nvidia kernel module fails to build on linux 6.7.3 #48504

HO5DTOAT opened this issue Feb 3, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@HO5DTOAT
Copy link

HO5DTOAT commented Feb 3, 2024

Is this a new report?

Yes

System Info

Void 6.7.2_1 x86_64 GenuineIntel uptodate rrrrmmnFFFFFFFF

Package(s) Affected

nvidia-535.154.05_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

It appears Nvidia is aware of the issue and will be releasing a fix.
https://forums.developer.nvidia.com/t/linux-6-7-3-545-29-06-550-40-07-error-modpost-gpl-incompatible-module-nvidia-ko-uses-gpl-only-symbol-rcu-read-lock/280908/24

Expected behaviour

In post-install steps after kernel 6.7.3 is installed, the dkms modules are built. The nvidia kernel module should build without errors.

Actual behaviour

The dkms module fails to build and the message "Building DKMS module: nvidia-535.154.05... FAILED!" is output.
image

Checking the build log mentions about GPL symbols being used in the module.
image

Steps to reproduce

  1. Install dkms, the current nvidia drivers (535 series), and nvidia-dkms.
  2. Upgrade kernel to 6.7.3 (need to be on the linux-mainline kernel series).
  3. The post-install for dkms build for nvidia fails with an error message.
    Building DKMS module: nvidia-535.154.05... FAILED!
    The build logs (/var/lib/dkms/nvidia/535.154.05/build/make.log) contain error messages about incompatible symbols.
    ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
    ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'
@HO5DTOAT HO5DTOAT added bug Something isn't working needs-testing Testing a PR or reproducing an issue needed labels Feb 3, 2024
@akarelas
Copy link
Contributor

akarelas commented Feb 5, 2024

This also happens with linux kernel 6.6.15 (linux6.6-6.6.15_1):

[user@voidvm build]$ tail -n 20 /var/lib/dkms/nvidia/535.154.05/build/make.log
/var/lib/dkms/nvidia/535.154.05/build/nvidia.o: warning: objtool: _nv038952rm+0x9d: 'naked' return found in RETHUNK build
/var/lib/dkms/nvidia/535.154.05/build/nvidia.o: warning: objtool: _nv038954rm+0x77: 'naked' return found in RETHUNK build
/var/lib/dkms/nvidia/535.154.05/build/nvidia.o: warning: objtool: _nv038898rm+0x7f: 'naked' return found in RETHUNK build
/var/lib/dkms/nvidia/535.154.05/build/nvidia.o: warning: objtool: _nv030487rm+0x3e: 'naked' return found in RETHUNK build
/var/lib/dkms/nvidia/535.154.05/build/nvidia.o: warning: objtool: _nv030486rm+0x27: 'naked' return found in RETHUNK build
/var/lib/dkms/nvidia/535.154.05/build/nvidia.o: warning: objtool: _nv030490rm+0x37: 'naked' return found in RETHUNK build
/var/lib/dkms/nvidia/535.154.05/build/nvidia.o: warning: objtool: _nv030489rm+0x24: 'naked' return found in RETHUNK build
/var/lib/dkms/nvidia/535.154.05/build/nvidia.o: warning: objtool: _nv030488rm+0xca: 'naked' return found in RETHUNK build
/var/lib/dkms/nvidia/535.154.05/build/nvidia.o: warning: objtool: _nv030491rm+0x193: 'naked' return found in RETHUNK build
/var/lib/dkms/nvidia/535.154.05/build/nvidia.o: warning: objtool: _nv030493rm+0x17f: 'naked' return found in RETHUNK build
/var/lib/dkms/nvidia/535.154.05/build/nvidia.o: warning: objtool: _nv011850rm+0x5d: 'naked' return found in RETHUNK build
/var/lib/dkms/nvidia/535.154.05/build/nvidia.o: warning: objtool: _nv039265rm+0x12f: 'naked' return found in RETHUNK build
  MODPOST /var/lib/dkms/nvidia/535.154.05/build/Module.symvers
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'
make[3]: *** [scripts/Makefile.modpost:145: /var/lib/dkms/nvidia/535.154.05/build/Module.symvers] Error 1
make[2]: *** [/usr/src/kernel-headers-6.6.15_1/Makefile:1865: modpost] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/kernel-headers-6.6.15_1'
make: *** [Makefile:82: modules] Error 2

@abenson
Copy link
Contributor

abenson commented Feb 6, 2024

Should be fixed now!

@HO5DTOAT
Copy link
Author

HO5DTOAT commented Feb 6, 2024

Kernel module is built and installed successfully with 535.154.05_2. So, closing the issue.
image

@HO5DTOAT HO5DTOAT closed this as completed Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants