I'm pretty new to kernel hacking. However, I have built my own kernel before (3.16) and it works.
Now I tried upgrading to the latest kernel (3.17-rc7). I configure the kernel using the config file that has worked with my previous kernel (make olddefconfig) and build it with
make-kpkg -j4 --initrd kernel-image kernel-headers --append-to-version=mykern2
When I install the .deb package that comes out, I get some error messages related to nvidia drivers:
Error! Bad return status for module build on kernel: 3.17.0-rc7mykern2 (x86_64) Consult /var/lib/dkms/nvidia-331/331.38/build/make.log for more information.
The contents of this file are here: http://pastebin.com/HQHLh9LY . It says "nvidia.ko failed to build!" which seems pretty serious. Also, the error seems to come from including acpi/acpi.h somewhere in the code. I don't know where, though.
When I try to boot to my new kernel, I don't get past the login screen in Ubuntu. I give my password and the desktop just freezes. The mouse and keyboard still work but nothing appears on the desktop. Also the login screen seems to be in wrong resolution for my monitor.
How can I find out what exactly is the problem and how to fix it?