Just upgraded from 440.100_1 -> 460.39. I have WITH_BIND_NOW=YES set in /etc/src.conf, which is probably why this triggered for me. This is vs 13.0-BETA1 13.0-BETA1 releng/13.0-n244471-638e531019fd. I can trigger it by hand by trying to kldload nvidia, which of course prevents nvidia-modeset from being loaded, which stops X11.
David Wolfskill on freebsd-ports hasn't set WITH_BIND_NOW and on stable/12 and would appear to have the same issue.
Created attachment 222182 [details] restore and adapt linux compat changes in src/nvidia/nvidia_ctl.c See also https://lists.freebsd.org/pipermail/svn-ports-all/2021-February/282373.html I'm not sure if this is the whole story (but it seems to work for me).
The same issue with 13.0-STABLE stable/13-n244476-ab537343065a I don't have WITH_BIND_NOW=YES in src.conf.
Christoph's patch fixes the issue on my system.
Does't work for me. With patch I'm getting: link_elf_obj: symbol stack_create undefined linker_load_file: /boot/modules/nvidia.ko - unsupported file type
This ticket hasn't been updated, but danfe put out r564218, "Forward-port ``extra-patch-src-nvidia_ctl.c'' patch to 460.xx branch..." which also works for me.
(In reply to iron.udjin from comment #5) I have the same issue with card GeForce GTX 750 Ti
(In reply to Jack from comment #7) Just upgraded from FreeBSD 12.2 to 13.0 and still same issue with GeForce GTX 750 Ti and 460.39 link_elf_obj: symbol stack_create undefined linker_load_file: /boot/modules/nvidia.ko - unsupported file type
Narrowed down the error link_elf_obj: symbol stack_create undefined linker_load_file: /boot/modules/nvidia.ko - unsupported file type to missing options STACK in the kernel config. Adding that to the kernel made the driver load fine.
(In reply to Jack from comment #9) "options STACK" in kernel config is fixed issue for me. We can close this bug.
This bug can be closed as far as I'm concerned, too. Problem solved a while ago. (I don't know if the reporter can close tickets in general, or if the maintainer should be the one to do it.)