Package Base Details: nvidia-340xx

Git Clone URL: https://aur.archlinux.org/nvidia-340xx.git (read-only, click to copy)
Submitter: simonsmh
Maintainer: JerryXiao (graysky)
Last Packager: graysky
Votes: 44
Popularity: 3.13
First Submitted: 2019-06-07 10:29
Last Updated: 2020-12-31 11:00

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 ... Next › Last »

parsal commented on 2021-01-04 15:01

@damonh Do you install with pamac install nvidia-340xx? Because it takes care of all dependencies.
@modin5 It does need kernel >= 5.5 because support for the driver has been dropped since 5.5 (if you want to build for 5.4 or earlier read here.
I, personally, updated to 5.10 (I mean why not). BTW, as I said, running `pamac install nvidia-340xx' takes care of all dependencies (asks you which kernel to install).

damonh commented on 2021-01-04 14:03

Thank you, @parsal. I've already did it, but now yay is trying to update the nvidia-340xx-dkms package. I've got nvidia-340xx-dkms version 340.108-1 and AUR has version 340.108-13

parsal commented on 2021-01-04 13:01

@damonh @modin5 Apply the patches SvenX mentioned in his post (here). Location of PGKBUILD is visible in the error.
That should fix this error (and clear the path for more errors xD).

SvenX commented on 2021-01-04 09:27

@parsal @damonh @modin5 The Manjaro team published a How-To if you don't want to apply my patches by hand. Link: https://forum.manjaro.org/t/support-how-to-compile-old-legacy-nvidia-proprietary-drivers-2020-12-30-update-issue/46071

modin5 commented on 2021-01-03 23:18

@parsal @damonh @modin5 (see my comment below)

Same error on pacman/pamac

damonh commented on 2021-01-03 21:57

This is the error I'm getting using yay:

==> Sources are ready.
~/.cache/yay/nvidia-340xx/PKGBUILD: line 32: /usr/src/linux/version: No such file or directory
==> Making package: nvidia-340xx 340.108-13 (dom 03 ene 2021 18:52:56)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
NVIDIA: calling KBUILD...
make[1]: *** /usr/src/linux: No such file or directory.  Stop.
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make: *** [Makefile:202: nvidia.ko] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
error making: nvidia-340xx (nvidia-340xx-dkms)

modin5 commented on 2021-01-03 19:07

@parsal ok i was so lazy that i did make pamac install it for me

first it told me it needed >5.5 kernel and >5.5 headers. i thought the patches will do the job so i ignored it the nividia driver failed to install for some reason and the open source graphics driver was disabled and so Xorg so i had no choice other than reinstall arch distro (i tried deleting the disable file module through nano but failed)

i think i have to build it through terminal. but how?

i,m so new to that "package building" so i think as you could build it it will be easy for you to explain it

start with me from 0 to 100 my installation was so wrong i think

SvenX commented on 2021-01-03 13:45

I was able to build for Manjaro 20.2 with the 5.10.2 kernel with the following changes to the PKGBUILD file. First adapt the kernel variables:

 # default is 'linux' substitute custom name here
-_kernelname=linux
-_kernver="$(</usr/src/$_kernelname/version)"
-_extradir="/usr/lib/modules/$_kernver/extramodules"
+_kernelname=`uname -r`
+_kernver="$(</usr/lib/modules/$_kernelname/extramodules/version)"
+_extradir="/usr/lib/modules/$_kernelname/extramodules"

And after that, change the paths in the build() function:

 build() {
   cd "${_pkg}/kernel"
-  make SYSSRC="/usr/src/$_kernelname" module
+  make SYSSRC="/usr/lib/modules/$_kernelname/build" module

   cd uvm
-  make SYSSRC="/usr/src/$_kernelname" module
+  make SYSSRC="/usr/lib/modules/$_kernelname/build" module
 }

After these changes, build it with: makepkg -s

parsal commented on 2021-01-03 08:37

@damonh As I said, I would fix it and give a link to a fixed version If I had the technical knowledge of make and install procedure.
@modin5 I can but it would be incomplete since I only installed it on my laptop; I'm kind of a newbie myself. So I think it's easier if you tell me exactly where you're having trouble.
For starters, exactly what command are you running and what does the error say?

modin5 commented on 2021-01-02 22:51

@parsal can you make a step by step installation guide for newbies like me ?

sorry if i,m not patient enough or noisy i,m just worried about it.

thanks @parsal for the information anyway.