View previous topic :: View next topic |
Author |
Message |
emsy n00b
Joined: 16 Dec 2011 Posts: 23
|
Posted: Tue Nov 18, 2014 1:53 am Post subject: [RESOLVED] nvidia-drivers fails to compile |
|
|
Same error with 346.16 as well as with 343.22-r2 (which i'm running on atm, which implies it must have compiled fine in past)
Tried to upgrade kernel too (3.12.17 to 3.17.3)
The auto.conf and autoconf.h are presenton correct locations (that's all i could read that could be wrong from the log)
ebuild.log: http://pastebin.com/xhbuFmj8
emerge --info: http://pastebin.com/sJfSCKb9
Thanks for the hints
edit:
forgot to mention this was after the ABI keyword updates. I'm using ABI_X86_64 (with _32 for a few packages)
Solution:
Jaglover wrote: | Code: | FEATURES="-ccache -distcc" MAKEOPTS="-j1" emerge -1 nvidia-drivers |
|
Last edited by emsy on Tue Nov 18, 2014 2:51 pm; edited 3 times in total |
|
Back to top |
|
|
gienah Developer
Joined: 24 Nov 2010 Posts: 212 Location: AU
|
Posted: Tue Nov 18, 2014 3:28 am Post subject: |
|
|
I have some patches for older nvidia drivers, my hardware does not support
versions later than 340.X, so I haven't tried these with later versions.
The patches are in this file containing patches and symbolic links:
http://dev.gentoo.org:/~gienah/unsupported/etc-portage-patches-x11-drivers-nvidia-drivers-334.21-for-kernel-gt-3.14.tar.gz
Then if you wanted to try it you would extract it as root in the / directory:
Code: | cd /
tar xvf etc-portage-patches-x11-drivers-nvidia-drivers-334.21-for-kernel-gt-3.14.tar.gz |
In the future when the nvidia drivers are updated, then the idea is to create a symbolic link and test
if the patch works or not with the later version, something like:
Code: | cd /etc/portage/patches/x11-drivers
ln -s nvidia-drivers-334.21 nvidia-drivers-346.16 |
If that doesn't work, it will be necessary to remove that symbolic link, and instead create
a directory for nvidia-drivers-346.16 instead, and search for a patch that will work. |
|
Back to top |
|
|
jpc22 Apprentice
Joined: 29 Jan 2012 Posts: 195
|
Posted: Tue Nov 18, 2014 3:42 am Post subject: |
|
|
There seems to be problems with your memory (ram) and acpi according to the build log
a little googling reveals issues with nvidia drivers on kernels above 3.8 with very similar compilation errors.
https://devtalk.nvidia.com/default/topic/528786/-solved-linux-3-8-incompatibility/
maybe upgrading to a later unstable kernel (when one gets releases , since your using the curent latest) with a newer version of the nvidia drivers could solve this issue.
According to this source both Nvidia and kernel devs have had some delays in deploying and implementing fixes.
It also seems that there are bugs with many gentoo kernels while compiling nvidia.
https://bugs.gentoo.org/show_bug.cgi?id=447566
A temporary fix most likely to work would be downgrading your kernel to compile nvidia with that version. _________________ Revised Murphy's law: source distros can be immune to the previous in runtime, provided you endure maximum annoyance in setup. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Tue Nov 18, 2014 12:04 pm Post subject: |
|
|
Jaglover wrote: | Code: | FEATURES="-ccache -distcc" MAKEOPTS="-j1" emerge -1 nvidia-drivers |
Does it still fail? |
I think the ebuild already enforce that Jaglover if i remember right |
|
Back to top |
|
|
emsy n00b
Joined: 16 Dec 2011 Posts: 23
|
Posted: Tue Nov 18, 2014 12:36 pm Post subject: |
|
|
Jaglover wrote: | Code: | FEATURES="-ccache -distcc" MAKEOPTS="-j1" emerge -1 nvidia-drivers |
Does it still fail? |
Thank you, this worked! I tried with -j1 before but that failed too, so the FEATURES must have made the difference.
As i wrote above, I was running on kernel 3.12.17 and nvidia-drivers 343.22-r2, and suddenly when trying to recompile them it didn't work, so something else must have changed. Then also tried all combinations with kernel 3.17.3 (newest) and nvidia-drivers 346.16 without success. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Tue Nov 18, 2014 9:23 pm Post subject: |
|
|
krinn wrote: | Jaglover wrote: | Code: | FEATURES="-ccache -distcc" MAKEOPTS="-j1" emerge -1 nvidia-drivers |
Does it still fail? |
I think the ebuild already enforce that Jaglover if i remember right |
Yea, you remember it right, above is just what I use when some (any) build fails, before I start digging deeper. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
|