@gbr: Thanks for the patch, now the card works better than ever.
Search Criteria
Package Details: nvidia-470xx-dkms 470.256.02-7.97
Package Actions
Git Clone URL: | https://aur.archlinux.org/nvidia-470xx-utils.git (read-only, click to copy) |
---|---|
Package Base: | nvidia-470xx-utils |
Description: | NVIDIA drivers - module sources |
Upstream URL: | http://www.nvidia.com/ |
Keywords: | driver nvidia video |
Licenses: | custom |
Conflicts: | nvidia-dkms |
Provides: | NVIDIA-MODULE |
Submitter: | jonathon |
Maintainer: | Sinyria (cysp74, SoftExpert) |
Last Packager: | SoftExpert |
Votes: | 107 |
Popularity: | 4.25 |
First Submitted: | 2021-10-31 00:50 (UTC) |
Last Updated: | 2025-04-09 17:01 (UTC) |
Dependencies (3)
- dkms (dkms-gitAUR)
- libglvnd (libglvnd-gitAUR)
- nvidia-470xx-utilsAUR
Required by (9)
- conky-lua-nv (optional)
- mhwd-nvidia-470xx (make)
- nvidia-exec (requires NVIDIA-MODULE)
- nvidia-exec-git (requires NVIDIA-MODULE)
- nvidia-pacman-hook (requires NVIDIA-MODULE) (optional)
- nvidia-xrun-pm (requires NVIDIA-MODULE)
- nvidiactl-git (requires NVIDIA-MODULE)
- optimus-manager-git (requires NVIDIA-MODULE)
- xorgxrdp-nvidia (requires NVIDIA-MODULE)
Sources (13)
- 0001-Fix-conftest-to-ignore-implicit-function-declaration.patch
- 0002-Fix-conftest-to-use-a-short-wchar_t.patch
- 0003-Fix-conftest-to-use-nv_drm_gem_vmap-which-has-the-se.patch
- https://us.download.nvidia.com/XFree86/Linux-x86_64/470.256.02/NVIDIA-Linux-x86_64-470.256.02.run
- kernel-6.10.patch
- kernel-6.12.patch
- nvidia-470xx-fix-linux-6.13.patch
- nvidia-470xx-fix-linux-6.14.patch
- nvidia-470xx-utils.sysusers
- nvidia-470xx.rules
- nvidia-drm-outputclass.conf
- systemd-homed-override.conf
- systemd-suspend-override.conf
silent commented on 2025-05-02 15:06 (UTC)
vagorafaelino commented on 2025-05-01 13:33 (UTC)
I can confirm a successfull build with the patch proposed by @gbr for linux 6.14.4-arch1-2 and gcc 15.1.1. There is no need to downgrade.
BTW, kudos to @gbr!
patenteng commented on 2025-05-01 10:18 (UTC)
There is a patch out for 570: https://gitlab.archlinux.org/archlinux/packaging/packages/nvidia-utils/-/blob/11deaedbd194cacd732c44a902699a56d2d59d4b/0002-CFLAGS-Set-std-gnu17-for-all-compilation-flags.patch.
Haven't tested it, but may be useful. It appears that GCC 15 uses C23 as default. You need to use the -std=gnu17 option.
mocramis commented on 2025-05-01 09:39 (UTC)
Thanks @gbr
Confirms it works with my old GTX660 Ti
patenteng commented on 2025-05-01 09:11 (UTC) (edited on 2025-05-01 09:12 (UTC) by patenteng)
Build fails with gcc 15. I had to downgrade.
For anyone else experiencing the same issue, I ran:
cd /var/cache/pacman/pkg
sudo pacman -U glibc-2.41+r47+g046b33800c3e-1-x86_64.pkg.tar.zst gcc-libs-14.2.1+r753+g1cd744a6828f-1-x86_64.pkg.tar.zst gcc-14.2.1+r753+g1cd744a6828f-1-x86_64.pkg.tar.zst gcc-fortran-14.2.1+r753+g1cd744a6828f-1-x86_64.pkg.tar.zst
This fixed it for now. You need to regenerate the modules. Easiest thing to do is to just reinstall linux and linux-lts, if you have it. This will trigger all the appropriate hooks.
abject commented on 2025-05-01 08:40 (UTC) (edited on 2025-05-01 08:41 (UTC) by abject)
Thanks you @gbr your patch solves my builds problem.
Card: NVIDIA Corporation GK208B [GeForce GT 730] (rev a1)
Kernels:
- 6.12.25-2-lts => build OK
- 6.14.4-arch1-2 => build OK
injiniero commented on 2025-05-01 07:55 (UTC) (edited on 2025-05-01 08:01 (UTC) by injiniero)
I can confirm that @gbr's patch works for my old GeForce GTX 760 with 6.14 kernel. This is what I did:
cd ~/.cache/yay/nvidia-470xx-utils
nano 6.14-fix.patch
(paste @gbr patch contents and save with ^X)
git apply 6.14-fix.patch
makepkg -fi
This rebuilds and reinstall the package and runs mkinitcpio -P
Then reboot...
Thank you @gbr
lefterisjp commented on 2025-04-30 23:05 (UTC)
Thank you @gbr. Applying your patch and building the package runs mkinitcpio -P
succesfully
gbr commented on 2025-04-30 21:51 (UTC) (edited on 2025-04-30 21:52 (UTC) by gbr)
Adding -std=gnu17
to EXTRA_CFLAGS
in Kbuild
fixed building for me.
Here's a patch (save it as a file and apply it against this AUR repo with git apply <file>
, then rebuild the package):
diff --git a/PKGBUILD b/PKGBUILD
index 93df6e3..52ccadb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -28,6 +28,7 @@ source=('nvidia-drm-outputclass.conf'
"kernel-6.12.patch"
"nvidia-470xx-fix-linux-6.13.patch"
"nvidia-470xx-fix-linux-6.14.patch"
+ "gcc-15.patch"
)
sha512sums=('de7116c09f282a27920a1382df84aa86f559e537664bb30689605177ce37dc5067748acf9afd66a3269a6e323461356592fdfc624c86523bf105ff8fe47d3770'
@@ -42,7 +43,8 @@ sha512sums=('de7116c09f282a27920a1382df84aa86f559e537664bb30689605177ce37dc50677
'e1371e2ed622d642b0242a2be34438fae97fa33ef42afc1e7897177c10dc8831f20b9a8b37d25d9dc079743df03b10221decfb23577650233af8981a4ffb813c'
'ef84759e29869c0663b7a026d62d53196575eb633fa7a80935bcd8f1e64da94ef1a386facca313c36f306f591de094c4e36f42e453c0e9421755df68f18ae1f0'
'c577d422799580e6a7b12670439dd7d68f9474ae17e96355144b7037d9a36228f22e53682f317ec7ca0f6a83d2520ede376350d02a2c072d0d195768f4115cba'
- '7f0ab1d27d08fc091e8190ff040115607eb2d0c4a6ab710f8083899c3ed44a30eb4479c0bae8a072ee54409734f9c78a10f0c2555157526e153b4578ccf8aea6')
+ '7f0ab1d27d08fc091e8190ff040115607eb2d0c4a6ab710f8083899c3ed44a30eb4479c0bae8a072ee54409734f9c78a10f0c2555157526e153b4578ccf8aea6'
+ '2b6e8265ed46b6a33c01199e737aa654f5af7911a563e551e419870cbdab79c58d99773123fc6db62a02407ea8f56d1a7cca2ddfc96293b31cc5f8e23447fddf')
create_links() {
# create soname links
@@ -74,6 +76,7 @@ prepare() {
patch -p1 -i "${srcdir}/kernel-6.12.patch"
patch -p1 -i "${srcdir}/nvidia-470xx-fix-linux-6.13.patch"
patch -p1 -i "${srcdir}/nvidia-470xx-fix-linux-6.14.patch"
+ patch -p1 -i "${srcdir}/gcc-15.patch"
sed -i "s/__VERSION_STRING/${pkgver}/" dkms.conf
sed -i 's/__JOBS/`nproc`/' dkms.conf
diff --git a/gcc-15.patch b/gcc-15.patch
new file mode 100644
index 0000000..305d82c
--- /dev/null
+++ b/gcc-15.patch
@@ -0,0 +1,12 @@
+diff --git a/Kbuild b/Kbuild
+index eadd8b2..f1bfd3f 100644
+--- a/Kbuild
++++ b/Kbuild
+@@ -73,6 +73,7 @@ EXTRA_CFLAGS += -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"470.256.02\"
+ EXTRA_CFLAGS += $(call cc-option,-Werror=undef,)
+ EXTRA_CFLAGS += -DNV_SPECTRE_V2=$(NV_SPECTRE_V2)
+ EXTRA_CFLAGS += -DNV_KERNEL_INTERFACE_LAYER
++EXTRA_CFLAGS += -std=gnu17
+
+ #
+ # Detect SGI UV systems and apply system-specific optimizations.
Pinned Comments
SoftExpert commented on 2025-02-09 10:20 (UTC)
For the beginners in need of assistance, first take a look at this recommended guide https://github.com/korvahannu/arch-nvidia-drivers-installation-guide - maybe it helps to solve the issues your are having with this version of the driver.