Build Issues¶
This page collects common build-related problems from the learning repo.
Kernel Module Build Fails¶
Common checks:
Typical causes:
- Kernel headers are not installed.
KDIRpoints to a different kernel version.ARCHorCROSS_COMPILEis missing during cross compilation.- The source tree is copied without required generated header files.
Related pages:
Module.symvers Missing¶
For many simple out-of-tree modules, this may not be fatal. It becomes more important when modules depend on exported symbols from other modules.
Check whether the kernel header package provides the expected build tree and generated files.
Cross Compilation Uses the Wrong Toolchain¶
Check:
Make sure the toolchain architecture matches the target kernel architecture.