Comments (3)
Switching the bcc git tag to 0.14:
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,7 +22,7 @@ include(FetchContent)
FetchContent_Declare(
bcc
GIT_REPOSITORY https://github.com/iovisor/bcc.git
- GIT_TAG v0.10.0
+ GIT_TAG v0.14.0
)
FetchContent_GetProperties(bcc)
allows the build to finish, but core dumps:
(gdb)
#0 __GI___libc_free (mem=0x560f00000000) at malloc.c:3102
#1 0x0000560f3cd6ec1e in ebpf::StatusTuple::~StatusTuple (this=0x7fffe8905e50, __in_chrg=<optimized out>)
at /usr/include/bcc/bcc_exception.h:24
#2 0x0000560f3cd6b61f in EbpfTracerEngine::EbpfTracerEngine (this=0x560f40300110, storageEngine=..., targetEvents=...)
at /home/norbert/Development/procmon/ProcMon-for-Linux/src/tracer/ebpf/ebpf_tracer_engine.cpp:50
#3 0x0000560f3cd3e004 in ProcmonConfiguration::ProcmonConfiguration (this=0x560f402fba90, argc=1, argv=0x7fffe8906d58)
at /home/norbert/Development/procmon/ProcMon-for-Linux/src/configuration/procmon_configuration.cpp:180
#4 0x0000560f3cd3b905 in __gnu_cxx::new_allocator<ProcmonConfiguration>::construct<ProcmonConfiguration, int&, char**&> (
this=0x7fffe89067ef, __p=0x560f402fba90) at /usr/include/c++/9/ext/new_allocator.h:147
#5 0x0000560f3cd3b7da in std::allocator_traits<std::allocator<ProcmonConfiguration> >::construct<ProcmonConfiguration, int&, char**&>
(__a=..., __p=0x560f402fba90) at /usr/include/c++/9/bits/alloc_traits.h:484
#6 0x0000560f3cd3b612 in std::_Sp_counted_ptr_inplace<ProcmonConfiguration, std::allocator<ProcmonConfiguration>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<int&, char**&> (this=0x560f402fba80, __a=...) at /usr/include/c++/9/bits/shared_ptr_base.h:548
#7 0x0000560f3cd3b303 in std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<ProcmonConfiguration, std::allocator<ProcmonConfiguration>, int&, char**&> (this=0x7fffe8906b88, __p=@0x7fffe8906b80: 0x0, __a=...) at /usr/include/c++/9/bits/shared_ptr_base.h:679
#8 0x0000560f3cd3b01e in std::__shared_ptr<ProcmonConfiguration, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<ProcmonConfiguration>, int&, char**&> (this=0x7fffe8906b80, __tag=...) at /usr/include/c++/9/bits/shared_ptr_base.h:1344
#9 0x0000560f3cd3aaef in std::shared_ptr<ProcmonConfiguration>::shared_ptr<std::allocator<ProcmonConfiguration>, int&, char**&> (
this=0x7fffe8906b80, __tag=...) at /usr/include/c++/9/bits/shared_ptr.h:359
#10 0x0000560f3cd3a76f in std::allocate_shared<ProcmonConfiguration, std::allocator<ProcmonConfiguration>, int&, char**&> (__a=...)
at /usr/include/c++/9/bits/shared_ptr.h:702
#11 0x0000560f3cd3a091 in std::make_shared<ProcmonConfiguration, int&, char**&> () at /usr/include/c++/9/bits/shared_ptr.h:718
#12 0x0000560f3cd388ff in main (argc=1, argv=0x7fffe8906d58) at /home/norbert/Development/procmon/ProcMon-for-Linux/src/procmon.cpp:38
from procmon-for-linux.
The build breaks completely, possibly due to some bcc incompatibilities.
First step
mkdir build cd build cmake .. make
ended with errors
ProcMon-for-Linux/src/configuration/../tracer/ebpf/ebpf_tracer_engine.h:6:10: fatal error: bcc/BPF.h: No such file or directory 6 | #include <bcc/BPF.h> | ^~~~~~~~~~~
Then I install
libbpfcc-dev
which provides this file. Now compilation fails at the loading stae:[ 96%] Linking CXX executable procmon /usr/bin/ld: /usr/bin/ld: DWARF error: could not find variable specification at offset 999e /usr/bin/ld: DWARF error: could not find variable specification at offset 9a1a .... many of these DWARF errors ... src/tracer/libtracer-static.a(ebpf_tracer_engine.cpp.o): in function `ebpf::BPF::BPF(unsigned int, ebpf::TableStorage*, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)': /usr/include/bcc/BPF.h:56: undefined reference to `ebpf::BPFModule::BPFModule(unsigned int, ebpf::TableStorage*, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, char const*)' collect2: error: ld returned 1 exit status
Furthermore, the provided .deb file does not work due to missing and unavailable libraries (panel and ncurses.so.5).
I have the same problem
from procmon-for-linux.
Duplicate of #70
from procmon-for-linux.
Related Issues (20)
- Provide a GUI.
- Binary for RHEL based systems HOT 3
- nostr? HOT 2
- Where can I see the file path HOT 4
- Can't see anything on opening HOT 2
- Cmake creating empty folders HOT 2
- Please document which kernel options are needed for procmon to work HOT 6
- Optimize performance and graphics output with latest notcurses HOT 2
- Doesn't seem to work on ubuntu 21.04 HOT 1
- Issue to build/run on Debian 11 due clang library HOT 1
- Segmentation fault after loading procmon Debian 11 HOT 3
- [Makefile:163: all] Error 2 - Debian 10 with cmake 3.14.0 HOT 4
- Can not build on Fedora 35 HOT 4
- ProcMon-for-Linux doesn't work in WSL2 HOT 3
- Build fails with gcc 12
- WSL2 Ubuntu 20.04: Exception is thrown HOT 4
- Procmon for Android HOT 2
- make error HOT 3
- compress backing files
- Build failed whit llvm14 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from procmon-for-linux.