Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
egachi opened this issue Sep 2, 2021 · 4 comments
Closed

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

egachi opened this issue Sep 2, 2021 · 4 comments

Comments

@egachi
Copy link

egachi commented Sep 2, 2021

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?

@jahabibi
Copy link
Collaborator

jahabibi commented Sep 2, 2021

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.

@jahabibi
Copy link
Collaborator

jahabibi commented Sep 3, 2021

Related issue #70.

@egachi
Copy link
Author

egachi commented Sep 13, 2021

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

@MarioHewardt
Copy link
Collaborator

Duplicate of #70

@MarioHewardt MarioHewardt marked this as a duplicate of #70 May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants