You are not logged in.

#26 2026-03-28 00:07:05

loqs
Member
Registered: 2014-03-06
Posts: 18,860

Re: nvidia-340xx-dkms driver does not install

Yes both for now.

Offline

#27 2026-03-28 00:13:53

YCarac
Member
Registered: 2026-02-08
Posts: 41

Re: nvidia-340xx-dkms driver does not install

Tried it and files are still missing

Offline

#28 2026-03-28 00:28:37

loqs
Member
Registered: 2014-03-06
Posts: 18,860

Re: nvidia-340xx-dkms driver does not install

Uninstall nvidia-340xx-dkms and possibly dkms then try reinstalling linux-headers.

Offline

#29 2026-03-28 00:48:53

YCarac
Member
Registered: 2026-02-08
Posts: 41

Re: nvidia-340xx-dkms driver does not install

Tried without uninstalling dkms and linux-headers doesn't have missing files anymore. What should I do now?

Offline

#30 2026-03-28 04:04:09

loqs
Member
Registered: 2014-03-06
Posts: 18,860

Re: nvidia-340xx-dkms driver does not install

In the PKGBUILD after:

cat "${pkgdir}"/usr/src/nvidia-${pkgver}/uvm/dkms.conf.fragment >> "${pkgdir}"/usr/src/nvidia-${pkgver}/dkms.conf

Add

sed -i -e '/CLEAN/d' -e '/MAKE/d' "${pkgdir}"/usr/src/nvidia-${pkgver}/dkms.conf

This should remove both clean and build rules. DKMS will use its built in rules instead.  If the linux-header files are still deleted the next step would be to examine the Makefile.

Last edited by loqs (2026-03-28 04:04:28)

Offline

#31 2026-03-28 07:22:52

YCarac
Member
Registered: 2026-02-08
Posts: 41

Re: nvidia-340xx-dkms driver does not install

loqs wrote:

In the PKGBUILD after:

cat "${pkgdir}"/usr/src/nvidia-${pkgver}/uvm/dkms.conf.fragment >> "${pkgdir}"/usr/src/nvidia-${pkgver}/dkms.conf

Add

sed -i -e '/CLEAN/d' -e '/MAKE/d' "${pkgdir}"/usr/src/nvidia-${pkgver}/dkms.conf

This should remove both clean and build rules. DKMS will use its built in rules instead.  If the linux-header files are still deleted the next step would be to examine the Makefile.

They're still deleted. Errors stay the same too

Offline

#32 2026-03-28 07:26:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 74,662

Re: nvidia-340xx-dkms driver does not install

tail -n10000 /usr/src/nvidia-*/dkms.conf | curl -F 'file=@-' https://0x0.st

Online

#33 2026-03-28 07:56:33

YCarac
Member
Registered: 2026-02-08
Posts: 41

Re: nvidia-340xx-dkms driver does not install

seth wrote:
tail -n10000 /usr/src/nvidia-*/dkms.conf | curl -F 'file=@-' https://0x0.st

Sorry for my naive question but how can I do this with "nc termbin.com"? https://0x0.st has disabled uploads because of AI spam

Offline

#34 2026-03-28 08:02:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 74,662

Re: nvidia-340xx-dkms driver does not install

Same

tail -n10000 /usr/src/nvidia-*/dkms.conf | nc termbin.com 9999

Online

#35 2026-03-28 12:13:25

YCarac
Member
Registered: 2026-02-08
Posts: 41

Re: nvidia-340xx-dkms driver does not install

PACKAGE_NAME="nvidia"
PACKAGE_VERSION="340.76"
BUILT_MODULE_NAME[0]="$PACKAGE_NAME"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
MAKE[0]="make module KERNEL_UNAME=${kernelver}"
CLEAN="make clean"
AUTOINSTALL="yes"
BUILT_MODULE_NAME[1]="${PACKAGE_NAME}-uvm"
BUILT_MODULE_LOCATION[1]="uvm/"
DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
MAKE[0]+="; make -C uvm module KERNEL_UNAME=${kernelver} KBUILD_EXTMOD=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/uvm"
CLEAN+="; make -C uvm clean"

Offline

#36 2026-03-28 12:18:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 74,662

Re: nvidia-340xx-dkms driver does not install

So the CLEAN and MAKE statements are still there - the implication of editing the nvidia-340xx-dkms PKGBUILD was to rebuild/install that package.
Remove those lines, re-install the headers, rebuild the dkms module

Online

#37 2026-03-28 13:10:03

YCarac
Member
Registered: 2026-02-08
Posts: 41

Re: nvidia-340xx-dkms driver does not install

I know what sed does here (sed is my favorite util)

But I'm still getting the same errors.

Rebuilding nvidia-340xx-dkms just resets that file to defaults. Editing the file seems to be useless. It also failed when I tried editing the file before.

Perhaps I misunderstood what you meant by "rebuild the dkms module", so I also tried:

sudo dkms install --no-depmod nvidia/340.76 -k 6.19.9-arch1-1

- just in case. Both gave me errors (I did edit the file again before running this).

I don't know if I'm just stupid and doing something wrong here or this doesn't work, maybe both

Last edited by YCarac (2026-03-28 13:16:27)

Offline

#38 2026-03-28 13:18:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 74,662

Re: nvidia-340xx-dkms driver does not install

Where did you run or add what exact sed command?
Entering the commad loqs posted into an interactive shell will do nothing useful - the instruction was to alter the PKGBUILD of the nvidia-340xx-dkms package so it would install a different dkms.conf
Does #34 still result in #35? (you btw. don't have to upload stuff to termbin and then copy and paste them here)

Online

#39 2026-03-28 13:31:47

YCarac
Member
Registered: 2026-02-08
Posts: 41

Re: nvidia-340xx-dkms driver does not install

I did as he said. I opened the PKGBUILD file of nvidia-340xx-dkms package I cloned with git and added:

sed -i -e '/CLEAN/d' -e '/MAKE/d' "${pkgdir}"/usr/src/nvidia-${pkgver}/dkms.conf

- under the line that starts with "cat", which itself is under the line that says "UVM module" (commented). After that I ran "makepkg -si" and built the package.

#34 does not result with #35 right now but that's only because I edited it manually to try with "dkms install". If I rebuild the package with this again it gets back to default.

Offline

#40 2026-03-28 14:09:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 74,662

Re: nvidia-340xx-dkms driver does not install

Add "--debug" to the sed command and afterwards

cat "${pkgdir}"/usr/src/nvidia-${pkgver}/dkms.conf

and post the entire makepkg output.

Online

#41 2026-03-28 14:42:10

YCarac
Member
Registered: 2026-02-08
Posts: 41

Re: nvidia-340xx-dkms driver does not install

I can't record the whole output, how can I do this?

Offline

#42 2026-03-28 14:44:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 74,662

Re: nvidia-340xx-dkms driver does not install

makepkg -si |& tee makepkg.out

Online

#43 2026-03-28 15:07:13

YCarac
Member
Registered: 2026-02-08
Posts: 41

Re: nvidia-340xx-dkms driver does not install

I don't think adding --debug did anything but here's the output:

==> WARNING: A package has already been built, installing existing package...
==> Installing package nvidia-340xx-dkms with pacman -U...
warning: nvidia-340xx-dkms-340.76-5 is up to date -- reinstalling
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) nvidia-340xx-dkms-340.76-5

Total Installed Size:  14.57 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove nvidia/340.76
:: Processing package changes...
reinstalling nvidia-340xx-dkms...

Error! The module/version combo: nvidia/340.76 is not located in the DKMS tree.
error: command failed to execute correctly
Deprecated feature: CLEAN (/usr/src/nvidia-340.76/dkms.conf)
Creating symlink /var/lib/dkms/nvidia/340.76/source -> /usr/src/nvidia-340.76

