nvidia-drivers not working with geforce gt 740

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
User avatar
mr_hero
Black ninja
Black ninja
Posts: 63
Joined: 10 Jul 2014, 01:33
Distribution: Porteus
Location: germany

nvidia-drivers not working with geforce gt 740

Post#31 by mr_hero » 25 Sep 2017, 17:45

I compiled the newest nvidia-driver 384.69 for porteus 3.2.2 (64 bit) in always-fresh-mode. Unfortunately the new package leads to an error-message after boot-up:
Could not start kdeinit5. Check your installation.
The error comes up in a white message-box in graphical mode. KDE doesn't load, afterwards.

The package I made can be downloaded here: link removed

For creation, I placed the packages crippled-sources, devel and blacklist-nouveau in a folder on hdd and changed the always-fresh-boot-string: I removed "base_only" and added "extramod=UUID:[Linux-Partition's UUID]/path to/folder". I also took care that no other modules got loaded and no "changes="-entry was present.

Furthermore, I put nvidia.tar.bz2 (link mentioned in some post before) in /tmp/, executed the official nvidia-run-file, confirmed all questions (especially the question for 32-bit-libs) and ran the following script afterwards:

Code: Select all

#!/bin/bash
# Build and clean nVidia xzm driver module for Porteus by Blaze for arch x86 or x86_64:
dir2xzm /mnt/live/memory/changes /tmp/nvidia.xzm
cd /tmp
mkdir /tmp/nvidia
xzm2dir nvidia.xzm nvidia
cd /tmp/nvidia
rm -rf /tmp/nvidia/dev
rm -rf /tmp/nvidia/mnt
rm -rf /tmp/nvidia/root
rm -rf /tmp/nvidia/tmp
rm -rf /tmp/nvidia/var
rm -rf /tmp/nvidia/etc/*[^OpenCL,X11]
rm /tmp/nvidia/etc/adjtime
rm /tmp/nvidia/etc/ld.so.cache
rm /tmp/nvidia/etc/localtime
rm /tmp/nvidia/etc/X11/xorg.conf.nvidia-xconfig-original
tar xvjf /tmp/nvidia.tar.bz2
rm /tmp/nvidia/lib/modules/*porteus/modules.*
rm -rf /tmp/nvidia/usr/src
rm -rf /tmp/nvidia/usr/lib/gio
rm -rf /tmp/nvidia/usr/lib/gtk-2.0
rm -rf /tmp/nvidia/usr/lib/gtk-3.0
rm -rf /tmp/nvidia/usr/lib64/gio
rm -rf /tmp/nvidia/usr/lib64/gtk-2.0
rm -rf /tmp/nvidia/usr/lib64/gtk-3.0
rm -rf /tmp/nvidia/usr/share/mime
rmdir /tmp/nvidia/usr/share/pixmaps
rm /tmp/nvidia/usr/share/applications/mimeinfo.cache
dir2xzm /tmp/nvidia /tmp/nvidia-repack.xzm
cd /tmp
# mv /tmp/nvidia-repack.xzm /mnt/sdb7/porteus/modules
# rm /mnt/sdb7/porteus/base/blacklist.xzm
# rm -rf /tmp
echo New package nvidia-repack was put in /tmp/
The resulting package is causing me trouble now. I already tried "nvidia-xconfig" to automatically update xorg.conf. This didn't help, unfortunately.
Last edited by mr_hero on 25 Sep 2017, 23:08, edited 1 time in total.

donald
Full of knowledge
Full of knowledge
Posts: 2061
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

nvidia-drivers not working with geforce gt 740

Post#32 by donald » 25 Sep 2017, 21:15

You tend to make things more complicated, don't you?

The usual way to compile nvidia drivers:
put devel, crippled-sources and blacklist into the base folder
and reboot into text-mode, run mc and work with it...

However; Your module contains many unneeded files/folders.
e.g. the whole home/guest tree.

This driver version does not support my Hardware - no tests possible,sorry.

User avatar
mr_hero
Black ninja
Black ninja
Posts: 63
Joined: 10 Jul 2014, 01:33
Distribution: Porteus
Location: germany

nvidia-drivers not working with geforce gt 740

Post#33 by mr_hero » 25 Sep 2017, 23:06

I'm sorry being so annoying. However, nobody did upload a module with the newest nvidia-driver for porteus 3.2.2 up to now. So...helping me would make this module available for everyone.

I didn't notice that Blaze's nvidia.sh (which I modified for my purpose) doesn't clean-up the module-content properly. Maybe that's the reason I'm running in even more trouble now: Even after switching back to the old driver, kde doesn't start anymore. I guess some configuration in my home-folder is broken now.

So...testing my module is not a good idea as it could mess-up the kde-config. I'll try to remove the download-link.
donald wrote:
25 Sep 2017, 21:15
The usual way to compile nvidia drivers:
put devel, crippled-sources and blacklist into the base folder
and reboot into text-mode, run mc and work with it...
Yes, this is what I did, actually. I forgot to mention the text-mode. Sorry. The cheatcode for that is a "3" as the first cheatcode in the kernel-line of the boot-manager. Though, I barely use midnight-commander.

Any idea how to get kde back to live? In my home-folder, I tried moving .kde4 and some other (rather random) hidden config-folders...but without effect.
I spent the last days configuring porteus and software. I don't want to remove the whole home-folder now.

BTW I found this in /home/guest/.local/share/sddm/xorg-session.log:
/usr/bin/xauth: timeout in locking authority file /home/guest/.Xauthority
No protocol specified
No protocol specified
Not sure if it has any meaning.

Edit:

Never mind. I created a new guest-folder and copied most folders back. I now need to reconfigure kde but have full desktop-effects! Wobbling windows, cube-animation on desktop-switch and most of the other crap was not fully available before. :D I like it!

donald
Full of knowledge
Full of knowledge
Posts: 2061
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

nvidia-drivers not working with geforce gt 740

Post#34 by donald » 27 Sep 2017, 19:39

mr_hero wrote:
25 Sep 2017, 23:06
I'm sorry being so annoying.
:) ..rest assured,you are not.

This thread has just become somehow confusing
-- various versions of porteus, graphic-cards, drivers etc. --

module clean up:
I slightly modified the script - no auto reboot, place module into optional folder,
so it wont get loaded at reboot.
After reboot unpack it to remove files/folders which do obviously not belong to the driver,
repack the module...done

However,
Newer driver *.run files do not build a .ko module
(message = unsupported Hardware, use driver xxx.xxx)
If someone knows a switch to overcome this hardware check to just build the module,
please let me know.

User avatar
mr_hero
Black ninja
Black ninja
Posts: 63
Joined: 10 Jul 2014, 01:33
Distribution: Porteus
Location: germany

nvidia-drivers not working with geforce gt 740

Post#35 by mr_hero » 02 Oct 2017, 20:20

I tried compiling the 384.69-driver one more time. This time I erased the home-folder from the module. I got no errors during compilation. When booting the new driver-module however, I'm getting the X-Server-error again:
Could not start kdeinit5. Check your installation.
I'm glad kde-config didn't get damaged this time. Reverting back to 340-drivers gave me back KDE after reboot.
donald wrote:
27 Sep 2017, 19:39
Newer driver *.run files do not build a .ko module
(message = unsupported Hardware, use driver xxx.xxx)
I didn't get that message. I think .ko-modules got compiled properly, though I'm not sure which one are needed. Content of my new nvidia-package:

Code: Select all

# find ./ -name "*"
./
./etc
./etc/OpenCL
./etc/OpenCL/vendors
./etc/OpenCL/vendors/nvidia.icd
./etc/X11
./etc/X11/xorg.conf
./etc/modprobe.d
./etc/modprobe.d/nvidia-installer-disable-nouveau.conf
./etc/rc.d
./etc/rc.d/rcS.d
./etc/rc.d/rcS.d/S99-nVidia
./etc/vulkan
./etc/vulkan/icd.d
./etc/vulkan/icd.d/nvidia_icd.json
./lib
./lib/modules
./lib/modules/4.9.0-porteus
./lib/modules/4.9.0-porteus/kernel
./lib/modules/4.9.0-porteus/kernel/drivers
./lib/modules/4.9.0-porteus/kernel/drivers/video
./lib/modules/4.9.0-porteus/kernel/drivers/video/nvidia-drm.ko
./lib/modules/4.9.0-porteus/kernel/drivers/video/nvidia-modeset.ko
./lib/modules/4.9.0-porteus/kernel/drivers/video/nvidia-uvm.ko
./lib/modules/4.9.0-porteus/kernel/drivers/video/nvidia.ko
./usr
./usr/bin
./usr/bin/nvidia-bug-report.sh
./usr/bin/nvidia-cuda-mps-control
./usr/bin/nvidia-cuda-mps-server
./usr/bin/nvidia-debugdump
./usr/bin/nvidia-installer
./usr/bin/nvidia-modprobe
./usr/bin/nvidia-persistenced
./usr/bin/nvidia-settings
./usr/bin/nvidia-smi
./usr/bin/nvidia-uninstall
./usr/bin/nvidia-xconfig
./usr/lib
./usr/lib/libEGL.so
./usr/lib/libEGL.so.1
./usr/lib/libEGL_nvidia.so.0
./usr/lib/libEGL_nvidia.so.384.69
./usr/lib/libGL.la
./usr/lib/libGL.so
./usr/lib/libGL.so.1
./usr/lib/libGL.so.1.0.0
./usr/lib/libGLESv1_CM.so
./usr/lib/libGLESv1_CM.so.1
./usr/lib/libGLESv1_CM_nvidia.so.1
./usr/lib/libGLESv1_CM_nvidia.so.384.69
./usr/lib/libGLESv2.so
./usr/lib/libGLESv2.so.2
./usr/lib/libGLESv2_nvidia.so.2
./usr/lib/libGLESv2_nvidia.so.384.69
./usr/lib/libGLX.so
./usr/lib/libGLX.so.0
./usr/lib/libGLX_indirect.so.0
./usr/lib/libGLX_nvidia.so.0
./usr/lib/libGLX_nvidia.so.384.69
./usr/lib/libGLdispatch.so.0
./usr/lib/libOpenCL.so
./usr/lib/libOpenCL.so.1
./usr/lib/libOpenCL.so.1.0
./usr/lib/libOpenCL.so.1.0.0
./usr/lib/libOpenGL.so
./usr/lib/libOpenGL.so.0
./usr/lib/libcuda.so
./usr/lib/libcuda.so.1
./usr/lib/libcuda.so.384.69
./usr/lib/libnvcuvid.so
./usr/lib/libnvcuvid.so.1
./usr/lib/libnvcuvid.so.384.69
./usr/lib/libnvidia-compiler.so.384.69
./usr/lib/libnvidia-eglcore.so.384.69
./usr/lib/libnvidia-encode.so
./usr/lib/libnvidia-encode.so.1
./usr/lib/libnvidia-encode.so.384.69
./usr/lib/libnvidia-fatbinaryloader.so.384.69
./usr/lib/libnvidia-fbc.so
./usr/lib/libnvidia-fbc.so.1
./usr/lib/libnvidia-fbc.so.384.69
./usr/lib/libnvidia-glcore.so.384.69
./usr/lib/libnvidia-glsi.so.384.69
./usr/lib/libnvidia-ifr.so
./usr/lib/libnvidia-ifr.so.1
./usr/lib/libnvidia-ifr.so.384.69
./usr/lib/libnvidia-ml.so
./usr/lib/libnvidia-ml.so.1
./usr/lib/libnvidia-ml.so.384.69
./usr/lib/libnvidia-opencl.so.1
./usr/lib/libnvidia-opencl.so.384.69
./usr/lib/libnvidia-ptxjitcompiler.so
./usr/lib/libnvidia-ptxjitcompiler.so.1
./usr/lib/libnvidia-ptxjitcompiler.so.384.69
./usr/lib/libnvidia-tls.so.384.69
./usr/lib/libvdpau_nvidia.so
./usr/lib/vdpau
./usr/lib/vdpau/libvdpau_nvidia.so.1
./usr/lib/vdpau/libvdpau_nvidia.so.384.69
./usr/lib64
./usr/lib64/libEGL.so
./usr/lib64/libEGL.so.1
./usr/lib64/libEGL_nvidia.so.0
./usr/lib64/libEGL_nvidia.so.384.69
./usr/lib64/libGL.la
./usr/lib64/libGL.so
./usr/lib64/libGL.so.1
./usr/lib64/libGL.so.1.0.0
./usr/lib64/libGLESv1_CM.so
./usr/lib64/libGLESv1_CM.so.1
./usr/lib64/libGLESv1_CM_nvidia.so.1
./usr/lib64/libGLESv1_CM_nvidia.so.384.69
./usr/lib64/libGLESv2.so
./usr/lib64/libGLESv2.so.2
./usr/lib64/libGLESv2_nvidia.so.2
./usr/lib64/libGLESv2_nvidia.so.384.69
./usr/lib64/libGLX.so
./usr/lib64/libGLX.so.0
./usr/lib64/libGLX_indirect.so.0
./usr/lib64/libGLX_nvidia.so.0
./usr/lib64/libGLX_nvidia.so.384.69
./usr/lib64/libGLdispatch.so.0
./usr/lib64/libOpenCL.so
./usr/lib64/libOpenCL.so.1
./usr/lib64/libOpenCL.so.1.0
./usr/lib64/libOpenCL.so.1.0.0
./usr/lib64/libOpenGL.so
./usr/lib64/libOpenGL.so.0
./usr/lib64/libXvMCgallium.so.1
./usr/lib64/libcuda.so
./usr/lib64/libcuda.so.1
./usr/lib64/libcuda.so.384.69
./usr/lib64/libnvcuvid.so
./usr/lib64/libnvcuvid.so.1
./usr/lib64/libnvcuvid.so.384.69
./usr/lib64/libnvidia-cfg.so
./usr/lib64/libnvidia-cfg.so.1
./usr/lib64/libnvidia-cfg.so.384.69
./usr/lib64/libnvidia-compiler.so.384.69
./usr/lib64/libnvidia-egl-wayland.so.1
./usr/lib64/libnvidia-egl-wayland.so.1.0.1
./usr/lib64/libnvidia-eglcore.so.384.69
./usr/lib64/libnvidia-encode.so
./usr/lib64/libnvidia-encode.so.1
./usr/lib64/libnvidia-encode.so.384.69
./usr/lib64/libnvidia-fatbinaryloader.so.384.69
./usr/lib64/libnvidia-fbc.so
./usr/lib64/libnvidia-fbc.so.1
./usr/lib64/libnvidia-fbc.so.384.69
./usr/lib64/libnvidia-glcore.so.384.69
./usr/lib64/libnvidia-glsi.so.384.69
./usr/lib64/libnvidia-gtk2.so.384.69
./usr/lib64/libnvidia-gtk3.so.384.69
./usr/lib64/libnvidia-ifr.so
./usr/lib64/libnvidia-ifr.so.1
./usr/lib64/libnvidia-ifr.so.384.69
./usr/lib64/libnvidia-ml.so
./usr/lib64/libnvidia-ml.so.1
./usr/lib64/libnvidia-ml.so.384.69
./usr/lib64/libnvidia-opencl.so.1
./usr/lib64/libnvidia-opencl.so.384.69
./usr/lib64/libnvidia-ptxjitcompiler.so
./usr/lib64/libnvidia-ptxjitcompiler.so.1
./usr/lib64/libnvidia-ptxjitcompiler.so.384.69
./usr/lib64/libnvidia-tls.so.384.69
./usr/lib64/libudev.so.1
./usr/lib64/libvdpau_nvidia.so
./usr/lib64/tls
./usr/lib64/tls/libnvidia-tls.so.384.69
./usr/lib64/vdpau
./usr/lib64/vdpau/libvdpau_nvidia.so.1
./usr/lib64/vdpau/libvdpau_nvidia.so.384.69
./usr/lib64/xorg
./usr/lib64/xorg/modules
./usr/lib64/xorg/modules/drivers
./usr/lib64/xorg/modules/drivers/nvidia_drv.so
./usr/lib64/xorg/modules/extensions
./usr/lib64/xorg/modules/extensions/libglx.so
./usr/lib64/xorg/modules/extensions/libglx.so.384.69
./usr/lib64/xorg/modules/libnvidia-wfb.so.1
./usr/lib64/xorg/modules/libnvidia-wfb.so.384.69
./usr/man
./usr/man/man1
./usr/man/man1/nvidia-cuda-mps-control.1
./usr/man/man1/nvidia-installer.1
./usr/man/man1/nvidia-modprobe.1
./usr/man/man1/nvidia-persistenced.1
./usr/man/man1/nvidia-settings.1
./usr/man/man1/nvidia-smi.1
./usr/man/man1/nvidia-xconfig.1
./usr/share
./usr/share/X11
./usr/share/X11/xorg.conf.d
./usr/share/X11/xorg.conf.d/nvidia-drm-outputclass.conf
./usr/share/applications
./usr/share/applications/nvidia-settings.desktop
./usr/share/doc
./usr/share/doc/NVIDIA_GLX-1.0
./usr/share/doc/NVIDIA_GLX-1.0/LICENSE
./usr/share/doc/NVIDIA_GLX-1.0/NVIDIA_Changelog
./usr/share/doc/NVIDIA_GLX-1.0/README.txt
./usr/share/doc/NVIDIA_GLX-1.0/html
./usr/share/doc/NVIDIA_GLX-1.0/html/acknowledgements.html
./usr/share/doc/NVIDIA_GLX-1.0/html/addressingcapabilities.html
./usr/share/doc/NVIDIA_GLX-1.0/html/addtlresources.html
./usr/share/doc/NVIDIA_GLX-1.0/html/appendices.html
./usr/share/doc/NVIDIA_GLX-1.0/html/audiosupport.html
./usr/share/doc/NVIDIA_GLX-1.0/html/commonproblems.html
./usr/share/doc/NVIDIA_GLX-1.0/html/configlaptop.html
./usr/share/doc/NVIDIA_GLX-1.0/html/configmultxscreens.html
./usr/share/doc/NVIDIA_GLX-1.0/html/configtwinview.html
./usr/share/doc/NVIDIA_GLX-1.0/html/depth30.html
./usr/share/doc/NVIDIA_GLX-1.0/html/displaydevicenames.html
./usr/share/doc/NVIDIA_GLX-1.0/html/dma_issues.html
./usr/share/doc/NVIDIA_GLX-1.0/html/dpi.html
./usr/share/doc/NVIDIA_GLX-1.0/html/editxconfig.html
./usr/share/doc/NVIDIA_GLX-1.0/html/faq.html
./usr/share/doc/NVIDIA_GLX-1.0/html/flippingubb.html
./usr/share/doc/NVIDIA_GLX-1.0/html/framelock.html
./usr/share/doc/NVIDIA_GLX-1.0/html/glxsupport.html
./usr/share/doc/NVIDIA_GLX-1.0/html/gpunames.html
./usr/share/doc/NVIDIA_GLX-1.0/html/i2c.html
./usr/share/doc/NVIDIA_GLX-1.0/html/index.html
./usr/share/doc/NVIDIA_GLX-1.0/html/installationandconfiguration.html
./usr/share/doc/NVIDIA_GLX-1.0/html/installdriver.html
./usr/share/doc/NVIDIA_GLX-1.0/html/installedcomponents.html
./usr/share/doc/NVIDIA_GLX-1.0/html/introduction.html
./usr/share/doc/NVIDIA_GLX-1.0/html/kms.html
./usr/share/doc/NVIDIA_GLX-1.0/html/knownissues.html
./usr/share/doc/NVIDIA_GLX-1.0/html/minimumrequirements.html
./usr/share/doc/NVIDIA_GLX-1.0/html/newusertips.html
./usr/share/doc/NVIDIA_GLX-1.0/html/nvidia-debugdump.html
./usr/share/doc/NVIDIA_GLX-1.0/html/nvidia-ml.html
./usr/share/doc/NVIDIA_GLX-1.0/html/nvidia-persistenced.html
./usr/share/doc/NVIDIA_GLX-1.0/html/nvidia-smi.html
./usr/share/doc/NVIDIA_GLX-1.0/html/nvidiasettings.html
./usr/share/doc/NVIDIA_GLX-1.0/html/openglenvvariables.html
./usr/share/doc/NVIDIA_GLX-1.0/html/optimus.html
./usr/share/doc/NVIDIA_GLX-1.0/html/powermanagement.html
./usr/share/doc/NVIDIA_GLX-1.0/html/procinterface.html
./usr/share/doc/NVIDIA_GLX-1.0/html/profiles.html
./usr/share/doc/NVIDIA_GLX-1.0/html/programmingmodes.html
./usr/share/doc/NVIDIA_GLX-1.0/html/randr14.html
./usr/share/doc/NVIDIA_GLX-1.0/html/sdi.html
./usr/share/doc/NVIDIA_GLX-1.0/html/selectdriver.html
./usr/share/doc/NVIDIA_GLX-1.0/html/sli.html
./usr/share/doc/NVIDIA_GLX-1.0/html/supportedchips.html
./usr/share/doc/NVIDIA_GLX-1.0/html/vdpausupport.html
./usr/share/doc/NVIDIA_GLX-1.0/html/xcompositeextension.html
./usr/share/doc/NVIDIA_GLX-1.0/html/xconfigoptions.html
./usr/share/doc/NVIDIA_GLX-1.0/html/xineramaglx.html
./usr/share/doc/NVIDIA_GLX-1.0/html/xrandrextension.html
./usr/share/doc/NVIDIA_GLX-1.0/nvidia-settings.png
./usr/share/doc/NVIDIA_GLX-1.0/sample
./usr/share/doc/NVIDIA_GLX-1.0/sample/nvidia-persistenced-init.tar.bz2
./usr/share/egl
./usr/share/egl/egl_external_platform.d
./usr/share/egl/egl_external_platform.d/10_nvidia_wayland.json
./usr/share/glvnd
./usr/share/glvnd/egl_vendor.d
./usr/share/glvnd/egl_vendor.d/10_nvidia.json
./usr/share/nvidia
./usr/share/nvidia/nvidia-application-profiles-384.69-key-documentation
./usr/share/nvidia/nvidia-application-profiles-384.69-rc

User avatar
mr_hero
Black ninja
Black ninja
Posts: 63
Joined: 10 Jul 2014, 01:33
Distribution: Porteus
Location: germany

nvidia-drivers not working with geforce gt 740

Post#36 by mr_hero » 09 Oct 2017, 18:32

Since I got the kdeinit-error with the newest driver, I tried compiling the 340-driver this time. The installer was not be able to compile the kernel-modules and aborted installation. Strange thing this happens to me with the 340-driver, while the newest driver was compiled well, before.

Full log:

Code: Select all

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Oct  9 19:49:06 2017
installer version: 340.24

PATH: /usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/opt/porteus-scripts:/usr/lib64/kf5:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/lib64/qt5/bin:/usr/lib64/kf5:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/lib64/qt5/bin

nvidia-installer command line:
    ./nvidia-installer

Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 340.24.
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Kernel source path: '/lib/modules/4.9.0-porteus/source'
-> Kernel output path: '/lib/modules/4.9.0-porteus/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Performing PREEMPT_RT check.
-> Cleaning kernel module build directory.
   executing: 'cd ./kernel; /usr/bin/make clean'...
-> Building NVIDIA kernel module:
   executing: 'cd ./kernel; /usr/bin/make module SYSSRC=/lib/modules/4.9.0-porteus/source SYSOUT=/lib/modules/4.9.0-porteus/build NV_BUILD_MODULE_INSTANCES='...
   NVIDIA: calling KBUILD...
   make[1]: Entering directory '/usr/src/linux-4.9'
   /usr/bin/make -C /lib/modules/4.9.0-porteus/build KBUILD_SRC=/usr/src/linux-4.9 \
   -f /usr/src/linux-4.9/Makefile modules
   make[2]: Entering directory '/usr/src/linux-4.9'
   test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
   echo >&2;							\
   echo >&2 "  ERROR: Kernel configuration is invalid.";		\
   echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
   echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
   echo >&2 ;							\
   /bin/false)
   mkdir -p /tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/.tmp_versions ; rm -f /tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/.tmp_versions/*
   /usr/bin/make -f /usr/src/linux-4.9/scripts/Makefile.build obj=/tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel
     cc -Wp,-MD,/tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/.nv.o.d  -nostdinc -isystem /usr/lib64/gcc/x86_64-slackware-linux/5.3.0/include -I/usr/src/linux-4.9/arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I/usr/src/linux-4.9/include -I./include -I/usr/src/linux-4.9/arch/x86/include/uapi -I/usr/src/linux-4.9/include/uapi -I./include/generated/uapi -include /usr/src/linux-4.9/include/linux/kconfig.h -I/usr/src/linux-4.9//tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel -I/tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX
   512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized --param=allow-store-data-races=0 -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -DCC_HAVE_ASM_GOTO -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG  -I/tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.24\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -DKBUILD_BASENAME='"nv"'  -DKBUILD_MODNAME='"nvidia"' -c -o /tmp/selfgz1411/NVIDIA-Linux-x86_64-
   340.24/kernel/nv.o /tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/nv.c
   In file included from /usr/src/linux-4.9/include/uapi/linux/stddef.h:1:0,
                    from /usr/src/linux-4.9/include/linux/stddef.h:4,
                    from /usr/src/linux-4.9/include/uapi/linux/posix_types.h:4,
                    from /usr/src/linux-4.9/include/uapi/linux/types.h:13,
                    from /usr/src/linux-4.9/include/linux/types.h:5,
                    from /usr/src/linux-4.9/include/uapi/linux/capability.h:16,
                    from /usr/src/linux-4.9/include/linux/capability.h:15,
                    from /usr/src/linux-4.9/include/linux/sched.h:15,
                    from /usr/src/linux-4.9/include/linux/utsname.h:5,
                    from /tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/nv-linux.h:44,
                    from /tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/nv.c:13:
   /usr/src/linux-4.9/include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
   /usr/src/linux-4.9/include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
              cnts, cnts | _QW_LOCKED) == cnts);
                                       ^
   /usr/src/linux-4.9/include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from /usr/src/linux-4.9/include/uapi/linux/stddef.h:1:0,
                    from /usr/src/linux-4.9/include/linux/stddef.h:4,
                    from /usr/src/linux-4.9/include/uapi/linux/posix_types.h:4,
                    from /usr/src/linux-4.9/include/uapi/linux/types.h:13,
                    from /usr/src/linux-4.9/include/linux/types.h:5,
                    from /usr/src/linux-4.9/include/uapi/linux/capability.h:16,
                    from /usr/src/linux-4.9/include/linux/capability.h:15,
                    from /usr/src/linux-4.9/include/linux/sched.h:15,
                    from /usr/src/linux-4.9/include/linux/utsname.h:5,
                    from /tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/nv-linux.h:44,
                    from /tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/nv.c:13:
   /usr/src/linux-4.9/include/linux/mmzone.h: In function ‘next_zones_zonelist’:
   /usr/src/linux-4.9/include/linux/mmzone.h:965:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                               ^
   /usr/src/linux-4.9/include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   In file included from /usr/src/linux-4.9/arch/x86/include/asm/preempt.h:5:0,
                    from /usr/src/linux-4.9/include/linux/preempt.h:59,
                    from /usr/src/linux-4.9/include/linux/spinlock.h:50,
                    from /usr/src/linux-4.9/include/linux/seqlock.h:35,
                    from /usr/src/linux-4.9/include/linux/time.h:5,
                    from /usr/src/linux-4.9/include/uapi/linux/timex.h:56,
                    from /usr/src/linux-4.9/include/linux/timex.h:56,
                    from /usr/src/linux-4.9/include/linux/sched.h:19,
                    from /usr/src/linux-4.9/include/linux/utsname.h:5,
                    from /tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/nv-linux.h:44,
                    from /tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/nv.c:13:
   /usr/src/linux-4.9/include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^
   /usr/src/linux-4.9/include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^
   /usr/src/linux-4.9/include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^
   /usr/src/linux-4.9/include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^
   /usr/src/linux-4.9/include/linux/percpu-refcount.h:175:3: note: in expansion of macro ‘this_cpu_add’
      this_cpu_add(*percpu_count, nr);
      ^
   /usr/src/linux-4.9/include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^
   /usr/src/linux-4.9/include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^
   /usr/src/linux-4.9/include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^
   /usr/src/linux-4.9/include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percpu_add_op’
    #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                      ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_size_call’
    #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                    ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu_add’
    #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                    ^
   /usr/src/linux-4.9/include/linux/percpu-refcount.h:274:3: note: in expansion of macro ‘this_cpu_sub’
      this_cpu_sub(*percpu_count, nr);
      ^
   /usr/src/linux-4.9/include/linux/percpu-rwsem.h: In function ‘percpu_up_read_preempt_enable’:
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘raw_cpu_add_1’
      case 1: stem##1(variable, __VA_ARGS__);break;  \
              ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^
   /usr/src/linux-4.9/include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_2(pcp, val)  percpu_add_op((pcp), val)
                                     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘raw_cpu_add_2’
      case 2: stem##2(variable, __VA_ARGS__);break;  \
              ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^
   /usr/src/linux-4.9/include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_4(pcp, val)  percpu_add_op((pcp), val)
                                     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘raw_cpu_add_4’
      case 4: stem##4(variable, __VA_ARGS__);break;  \
              ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^
   /usr/src/linux-4.9/include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             ((val) == 1 || (val) == -1)) ?  \
                                  ^
   /usr/src/linux-4.9/arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ‘percpu_add_op’
    #define raw_cpu_add_8(pcp, val)   percpu_add_op((pcp), val)
                                      ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘raw_cpu_add_8’
      case 8: stem##8(variable, __VA_ARGS__);break;  \
              ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:409:32: note: in expansion of macro ‘__pcpu_size_call’
    #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                   ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:445:2: note: in expansion of macro ‘raw_cpu_add’
     raw_cpu_add(pcp, val);      \
     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:483:34: note: in expansion of macro ‘__this_cpu_add’
    #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                     ^
   /usr/src/linux-4.9/include/linux/percpu-defs.h:485:30: note: in expansion of macro ‘__this_cpu_sub’
    #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                                 ^
   /usr/src/linux-4.9/include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ‘__this_cpu_dec’
      __this_cpu_dec(*sem->read_count);
      ^
   In file included from /usr/src/linux-4.9/include/uapi/linux/stddef.h:1:0,
                    from /usr/src/linux-4.9/include/linux/stddef.h:4,
                    from /usr/src/linux-4.9/include/uapi/linux/posix_types.h:4,
                    from /usr/src/linux-4.9/include/uapi/linux/types.h:13,
                    from /usr/src/linux-4.9/include/linux/types.h:5,
                    from /usr/src/linux-4.9/include/uapi/linux/capability.h:16,
                    from /usr/src/linux-4.9/include/linux/capability.h:15,
                    from /usr/src/linux-4.9/include/linux/sched.h:15,
                    from /usr/src/linux-4.9/include/linux/utsname.h:5,
                    from /tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/nv-linux.h:44,
                    from /tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/nv.c:13:
   /usr/src/linux-4.9/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
   /usr/src/linux-4.9/arch/x86/include/asm/uaccess.h:691:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   /usr/src/linux-4.9/include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   /usr/src/linux-4.9/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
   /usr/src/linux-4.9/arch/x86/include/asm/uaccess.h:711:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (likely(sz < 0 || sz >= n)) {
                             ^
   /usr/src/linux-4.9/include/linux/compiler.h:167:40: note: in definition of macro ‘likely’
    # define likely(x) __builtin_expect(!!(x), 1)
                                           ^
   /tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/nv.c: In function ‘nvidia_unlocked_ioctl’:
   /tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/nv.c:1827:29: error: ‘struct file’ has no member named ‘f_dentry’
        return nvidia_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
                                ^
   /usr/src/linux-4.9/scripts/Makefile.build:293: recipe for target '/tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/nv.o' failed
   make[3]: *** [/tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel/nv.o] Error 1
   /usr/src/linux-4.9/Makefile:1490: recipe for target '_module_/tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel' failed
   make[2]: *** [_module_/tmp/selfgz1411/NVIDIA-Linux-x86_64-340.24/kernel] Error 2
   make[2]: Leaving directory '/usr/src/linux-4.9'
   Makefile:150: recipe for target 'sub-make' failed
   make[1]: *** [sub-make] Error 2
   make[1]: Leaving directory '/usr/src/linux-4.9'
   NVIDIA: left KBUILD.
   nvidia.ko failed to build!
   Makefile:177: recipe for target 'nvidia.ko' failed
   make: *** [nvidia.ko] Error 1
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
:wall: I just want to use playonlinux with 3D-support. Two graphics-cards and three driver-versions later, I still don't get 3D on my screen. Should I open a new thread with this?

fulalas
DEV Team
DEV Team
Posts: 2050
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

nvidia-drivers not working with geforce gt 740

Post#37 by fulalas » 10 Oct 2017, 00:16

I know this is not 340.xx, but you can try anyway since it costs just one boot: nvidia-304.137-x86_64

beny
Full of knowledge
Full of knowledge
Posts: 2083
Joined: 02 Jan 2011, 11:33
Location: italy

nvidia-drivers not working with geforce gt 740

Post#38 by beny » 10 Oct 2017, 16:24

mr_hero if you have the devel.xzm and the crippled-source of the kernel that you use,you can have the nvidia driver on.put the run on the guest or root directory put the system in init3 su password and, sh NVIDIA-Linux-x86_64-384.59.run if you use the changes folder the driver are installed without make a module of...hint:try the neko's kernel module, the last kernel are all in with the crippled source included. i have the same card, so work well in porteus, slackware, arch, nemesis, all system that i have

User avatar
mr_hero
Black ninja
Black ninja
Posts: 63
Joined: 10 Jul 2014, 01:33
Distribution: Porteus
Location: germany

nvidia-drivers not working with geforce gt 740

Post#39 by mr_hero » 11 Oct 2017, 08:37

I don't want to mess-up my system. So I think...especially nvidia-drivers are best put into a module. Regarding to kernel: Which one to choose? I found a thread here and a sub-thread here. They talk about self-building porteus-kernels. There are many many versions to download. All of them with a different crippled-sources-package in addition. Which pair should I try?

BTW: My old Porteus 3.0 also complains about missing compat-libs now. I don't know why. It did work like a charm, before. Is it possible that modules can get broken? I'm using the old compat32-libraries-3.0-x86_64-1sl.xzm (from porteus 3.0) in both versions (porteus 3.0 and 3.2.2). The newer package 0050-multilib-current-x86_64.xzm (430 MB !) didn't work at all in porteus 3.2.2. So I just softlinked the compat32-package from porteus 3.0 to porteus 3.2.2-modules-folder.

Edit:

I tried the mentioned nvidia-304-module. I get the same message as with the newest driver (Kdeinit-error on startup).

donald
Full of knowledge
Full of knowledge
Posts: 2061
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

nvidia-drivers not working with geforce gt 740

Post#40 by donald » 11 Oct 2017, 16:16

mr_hero wrote:
11 Oct 2017, 08:37
I tried the mentioned nvidia-304-module. I get the same message as with the newest driver (Kdeinit-error on startup).
....but it's definitely not the driver's fault.
Image
:unknown:

Again, according to nvidia, this driver should support a gtx 560 ti - but who knows.

What i would do is:
Make a fresh install of 3.2.2-KDE onto an spare usb-flash + the 304 driver
placed into the modules folder.
Make sure that the system uses only this USB flash and does not use any settings
of a (possible) hard disk installation.
(use the from=UUID: your string changes=UUID:same string/porteus cheatcode)
...lets see what gives...

Post Reply