After much fumbling about, I finally got it to compile via the following:
Code: Select all
$ export KCPPFLAGS="-fno-pie -Wno-pointer-sign -fno-stack-protector -mfentry"
$ export CPPFLAGS="$KCPPFLAGS"
$ sh NVIDIA-Linux-x86_64-367.57.run
NOTE 2: Without the "-mfentry" option, the module seems to compile, but trying to actually use it results in a fatal error regarding "mcount".
Hopefully this post will save someone the time/frustration that it took me to get it sorted.