Bug: faulty links in /lib/modules/5.12.9-1-default/
![](https://seccdn.libravatar.org/avatar/a7bcbbdadbe98519ce41f733dc441577.jpg?s=120&d=mm&r=g)
Installation of kernel 5.12.9 resulted in the following links in /lib/modules/5.12.9-1-default/: build -> ../../../usr/src/linux-5.12.9-1-obj/x86_64/default source -> ../../../usr/src/linux-5.12.9-1 In each case, the target should be the absolute path /usr/src/.... not the relative path given. This bug prevents the building of external modules such as the nvidia drivers. The problem was also present for kernel 5.12.4, and probably in older kernels; however, I no longer have any of those on my system. This is reported as boo#1186899. Larry
![](https://seccdn.libravatar.org/avatar/9435667f7160374bc34a8600b686aecd.jpg?s=120&d=mm&r=g)
On 05.06.2021 19:15, Larry Finger wrote:
Installation of kernel 5.12.9 resulted in the following links in /lib/modules/5.12.9-1-default/:
build -> ../../../usr/src/linux-5.12.9-1-obj/x86_64/default source -> ../../../usr/src/linux-5.12.9-1
In each case, the target should be the absolute path /usr/src/.... not the relative path given.
This bug prevents the building of external modules such as the nvidia drivers.
The problem was also present for kernel 5.12.4, and probably in older kernels; however, I no longer have any of those on my system.
This is reported as boo#1186899.
Larry Duplicate of https://bugzilla.opensuse.org/show_bug.cgi?id=1186710
![](https://seccdn.libravatar.org/avatar/abdee805d4df05af9a496107100c582c.jpg?s=120&d=mm&r=g)
* Larry Finger <Larry.Finger@lwfinger.net> [06-05-21 12:17]:
Installation of kernel 5.12.9 resulted in the following links in /lib/modules/5.12.9-1-default/:
build -> ../../../usr/src/linux-5.12.9-1-obj/x86_64/default source -> ../../../usr/src/linux-5.12.9-1
In each case, the target should be the absolute path /usr/src/.... not the relative path given.
This bug prevents the building of external modules such as the nvidia drivers.
The problem was also present for kernel 5.12.4, and probably in older kernels; however, I no longer have any of those on my system.
This is reported as boo#1186899.
I removed kernels 5.12.4-2 and 5.12.9-1 and nvidia G04 drivers, nvidia-gfxG04-kmp-default-390.143_k5.12.4_9-44.23.x86_64 x11-video-nvidiaG04-390.143-44.2.x86_64 nvidia-glG04-390.143-44.2.x86_64 nvidia-computeG04-390.143-44.2.x86_64 reinstalled kernel(s) 5.12.9, corrected noted simlinks, then installed nvidia G04 packages but still cannot get a full sized display. have to revert to kernel 5.12.4-1-default -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
![](https://seccdn.libravatar.org/avatar/a7bcbbdadbe98519ce41f733dc441577.jpg?s=120&d=mm&r=g)
On 6/5/21 1:03 PM, Patrick Shanahan wrote:
I removed kernels 5.12.4-2 and 5.12.9-1 and nvidia G04 drivers, nvidia-gfxG04-kmp-default-390.143_k5.12.4_9-44.23.x86_64 x11-video-nvidiaG04-390.143-44.2.x86_64 nvidia-glG04-390.143-44.2.x86_64 nvidia-computeG04-390.143-44.2.x86_64
reinstalled kernel(s) 5.12.9, corrected noted simlinks, then installed nvidia G04 packages
but still cannot get a full sized display. have to revert to kernel 5.12.4-1-default
The nvidia G04 packages from their repo do not include the modules for kernel 5.12.9. After fixing the links, I had to do the following: cd /usr/src/kernel-modules/nvidia-390.143-default/ sudo make sudo cp *.ko /usr/lib/modules/5.12.9-1-default/updates/. sudo depmod -a The last two commands are required because the Makefile does not have an install section, thus the install has to be done manually. Larry
![](https://seccdn.libravatar.org/avatar/abdee805d4df05af9a496107100c582c.jpg?s=120&d=mm&r=g)
* Larry Finger <Larry.Finger@lwfinger.net> [06-05-21 14:43]:
On 6/5/21 1:03 PM, Patrick Shanahan wrote:
I removed kernels 5.12.4-2 and 5.12.9-1 and nvidia G04 drivers, nvidia-gfxG04-kmp-default-390.143_k5.12.4_9-44.23.x86_64 x11-video-nvidiaG04-390.143-44.2.x86_64 nvidia-glG04-390.143-44.2.x86_64 nvidia-computeG04-390.143-44.2.x86_64 reinstalled kernel(s) 5.12.9, corrected noted simlinks, then installed nvidia G04 packages
but still cannot get a full sized display. have to revert to kernel 5.12.4-1-default
The nvidia G04 packages from their repo do not include the modules for kernel 5.12.9. After fixing the links, I had to do the following:
cd /usr/src/kernel-modules/nvidia-390.143-default/ sudo make sudo cp *.ko /usr/lib/modules/5.12.9-1-default/updates/. sudo depmod -a
The last two commands are required because the Makefile does not have an install section, thus the install has to be done manually.
tks, followed your instructions successfully but still cannot get the full sized display. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
![](https://seccdn.libravatar.org/avatar/db61becba2ff9d091e7d462f1b3178ac.jpg?s=120&d=mm&r=g)
On Sunday 06 June 2021, Larry Finger wrote:
Installation of kernel 5.12.9 resulted in the following links in /lib/modules/5.12.9-1-default/:
build -> ../../../usr/src/linux-5.12.9-1-obj/x86_64/default source -> ../../../usr/src/linux-5.12.9-1
In each case, the target should be the absolute path /usr/src/.... not the relative path given.
This bug prevents the building of external modules such as the nvidia drivers.
The problem was also present for kernel 5.12.4, and probably in older kernels; however, I no longer have any of those on my system.
This is reported as boo#1186899.
Larry
Rather than fixing the links after things break, you could follow one of the suggestions in the bugzilla discussion and put in place a work-around: # Check the /usr/usr does not already exist and then do cd /usr ln -s . /usr/usr This will allow dup's to work properly while kernels with the bad links are still being used/distributed. Once clear of this bug the sym-link can be removed. I just now used this approach to dup painlessly to TW 20210603, 5.12.9-1-default, with nvidia 460.80. Michael
participants (4)
-
Andrei Borzenkov
-
Larry Finger
-
Michael Hamilton
-
Patrick Shanahan