Re: Update to Sid, and cannot compile Nvidia module; PIC mode?
Will wrote on 10/28/16 17:21:
> Greetings,
>
> I usually have to run the NVIDIA installer after a kernel update, but
> something has changed that has broken the process to build the
> proprietary Nvidia kernel module. I've searched around a bit on the
> Intarwebs before coming to the list, so here goes.
>
>
> Installer: NVIDIA-Linux-x86_64-367.44.run
>
> If I simply run the installer, if fails with this message:
>
> ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 367.44 -k
> 4.7.0-1-amd64`:
> Kernel preparation unnecessary for this kernel. Skipping...
>
> Building module:
> cleaning build area...
> 'make' -j8 NV_EXCLUDE_BUILD_MODULES=''
> KERNEL_UNAME=4.7.0-1-amd64 modules....(bad exit status: 2)
> Error! Bad return status for module build on kernel:
> 4.7.0-1-amd64 (x86_64)
> Consult /var/lib/dkms/nvidia/367.44/build/make.log for more
> information.
>
> And, the output of /var/lib/dkms/nvidia/367.44/build/make.log:
>
> CC [M] /var/lib/dkms/nvidia/367.44/build/nvidia/nv-instance.o
> /var/lib/dkms/nvidia/367.44/build/nvidia/nv-frontend.c:1:0: error: code
> model kernel does not support PIC mode
This is due to the last hardening changes in gcc-6 after 6.2.0-7 see bug reports
#841368, #841500, and #841533.
There's also given workarounds. See message #51 in #841368 and #52 in #841500.
Regards,
jvp.
Reply to: