Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 734734 Details for
Bug 809347
dev-util/bcc has a run-time dependency on the sources of current running kernel (fatal error: './include/linux/kconfig.h' file not found)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bcc patch to chech the existence of /lib/modules/$(uname -r)/build/include/linux/kconfig.h
checking-for-kconfig.patch (text/plain), 908 bytes, created by
WGH
on 2021-08-21 08:28:37 UTC
(
hide
)
Description:
bcc patch to chech the existence of /lib/modules/$(uname -r)/build/include/linux/kconfig.h
Filename:
MIME Type:
Creator:
WGH
Created:
2021-08-21 08:28:37 UTC
Size:
908 bytes
patch
obsolete
>diff --git a/src/cc/frontends/clang/loader.cc b/src/cc/frontends/clang/loader.cc >index 2405697..562d1fb 100644 >--- a/src/cc/frontends/clang/loader.cc >+++ b/src/cc/frontends/clang/loader.cc >@@ -115,6 +115,16 @@ bool is_dir(const string& path) > return S_ISDIR(buf.st_mode); > } > >+bool is_file(const string& path) >+{ >+ struct stat buf; >+ >+ if (::stat (path.c_str (), &buf) < 0) >+ return false; >+ >+ return S_ISREG(buf.st_mode); >+} >+ > std::pair<bool, string> get_kernel_path_info(const string kdir) > { > if (is_dir(kdir + "/build") && is_dir(kdir + "/source")) >@@ -170,7 +180,7 @@ int ClangLoader::parse(unique_ptr<llvm::Module> *mod, TableStorage &ts, > } > > // If all attempts to obtain kheaders fail, check for kheaders.tar.xz in sysfs >- if (!is_dir(kpath)) { >+ if (!is_file(kpath + "/include/linux/kconfig.h")) { > int ret = get_proc_kheaders(tmpdir); > if (!ret) { > kpath = tmpdir;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 809347
: 734734