Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia driver failed to build [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
helio
Apprentice
Apprentice


Joined: 08 Apr 2006
Posts: 237

PostPosted: Mon Sep 04, 2017 5:36 am    Post subject: nvidia driver failed to build [Solved] Reply with quote

After a recent emerge and switching to gcc 5, the proprietary nvidia driver stopped working. When using the installation program NVIDIA-Linux-x86_64-367.44.run

An error occurred while performing the step: "Building kernel modules".

Does that mean I would have to rebuild the linux kernel and modules?


Last edited by helio on Mon Sep 04, 2017 11:41 am; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30916
Location: here

PostPosted: Mon Sep 04, 2017 5:50 am    Post subject: Reply with quote

Why you not use ebuild for installation? You can find old ebuild here (and relative patch).
Anyway you need to post the error, without is impossible to help you.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
helio
Apprentice
Apprentice


Joined: 08 Apr 2006
Posts: 237

PostPosted: Mon Sep 04, 2017 8:09 am    Post subject: Reply with quote

fedeliallalinea wrote:
Why you not use ebuild for installation? You can find old ebuild here (and relative patch).
Anyway you need to post the error, without is impossible to help you.


Thanks for the reminder. I have switched to the ebuild, but the error message remains same:

FATAL: modpost: GPL-incompatible module nvidia-drm.ko uses GPL-only symbol 'mutex_destroy'
make[3]: *** [/usr/src/linux-4.12.5-gentoo/scripts/Makefile.modpost:91: __modpost] Error 1
make[2]: *** [/usr/src/linux-4.12.5-gentoo/Makefile:1519: modules] Error 2
make[2]: Leaving directory '/usr/src/linux-4.12.5-gentoo'
make[1]: *** [Makefile:152: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-4.12.5-gentoo'
make: *** [Makefile:81: modules] Error 2
* ERROR: x11-drivers/nvidia-drivers-384.59-r1::gentoo failed (compile phase):
* emake failed
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30916
Location: here

PostPosted: Mon Sep 04, 2017 8:36 am    Post subject: Reply with quote

Try to disable CONFIG_DEBUG_MUTEXES kernel config.

For more info https://forums.gentoo.org/viewtopic-t-1063510.html
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
helio
Apprentice
Apprentice


Joined: 08 Apr 2006
Posts: 237

PostPosted: Mon Sep 04, 2017 11:40 am    Post subject: Reply with quote

fedeliallalinea wrote:
Try to disable CONFIG_DEBUG_MUTEXES kernel config.

For more info https://forums.gentoo.org/viewtopic-t-1063510.html


Indeed, that fixed the problem. Thanks so much.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum