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

"indirect call in function, which are not supported by eBPF" (build failing on Debian Bookworm 12.5.0) #110

Open
blak3mill3r opened this issue Nov 1, 2024 · 1 comment

Comments

@blak3mill3r
Copy link

I installed libbpf-dev (without which the build failed because of not finding bpf/bpf_helpers.h)

./configure BPFC=bpf-gcc BPFLD=bpf-ld
make BPFC=bpf-gcc BPFLD=bpf-ld

It successfully compiles quite a bit of c, but eventually runs into this eBPF limitation about indirect calls:

CC: libproc/elfish_32.c
CC: libproc/Psymtab.c
CC: libproc/rtld_db.c
CC: libproc/rtld_offsets.c
CC: libproc/wrap.c
CC: libproc/isadep_dispatch.c
CC: libproc/i386/isadep.c
BUILD-AR: libproc.a
CC: test/triggers/libproc-dlmlib.c
BUILD-AR: libproc-dlmlib.a
CC: test/triggers/libproc-lookup-victim-lib.c
BUILD-AR: libproc-lookup-victim-lib.a
AR: libcommon.a
AR: libport.a
AR: libproc.a
SHLINK: libdtrace.so
SHLINK: libproc-dlmlib.so
SHLINK: libproc-lookup-victim-lib.so
bpf/get_bvar.c: In function ‘dt_get_bvar’:
bpf/get_bvar.c:212:1: error: indirect call in function, which are not supported by eBPF
  212 | }
      | ^
bpf/get_bvar.c:212:1: error: indirect call in function, which are not supported by eBPF
BPF-CC: bpf/agg_lqbin.c
BPF-CC: bpf/agg_qbin.c
BPF-CC: bpf/basename.S
BPF-CC: bpf/cleanpath.S
BPF-CC: bpf/dirname.S
BPF-CC: bpf/get_agg.c
bpf/get_agg.c: In function ‘dt_no_agg’:
bpf/get_agg.c:33:1: error: indirect call in function, which are not supported by eBPF
   33 | }
      | ^
make: *** [Makerules:23: /home/blake/try/dtrace-utils/build/bpf--get_agg.o] Error 1

I tried this with the latest commit in devel and also with the tag 2.0.1.1 with the same result.

Any guidance would be appreciated.

@blak3mill3r blak3mill3r changed the title Couldn't get it to build on Debian Bookworm 12.5.0 "indirect call in function, which are not supported by eBPF" (build failing on Debian Bookworm 12.5.0) Nov 1, 2024
@thesamesam
Copy link

I suspect that gcc-bpf (maybe binutils-bpf too?) is too old in Debian Bookworm. It looks like it's currently at 12.2.0-14+4 but Trixie is at 14.2.0-1+1.

Will see what others say though. It might be we can get a backport done for Debian, I am not sure.

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

2 participants