Sign command: /usr/lib/modules/6.19.9-arch1-1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module(s)....(bad exit status: 2)
Failed command:
make -j4 KERNELRELEASE=6.19.9-arch1-1 module KERNEL_UNAME=6.19.9-arch1-1; make -C uvm module KERNEL_UNAME=6.19.9-arch1-1 KBUILD_EXTMOD=/var/lib/dkms/nvidia/340.76/build/uvm

Error! Bad return status for module build on kernel: 6.19.9-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/340.76/build/make.log for more information.
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Install DKMS modules
==> dkms install --no-depmod nvidia/340.76 -k 6.18.20-1-lts
Deprecated feature: CLEAN (/var/lib/dkms/nvidia/340.76/source/dkms.conf)

Error! Bad return status for module build on kernel: 6.18.20-1-lts (x86_64)
Consult /var/lib/dkms/nvidia/340.76/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/340.76 -k 6.18.20-1-lts' exited 10
==> dkms install --no-depmod nvidia/340.76 -k 6.19.9-arch1-1
Deprecated feature: CLEAN (/var/lib/dkms/nvidia/340.76/source/dkms.conf)

Error! Bad return status for module build on kernel: 6.19.9-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/340.76/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/340.76 -k 6.19.9-arch1-1' exited 10
(3/3) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-lts -g /boot/initramfs-linux-lts.img
==> Starting build: '6.18.20-1-lts'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-lts.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
==> Starting build: '6.19.9-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-zen -g /boot/initramfs-linux-zen.img
==> Starting build: '6.19.9-zen1-1-zen'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-zen.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful

Offline

#44 2026-03-28 15:13:06

YCarac
Member
Registered: 2026-02-08
Posts: 41

Re: nvidia-340xx-dkms driver does not install

In the PKGBUILD file, the line

cat "${pkgdir}"/usr/src/nvidia-${pkgver}/uvm/dkms.conf.fragment >> "${pkgdir}"/usr/src/nvidia-${pkgver}/dkms.conf

- adds last 2 lines of dkms.conf, which are MAKE an CLEAN. Should I edit /usr/src/nvidia-${pkgver}/uvm/dkms.conf.fragment file too?

Offline

#45 2026-03-28 15:18:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 74,662

Re: nvidia-340xx-dkms driver does not install

==> WARNING: A package has already been built, installing existing package...
==> Installing package nvidia-340xx-dkms with pacman -U...
warning: nvidia-340xx-dkms-340.76-5 is up to date -- reinstalling
makepkg -sif

Online

#46 2026-03-28 16:23:49

YCarac
Member
Registered: 2026-02-08
Posts: 41

Re: nvidia-340xx-dkms driver does not install

==> Making package: nvidia-340xx-dkms 340.76-5 (Sat 28 Mar 2026 08:21:59 PM +04)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found NVIDIA-Linux-x86-340.76.run
  -> Found NVIDIA-Linux-x86_64-340.76-no-compat32.run
  -> Found nvidia-4.0.patch
==> Validating source files with sha1sums...
    NVIDIA-Linux-x86-340.76.run ... Passed
    NVIDIA-Linux-x86_64-340.76-no-compat32.run ... Passed
    nvidia-4.0.patch ... Passed
==> Extracting sources...
==> Starting prepare()...
Creating directory NVIDIA-Linux-x86_64-340.76-no-compat32
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 340.76.........................................................................................................................................................................................................
~/nvidia-340xx-dkms/src/NVIDIA-Linux-x86_64-340.76-no-compat32 ~/nvidia-340xx-dkms/src
patching file kernel/nv-pat.c
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
SED PROGRAM:
  /CLEAN/ d
  /MAKE/ d
