Bug 253269 - x11/nvidia-driver: link_elf_obj: symbol nvidia_driver_name undefined
Summary: x11/nvidia-driver: link_elf_obj: symbol nvidia_driver_name undefined
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-05 12:43 UTC by John Kennedy
Modified: 2021-03-05 23:41 UTC (History)
5 users (show)

See Also:
bugzilla: maintainer-feedback? (danfe)


Attachments
restore and adapt linux compat changes in src/nvidia/nvidia_ctl.c (3.59 KB, patch)
2021-02-05 14:25 UTC, Christoph Moench-Tegeder
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Kennedy 2021-02-05 12:43:11 UTC
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.
Comment 1 John Kennedy 2021-02-05 13:10:43 UTC
David Wolfskill on freebsd-ports hasn't set WITH_BIND_NOW and on stable/12 and would appear to have the same issue.
Comment 2 Christoph Moench-Tegeder freebsd_committer 2021-02-05 14:25:08 UTC
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).
Comment 3 iron.udjin 2021-02-05 18:40:46 UTC
The same issue with 13.0-STABLE stable/13-n244476-ab537343065a
I don't have WITH_BIND_NOW=YES in src.conf.
Comment 4 John Kennedy 2021-02-05 19:34:43 UTC
Christoph's patch fixes the issue on my system.
Comment 5 iron.udjin 2021-02-05 22:05:09 UTC
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
Comment 6 John Kennedy 2021-02-07 01:11:20 UTC
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.
Comment 7 Jack 2021-02-08 03:51:23 UTC
(In reply to iron.udjin from comment #5)
I have the same issue with card GeForce GTX 750 Ti
Comment 8 Jack 2021-02-08 09:54:50 UTC
(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
Comment 9 Jack 2021-02-08 10:31:49 UTC
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.
Comment 10 iron.udjin 2021-02-08 13:50:07 UTC
(In reply to Jack from comment #9)
"options STACK" in kernel config is fixed issue for me.

We can close this bug.
Comment 11 John Kennedy 2021-03-05 23:41:30 UTC
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.)