Last time I had that kind of error happening to me, I had sources for my kernel more recent than the kernel compiled. After rebuilding the kernel (and maybe upgrading gcc, not sure about that), it properly worked.