[Bug 1223344] New: NVidia driver fails to link when using mold
https://bugzilla.suse.com/show_bug.cgi?id=1223344 Bug ID: 1223344 Summary: NVidia driver fails to link when using mold Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: X11 Applications Assignee: screening-team-bugs@suse.de Reporter: christophe@krop.fr QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- The NVidia driver silently fails to build when using the mold linker: # ll /etc/alternatives/ld lrwxrwxrwx 1 root root 16 11 avril 01:02 /etc/alternatives/ld -> /usr/bin/ld.mold mold: fatal: scripts/module.lds:1: SECTIONS { ^ unknown linker script token mold: fatal: scripts/module.lds:1: SECTIONS { ^ unknown linker script token make[4]: *** [/usr/src/linux-6.8.7-1/scripts/Makefile.modfinal:56: /usr/src/kernel-modules/nvidia-550.67-default/nvidia-uvm.ko] Error 1 make[4]: *** Waiting for unfinished jobs.... mold: fatal: scripts/module.lds:1: SECTIONS { ^ unknown linker script token make[4]: *** [/usr/src/linux-6.8.7-1/scripts/Makefile.modfinal:56: /usr/src/kernel-modules/nvidia-550.67-default/nvidia-drm.ko] Error 1 mold: fatal: scripts/module.lds:1: SECTIONS { ^ unknown linker script token make[4]: *** [/usr/src/linux-6.8.7-1/scripts/Makefile.modfinal:56: /usr/src/kernel-modules/nvidia-550.67-default/nvidia-peermem.ko] Error 1 make[4]: *** [/usr/src/linux-6.8.7-1/scripts/Makefile.modfinal:56: /usr/src/kernel-modules/nvidia-550.67-default/nvidia.ko] Error 1 mold: fatal: scripts/module.lds:1: SECTIONS { ^ unknown linker script token make[4]: *** [/usr/src/linux-6.8.7-1/scripts/Makefile.modfinal:56: /usr/src/kernel-modules/nvidia-550.67-default/nvidia-modeset.ko] Error 1 make[3]: *** [/usr/src/linux-6.8.7-1/Makefile:1871: modules] Error 2 make[2]: *** [/usr/src/linux-6.8.7-1/Makefile:240: __sub-make] Error 2 make[2]: Leaving directory '/usr/src/linux-6.8.7-1-obj/x86_64/default' make[1]: *** [Makefile:240: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-6.8.7-1' make: *** [Makefile:85: modules] Error 2 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223344 Christophe Marin <christophe@krop.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|screening-team-bugs@suse.de |sndirsch@suse.com QA Contact|qa-bugs@suse.de |sndirsch@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223344 https://bugzilla.suse.com/show_bug.cgi?id=1223344#c1 --- Comment #1 from Christophe Marin <christophe@krop.fr> --- Created attachment 874480 --> https://bugzilla.suse.com/attachment.cgi?id=874480&action=edit zypper in -f log Zypper log with zypper in -f nvidia-driver-G06-kmp-default The warnings reported in 1212841 were removed from the log file -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223344 https://bugzilla.suse.com/show_bug.cgi?id=1223344#c2 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|NEW |RESOLVED Component|X11 Applications |X11 3rd Party Driver --- Comment #2 from Stefan Dirsch <sndirsch@suse.com> --- Never heard about mold linker. Whatever. Unsupported. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223344 https://bugzilla.suse.com/show_bug.cgi?id=1223344#c3 --- Comment #3 from Christophe Marin <christophe@krop.fr> --- (In reply to Stefan Dirsch from comment #2)
Never heard about mold linker. Whatever. Unsupported.
Precisely. the nvidia driver package should only try to use what it supports. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223344 https://bugzilla.suse.com/show_bug.cgi?id=1223344#c4 --- Comment #4 from Stefan Dirsch <sndirsch@suse.com> --- You mean I should add a conflicts to mold package? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223344 https://bugzilla.suse.com/show_bug.cgi?id=1223344#c5 --- Comment #5 from Christophe Marin <christophe@krop.fr> --- (In reply to Stefan Dirsch from comment #4)
You mean I should add a conflicts to mold package?
The opposite, tell which linker to use. If I take the nvidia package in X11:Drivers:Video:Redesign as model, adding `export LD=ld.bfd` in kmp-post.sh and kmp-trigger.sh would be sufficient. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223344 https://bugzilla.suse.com/show_bug.cgi?id=1223344#c6 --- Comment #6 from Christophe Marin <christophe@krop.fr> --- (In reply to Christophe Marin from comment #5)
(In reply to Stefan Dirsch from comment #4)
You mean I should add a conflicts to mold package?
The opposite, tell which linker to use.
If I take the nvidia package in X11:Drivers:Video:Redesign as model, adding `export LD=ld.bfd` in kmp-post.sh and kmp-trigger.sh would be sufficient.
Tested successfully locally. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223344 https://bugzilla.suse.com/show_bug.cgi?id=1223344#c7 --- Comment #7 from Stefan Dirsch <sndirsch@suse.com> --- Where is this LD env. variable documented? -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223344 https://bugzilla.suse.com/show_bug.cgi?id=1223344#c8 --- Comment #8 from Christophe Marin <christophe@krop.fr> --- /usr/src/kernel-modules/nvidia-550.76-default/Makefile contains: `LD ?= ld` -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223344 https://bugzilla.suse.com/show_bug.cgi?id=1223344#c9 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |--- Status|RESOLVED |REOPENED --- Comment #9 from Stefan Dirsch <sndirsch@suse.com> --- Ok. Understood. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223344 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |IN_PROGRESS -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223344 https://bugzilla.suse.com/show_bug.cgi?id=1223344#c10 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|IN_PROGRESS |RESOLVED --- Comment #10 from Stefan Dirsch <sndirsch@suse.com> --- Fixed. Will be available with package update for 550.78. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com