Blame SOURCES/bcc-0.14.0-loader-suggest-to-install-the-right-kernel-devel-pac.patch

009933
From f7e7347dc1b4873f70a26392c997228999d346a8 Mon Sep 17 00:00:00 2001
009933
From: Jerome Marchand <jmarchan@redhat.com>
009933
Date: Wed, 10 Jun 2020 11:41:59 +0200
009933
Subject: [PATCH 3/4] loader: suggest to install the right kernel devel package
009933
009933
Unfortunately, some package dependency system do not allow to make
009933
sure that the kernel development package installed is the same version
009933
as the running kernel. When this happen, the loader, unable to find
009933
the kernel header, will suggest to rebuild the kernel with
009933
CONFIG_IKHEADERS. For most users, this is probably not an option, but
009933
installing the kernel development package corresponding to the running
009933
kernel version is.
009933
---
009933
 src/cc/frontends/clang/loader.cc | 3 ++-
009933
 1 file changed, 2 insertions(+), 1 deletion(-)
009933
009933
diff --git a/src/cc/frontends/clang/loader.cc b/src/cc/frontends/clang/loader.cc
009933
index 9d768d30..79558dd3 100644
009933
--- a/src/cc/frontends/clang/loader.cc
009933
+++ b/src/cc/frontends/clang/loader.cc
009933
@@ -151,7 +151,8 @@ int ClangLoader::parse(unique_ptr<llvm::Module> *mod, TableStorage &ts,
009933
       kpath = tmpdir;
009933
     } else {
009933
       std::cout << "Unable to find kernel headers. ";
009933
-      std::cout << "Try rebuilding kernel with CONFIG_IKHEADERS=m (module)\n";
009933
+      std::cout << "Try rebuilding kernel with CONFIG_IKHEADERS=m (module) ";
009933
+      std::cout <<  "or installing the kernel development package for your running kernel version.\n";
009933
     }
009933
   }
009933
 
009933
-- 
009933
2.25.4
009933