INPUT:   '/home/ycarac/nvidia-340xx-dkms/pkg/nvidia-340xx-dkms/usr/src/nvidia-340.76/dkms.conf' line 1
PATTERN: PACKAGE_NAME="nvidia"
COMMAND: /CLEAN/ d
COMMAND: /MAKE/ d
END-OF-CYCLE:
INPUT:   '/home/ycarac/nvidia-340xx-dkms/pkg/nvidia-340xx-dkms/usr/src/nvidia-340.76/dkms.conf' line 2
PATTERN: PACKAGE_VERSION="340.76"
COMMAND: /CLEAN/ d
COMMAND: /MAKE/ d
END-OF-CYCLE:
INPUT:   '/home/ycarac/nvidia-340xx-dkms/pkg/nvidia-340xx-dkms/usr/src/nvidia-340.76/dkms.conf' line 3
PATTERN: BUILT_MODULE_NAME[0]="$PACKAGE_NAME"
COMMAND: /CLEAN/ d
COMMAND: /MAKE/ d
END-OF-CYCLE:
INPUT:   '/home/ycarac/nvidia-340xx-dkms/pkg/nvidia-340xx-dkms/usr/src/nvidia-340.76/dkms.conf' line 4
PATTERN: DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
COMMAND: /CLEAN/ d
COMMAND: /MAKE/ d
END-OF-CYCLE:
INPUT:   '/home/ycarac/nvidia-340xx-dkms/pkg/nvidia-340xx-dkms/usr/src/nvidia-340.76/dkms.conf' line 5
PATTERN: MAKE[0]="make module KERNEL_UNAME=${kernelver}"
COMMAND: /CLEAN/ d
COMMAND: /MAKE/ d
END-OF-CYCLE:
INPUT:   '/home/ycarac/nvidia-340xx-dkms/pkg/nvidia-340xx-dkms/usr/src/nvidia-340.76/dkms.conf' line 6
PATTERN: CLEAN="make clean"
COMMAND: /CLEAN/ d
END-OF-CYCLE:
INPUT:   '/home/ycarac/nvidia-340xx-dkms/pkg/nvidia-340xx-dkms/usr/src/nvidia-340.76/dkms.conf' line 7
PATTERN: AUTOINSTALL="yes"
COMMAND: /CLEAN/ d
COMMAND: /MAKE/ d
END-OF-CYCLE:
INPUT:   '/home/ycarac/nvidia-340xx-dkms/pkg/nvidia-340xx-dkms/usr/src/nvidia-340.76/dkms.conf' line 8
PATTERN: BUILT_MODULE_NAME[1]="${PACKAGE_NAME}-uvm"
COMMAND: /CLEAN/ d
COMMAND: /MAKE/ d
END-OF-CYCLE:
INPUT:   '/home/ycarac/nvidia-340xx-dkms/pkg/nvidia-340xx-dkms/usr/src/nvidia-340.76/dkms.conf' line 9
PATTERN: BUILT_MODULE_LOCATION[1]="uvm/"
COMMAND: /CLEAN/ d
COMMAND: /MAKE/ d
END-OF-CYCLE:
INPUT:   '/home/ycarac/nvidia-340xx-dkms/pkg/nvidia-340xx-dkms/usr/src/nvidia-340.76/dkms.conf' line 10
PATTERN: DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
COMMAND: /CLEAN/ d
COMMAND: /MAKE/ d
END-OF-CYCLE:
INPUT:   '/home/ycarac/nvidia-340xx-dkms/pkg/nvidia-340xx-dkms/usr/src/nvidia-340.76/dkms.conf' line 11
PATTERN: MAKE[0]+="; make -C uvm module KERNEL_UNAME=${kernelver} KBUILD_EXTMOD=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/uvm"
COMMAND: /CLEAN/ d
COMMAND: /MAKE/ d
END-OF-CYCLE:
INPUT:   '/home/ycarac/nvidia-340xx-dkms/pkg/nvidia-340xx-dkms/usr/src/nvidia-340.76/dkms.conf' line 12
PATTERN: CLEAN+="; make -C uvm clean"
COMMAND: /CLEAN/ d
END-OF-CYCLE:
==> Tidying install...
  -> Removing libtool files...
  -> Removing static library files...
  -> Purging unwanted files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "nvidia-340xx-dkms"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: nvidia-340xx-dkms 340.76-5 (Sat 28 Mar 2026 08:22:09 PM +04)
==> Installing package nvidia-340xx-dkms with pacman -U...
warning: nvidia-340xx-dkms-340.76-5 is up to date -- reinstalling
loading packages...
resolving dependencies...
looking for conflicting packages...

Packages (1) nvidia-340xx-dkms-340.76-5

Total Installed Size:  14.57 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
checking available disk space...
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> dkms remove nvidia/340.76
:: Processing package changes...
reinstalling nvidia-340xx-dkms...

Error! The module/version combo: nvidia/340.76 is not located in the DKMS tree.
error: command failed to execute correctly
Creating symlink /var/lib/dkms/nvidia/340.76/source -> /usr/src/nvidia-340.76

Sign command: /usr/lib/modules/6.19.9-arch1-1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module(s)...(bad exit status: 2)
Failed command:
make -j4 KERNELRELEASE=6.19.9-arch1-1 -C /usr/lib/modules/6.19.9-arch1-1/build M=/var/lib/dkms/nvidia/340.76/build

Error! Bad return status for module build on kernel: 6.19.9-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/340.76/build/make.log for more information.
error: command failed to execute correctly
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Install DKMS modules
==> dkms install --no-depmod nvidia/340.76 -k 6.18.20-1-lts

Error! Bad return status for module build on kernel: 6.18.20-1-lts (x86_64)
Consult /var/lib/dkms/nvidia/340.76/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/340.76 -k 6.18.20-1-lts' exited 10
==> dkms install --no-depmod nvidia/340.76 -k 6.19.9-arch1-1

Error! Bad return status for module build on kernel: 6.19.9-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/340.76/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/340.76 -k 6.19.9-arch1-1' exited 10
(3/3) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-lts -g /boot/initramfs-linux-lts.img
==> Starting build: '6.18.20-1-lts'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-lts.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
==> Starting build: '6.19.9-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-zen -g /boot/initramfs-linux-zen.img
==> Starting build: '6.19.9-zen1-1-zen'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-zen.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful

Offline

#47 2026-03-28 16:40:13

Unix-Like
Member
Registered: 2026-03-27
Posts: 6

Re: nvidia-340xx-dkms driver does not install

Just saw this issue some minutes ago. nvidia-340xx was broken for me with kernel 6.19.6 update (6.19.6-arch1-1). 20 days or so I have made a patch (0020-kernel-6.19.patch) that works for me, based upon https://pastebin.com/Rhdy9KHe , that you can find to test here, https://github.com/MichelBoucey/nvidia-340xx  (package release version is nvidia-340xx 340.108-40 in my repo). It just replace a function named in_irq by another, in_hardirq. Since I have updated twice up to 6.19.9-arch1-1 without any issue. Not merged yet to nvidia-340xx repo. I wait for feedbacks. Don't know if it will be enough to solve your issue.

Offline

#48 2026-03-28 17:11:28

YCarac
Member
Registered: 2026-02-08
Posts: 41

Re: nvidia-340xx-dkms driver does not install

--------

Deleted this message because I just realized my dumba$$ was cd-ing into the wrong directory all this time. Instead of nvidia-340xx I cloned from https://github.com/MichelBoucey/nvidia-340xx I've been using nvidia-340xx-dkms from AUR. This is embarrassing, sorry

Last edited by YCarac (2026-03-28 17:34:02)

Offline

#49 2026-03-28 17:37:22

YCarac
Member
Registered: 2026-02-08
Posts: 41

Re: nvidia-340xx-dkms driver does not install

