Skip to content

Commit

Permalink
loader: suggest to install the right kernel devel package
Browse files Browse the repository at this point in the history
Unfortunately, some package dependency system do not allow to make
sure that the kernel development package installed is the same version
as the running kernel. When this happen, the loader, unable to find
the kernel header, will suggest to rebuild the kernel with
CONFIG_IKHEADERS. For most users, this is probably not an option, but
installing the kernel development package corresponding to the running
kernel version is.
  • Loading branch information
jeromemarchand committed Jun 10, 2020
1 parent eddf9dd commit 7830947
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cc/frontends/clang/loader.cc
Expand Up @@ -151,7 +151,8 @@ int ClangLoader::parse(unique_ptr<llvm::Module> *mod, TableStorage &ts,
kpath = tmpdir;
} else {
std::cout << "Unable to find kernel headers. ";
std::cout << "Try rebuilding kernel with CONFIG_IKHEADERS=m (module)\n";
std::cout << "Try rebuilding kernel with CONFIG_IKHEADERS=m (module) ";
std::cout << "or installing the kernel development package for your running kernel version.\n";
}
}

Expand Down

0 comments on commit 7830947

Please sign in to comment.