Skip to content

Instantly share code, notes, and snippets.

@mikaelhg
mikaelhg / NVIDIA_DKMS_CLANG.md
Created August 19, 2018 23:27
clang, dkms and ERROR: could not insert 'nvidia': Exec format error

When DKMS uses clang to compile the nvidia kernel driver, you're boned.

sudo modprobe nvidia
modprobe: ERROR: could not insert 'nvidia': Exec format error

Unfortunately, dkms doesn't take CC and CXX settings from the environment.