Package Details: nvidia-470xx-utils 470.239.06-2

Git Clone URL: https://aur.archlinux.org/nvidia-470xx-utils.git (read-only, click to copy)
Package Base: nvidia-470xx-utils
Description: NVIDIA drivers utilities
Upstream URL: http://www.nvidia.com/
Keywords: driver nvidia video
Licenses: custom
Conflicts: nvidia-libgl, nvidia-utils
Provides: nvidia-libgl, nvidia-utils, opengl-driver, vulkan-driver
Submitter: jonathon
Maintainer: Sinyria (cysp74, SoftExpert)
Last Packager: SoftExpert
Votes: 97
Popularity: 4.39
First Submitted: 2021-10-31 00:50 (UTC)
Last Updated: 2024-05-13 16:16 (UTC)

Dependencies (6)

Required by (269)

Sources (11)

Latest Comments

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

fuan_k commented on 2024-05-10 19:33 (UTC)

Confirming rodrigorc's patch works for the LTS kernel 6.6.30-2-lts gcc version 14.1.1 20240507

I have not seen errors for the 6.8.9-arch1-2 kernel either.

meadow commented on 2024-05-10 15:34 (UTC)

Confirming TechXero's patch works for the LTS kernel

6.6.30-2-lts gcc version 14.1.1 20240507

rodrigorc commented on 2024-05-10 12:35 (UTC)

I hadn't found this solution, so I went and fixed it myself with a slightly different patch:

--- a/Kbuild
+++ b/Kbuild
@@ -68,7 +68,7 @@

 EXTRA_CFLAGS += -I$(src)/common/inc
 EXTRA_CFLAGS += -I$(src)
-EXTRA_CFLAGS += -Wall -MD $(DEFINES) $(INCLUDES) -Wno-cast-qual -Wno-error -Wno-format-extra-args
+EXTRA_CFLAGS += -Wall -MD $(DEFINES) $(INCLUDES) -Wno-cast-qual -Wno-error -Wno-format-extra-args -fpermissive
 EXTRA_CFLAGS += -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"470.239.06\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE
 EXTRA_CFLAGS += $(call cc-option,-Werror=undef,)
 EXTRA_CFLAGS += -DNV_SPECTRE_V2=$(NV_SPECTRE_V2)

I think this is more proper, GCC itself recommends using -fpermissive if there is need for the legacy behavior: https://gcc.gnu.org/gcc-14/porting_to.html

xclay commented on 2024-05-10 00:21 (UTC)

I confirm @TechXero patch working with: kernel: 6.8.9-arch1-2 gcc: 14.1.1

thanks.

rodolfoser commented on 2024-05-09 23:57 (UTC)

can confirm PKGBUILD patch works for me too

ncmprhnsbl commented on 2024-05-09 22:48 (UTC)

confirming patch works here. for no offset, just change to "@@ -101,7 +101,8 @@ test_headers() {"

TechXero commented on 2024-05-09 19:01 (UTC)

@SoftExpert

I have not yet tested it but @Maniaxx did seems to work. Can you update package with -2 added to it ?

Maniaxx commented on 2024-05-09 18:37 (UTC) (edited on 2024-05-09 18:37 (UTC) by Maniaxx)

I can confirm TechXero patch is working on stable kernel 6.8.9-arch1-2 and GCC 14.1.1. The patch shows 'offset -52 lines'.

PKGBUILD with patch:

https://0x0.st/X8pn.tar.gz/nvidia-470xx-conftest-patch-techxero.tar.gz

SoftExpert commented on 2024-05-09 16:13 (UTC)

Please only flag "out of date" the package when a new version of the driver is released. Tweaking the build process of the current version does not qualify as an "out of date".

@TechXero: have you tested the patch with various kernel / compiler configurations ? Does it work in all cases ?

TechXero commented on 2024-05-09 11:09 (UTC) (edited on 2024-05-09 15:08 (UTC) by TechXero)

Yep thanks for solution worked for me too.. I think an update is on the way.

Patch here

diff --git a/kernel/conftest.sh b/kernel/conftest.sh
index 093704c..a9db899 100755
--- a/kernel/conftest.sh
+++ b/kernel/conftest.sh
@@ -153,7 +153,8 @@ test_headers() {
 build_cflags() {
     BASE_CFLAGS="-O2 -D__KERNEL__ \
 -DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
--nostdinc -isystem $ISYSTEM"
+-nostdinc -isystem $ISYSTEM \
+-Wno-implicit-function-declaration -Wno-strict-prototypes -Wno-incompatible-pointer-types"

     if [ "$OUTPUT" != "$SOURCES" ]; then
         OUTPUT_CFLAGS="-I$OUTPUT/include2 -I$OUTPUT/include"