Sysinternals/ProcMon-for-Linux

[Makefile:163: all] Error 2 - Debian 10 with cmake 3.14.0

egachi opened this issue · 4 comments

Hello, I am compiling with cmake 3.14.0 and Debian 10 into a Docker container but I am getting the following error at the end:

In file included from /root/Procmon-for-Linux/build/_deps/bcc-src/src/cc/api/BPF.h:25,
from /root/Procmon-for-Linux/src/configuration/../tracer/ebpf/ebpf_tracer_engine.h:6,
from /root/Procmon-for-Linux/src/configuration/procmon_configuration.h:21,
from /root/Procmon-for-Linux/src/configuration/procmon_configuration.cpp:4:
/root/Procmon-for-Linux/build/_deps/bcc-src/src/cc/api/BPFTable.h: In constructor 'ebpf::BPFQueueStackTable::BPFQueueStackTable(const ebpf::TableDesc&)':
/root/Procmon-for-Linux/build/_deps/bcc-src/src/cc/api/BPFTable.h:169:22: error: 'BPF_MAP_TYPE_QUEUE' was not declared in this scope
if (desc.type != BPF_MAP_TYPE_QUEUE &&
^~~~~~~~~~~~~~~~~~
/root/Procmon-for-Linux/build/_deps/bcc-src/src/cc/api/BPFTable.h:169:22: note: suggested alternative: 'BPF_MAP_TYPE_CPUMAP'
if (desc.type != BPF_MAP_TYPE_QUEUE &&
^~~~~~~~~~~~~~~~~~
BPF_MAP_TYPE_CPUMAP
/root/Procmon-for-Linux/build/_deps/bcc-src/src/cc/api/BPFTable.h:170:22: error: 'BPF_MAP_TYPE_STACK' was not declared in this scope
desc.type != BPF_MAP_TYPE_STACK)
^~~~~~~~~~~~~~~~~~
/root/Procmon-for-Linux/build/_deps/bcc-src/src/cc/api/BPFTable.h:170:22: note: suggested alternative: 'BPF_MAP_TYPE_HASH'
desc.type != BPF_MAP_TYPE_STACK)
^~~~~~~~~~~~~~~~~~
BPF_MAP_TYPE_HASH
/root/Procmon-for-Linux/build/_deps/bcc-src/src/cc/api/BPFTable.h: In constructor 'ebpf::BPFSkStorageTable::BPFSkStorageTable(const ebpf::TableDesc&)':
/root/Procmon-for-Linux/build/_deps/bcc-src/src/cc/api/BPFTable.h:509:22: error: 'BPF_MAP_TYPE_SK_STORAGE' was not declared in this scope
if (desc.type != BPF_MAP_TYPE_SK_STORAGE)
^~~~~~~~~~~~~~~~~~~~~~~
/root/Procmon-for-Linux/build/_deps/bcc-src/src/cc/api/BPFTable.h:509:22: note: suggested alternative: 'BPF_MAP_TYPE_CGROUP_STORAGE'
if (desc.type != BPF_MAP_TYPE_SK_STORAGE)
^~~~~~~~~~~~~~~~~~~~~~~
BPF_MAP_TYPE_CGROUP_STORAGE
/root/Procmon-for-Linux/build/_deps/bcc-src/src/cc/api/BPFTable.h: In constructor 'ebpf::BPFPercpuCgStorageTable::BPFPercpuCgStorageTable(const ebpf::TableDesc&)':
/root/Procmon-for-Linux/build/_deps/bcc-src/src/cc/api/BPFTable.h:564:22: error: 'BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE' was not declared in this scope
if (desc.type != BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/Procmon-for-Linux/build/_deps/bcc-src/src/cc/api/BPFTable.h:564:22: note: suggested alternative: 'BPF_MAP_TYPE_CGROUP_STORAGE'
if (desc.type != BPF_MAP_TYPE_PERCPU_CGROUP_STORAGE)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BPF_MAP_TYPE_CGROUP_STORAGE
make[2]: *** [src/configuration/CMakeFiles/configuration-static.dir/build.make:63: src/configuration/CMakeFiles/configuration-static.dir/procmon_configuration.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2894: src/configuration/CMakeFiles/configuration-static.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

Is there a specific cmake version that is compiling fine?

Hey @edisga this appears to be a build issue with our dependency BCC on Debian and not with Procmon itself. With that even if it did compile I predict that you would run into the same known issue as #79 that we are actively working on addressing.

Related issue #70.

Thanks @jahabibi for the reply. I will be waiting for this implementation. This will open a big door in App Service Linux containers.

Duplicate of #70