Wich is the exact error you have?. It could be that you don't have the kernel source or kernel headers, try installing them.
I don't remember well but I think it is some error with some kernels, and you must change a line in some file. Look for it on other posts or search in google. Sorry I can't help you more