Unix-Like wrote:

Just saw this issue some minutes ago. nvidia-340xx was broken for me with kernel 6.19.6 update (6.19.6-arch1-1). 20 days or so I have made a patch (0020-kernel-6.19.patch) that works for me, based upon https://pastebin.com/Rhdy9KHe , that you can find to test here, https://github.com/MichelBoucey/nvidia-340xx  (package release version is nvidia-340xx 340.108-40 in my repo). It just replace a function named in_irq by another, in_hardirq. Since I have updated twice up to 6.19.9-arch1-1 without any issue. Not merged yet to nvidia-340xx repo. I wait for feedbacks. Don't know if it will be enough to solve your issue.

I tried your version and this is what I got:

==> Making package: nvidia-340xx 340.108-40 (Sat 28 Mar 2026 09:30:56 PM +04)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found NVIDIA-Linux-x86_64-340.108-no-compat32.run
  -> Found 20-nvidia.conf
  -> Found 0001-kernel-5.7.patch
  -> Found 0002-kernel-5.8.patch
  -> Found 0003-kernel-5.9.patch
  -> Found 0004-kernel-5.10.patch
  -> Found 0005-kernel-5.11.patch
  -> Found 0006-kernel-5.14.patch
  -> Found 0007-kernel-5.15.patch
  -> Found 0008-kernel-5.16.patch
  -> Found 0009-kernel-5.17.patch
  -> Found 0010-kernel-5.18.patch
  -> Found 0011-kernel-6.0.patch
  -> Found 0012-kernel-6.2.patch
  -> Found 0013-kernel-6.3.patch
  -> Found 0014-kernel-6.5.patch
  -> Found 0015-kernel-6.6.patch
  -> Found 0016-kernel-6.8.patch
  -> Found 0017-gcc-14.patch
  -> Found 0018-gcc-15.patch
  -> Found 0019-kernel-6.15.patch
  -> Found 0020-kernel-6.19.patch
==> Validating source files with b2sums...
    NVIDIA-Linux-x86_64-340.108-no-compat32.run ... Passed
    20-nvidia.conf ... Passed
    0001-kernel-5.7.patch ... Passed
    0002-kernel-5.8.patch ... Passed
    0003-kernel-5.9.patch ... Passed
    0004-kernel-5.10.patch ... Passed
    0005-kernel-5.11.patch ... Passed
    0006-kernel-5.14.patch ... Passed
    0007-kernel-5.15.patch ... Passed
    0008-kernel-5.16.patch ... Passed
    0009-kernel-5.17.patch ... Passed
    0010-kernel-5.18.patch ... Passed
    0011-kernel-6.0.patch ... Passed
    0012-kernel-6.2.patch ... Passed
    0013-kernel-6.3.patch ... Passed
    0014-kernel-6.5.patch ... Passed
    0015-kernel-6.6.patch ... Passed
    0016-kernel-6.8.patch ... Passed
    0017-gcc-14.patch ... Passed
    0018-gcc-15.patch ... Passed
    0019-kernel-6.15.patch ... Passed
    0020-kernel-6.19.patch ... Passed
==> Extracting sources...
==> Starting prepare()...
Creating directory NVIDIA-Linux-x86_64-340.108-no-compat32
The directory 'NVIDIA-Linux-x86_64-340.108-no-compat32' already exists.  Please either
move the existing directory out of the way, or specify a
different directory with the '--target' option.
==> ERROR: A failure occurred in prepare().
    Aborting...

Any idea what's going wrong?

Offline

#50 2026-03-28 18:16:44

Unix-Like
Member
Registered: 2026-03-27
Posts: 6

Re: nvidia-340xx-dkms driver does not install

At least, remove "src/NVIDIA-Linux-x86_64-340.108-no-compat32/", or all src/. It's where sources are copied, patched and compiled from. Rerun makepkg.

Offline

Board footer

Powered by FluxBB