View Issue Details

IDProjectCategoryView StatusLast Update
0003764Kali LinuxGeneral Bugpublic2016-12-08 14:29
Reportermame82 Assigned Torhertzog  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version2016.2 
Summary0003764: Nvidia Driver 375.20 couldn't be compiled on 4.8.0-kali1-amd64
Description

Attempting to compile the latest 64 Bit Nvidia Driver fails with an error "kernel does not support PIC mode".

This seems to be an issue on current gcc compiler (--enable-default-pie flag).

The issue has been solved by changing the symlink target of /usr/bin/gcc from /usr/bin/gcc-6 back to /usr/bin/gcc-5 before running the driver installer from NVIDIA-Linux-x86_64-375.20.run.

The non-free nvidia driver was needed, because OpenCL support for hashcat-3.10 wasn't working with the driver shipped with kali (nvidia-kernel-dkms). Installing nvidia-opencl-icd didn't fix this. The non-free Nvidia Driver allows OpenCL usage after successful compilation.

Steps To Reproduce

Download and run NVIDIA-Linux-x86_64-375.20.run, compilation error could be seen in /var/lib/dkms/nvidia/375.20/build/make.log if installation fails (install with DKMS).

Additional Information

Same solution has been reported to Nvidia forum
https://devtalk.nvidia.com/default/topic/977645/linux/support-kernel-4-8-/post/5034308/#5034308

Activities

rhertzog

rhertzog

2016-12-08 14:29

administrator   ~0006151

We have uploaded linux 4.8.11 which should fix this. It's currently building and should be available tomorrow in kali-rolling.

The kernel build now adds the -fno-PIE flag to disable the implicit -fPIE added by gcc-6.

Issue History

Date Modified Username Field Change
2016-12-08 13:40 mame82 New Issue
2016-12-08 14:29 rhertzog Assigned To => rhertzog
2016-12-08 14:29 rhertzog Status new => resolved
2016-12-08 14:29 rhertzog Resolution open => fixed
2016-12-08 14:29 rhertzog Note Added: 0006151