failure to compile eBPF on RedHat CoreOS 4.9 from sysdig 0.28.0 container

Open
#1,884 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, linux

Research direction

Start with the bpf/Makefile and the kernel build invocation in the log, then compare the dependency and toolchain setup in sysdig 0.28.0 and 0.29.3 with the successful 0.27.1 image on RedHat CoreOS 4.9. Reproduce the compile failure and verify that the eBPF probe builds without the libelf dependency error.

Written by the indexing model from the issue text.

Description

feature-request pinned

We are unable to compile sysdig eBPF probe on RedHat CoreOS 4.9 from Sysdig 0.28.0 image.
Seems like there is toolchain package missing: libelf-devel.
Have also tried the following images:
sysdig 0.29.3 - same error
sysdig 0.27.1 - successful

Logs:

  • Trying to compile the eBPF probe (scap_rhcos_4.18.0-305.30.1.el8_4.x86_64_1.o)
    make: Entering directory '/opt/sysdig/src/scap-2160111cd088aea9ae2235d3385ecb0b1ab6623c/bpf'
    make -C /lib/modules/4.18.0-305.30.1.el8_4.x86_64/build M=$PWD
    make[1]: Entering directory '/host/usr/src/kernels/4.18.0-305.30.1.el8_4.x86_64'
    make[1]: Leaving directory '/host/usr/src/kernels/4.18.0-305.30.1.el8_4.x86_64'
    Makefile:984: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop.
    make: Leaving directory '/opt/sysdig/src/scap-2160111cd088aea9ae2235d3385ecb0b1ab6623c/bpf'
    make: *** [Makefile:20: all] Error 2
Dominant language
C++
Stars
8.3k
Forks
753
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from draios/sysdig

All issues in draios/sysdig

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.