I'm not sure how this happens, exactly, but your build log shows dkms trying to build with 32-bit options (-m32 -march=i686) but using -mcmodel=kernel, which gives the complaint you saw.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1366925 Title: nvidia-331 331.38-0ubuntu7.1: nvidia-331 kernel module failed to build for kenel 3.16.2 [error: code model ‘kernel’ not supported in the 32 bit mode] To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-331/+bug/1366925/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
