lf-edge / eve

EVE is Edge Virtualization Engine
https://www.lfedge.org/projects/eve/
Apache License 2.0
468 stars 158 forks source link

Makefile: add bpftrace for riscv64 #4044

Closed christoph-zededa closed 3 days ago

christoph-zededa commented 3 days ago

debug container is built for riscv64 and depends on bpftrace

This is needed for https://github.com/lf-edge/eve/pull/4018

I hope it will also push the container.

rene commented 3 days ago

@christoph-zededa , that's correct, it should publish the package.

christoph-zededa commented 3 days ago

it seems lots of packages are missing for riscv64:

 #10 [build  2/13] RUN eve-alpine-deploy.sh
#0 0.108 ERROR: unable to select packages:
#10 0.109   bcc-dev (no such package):
#10 0.115     required by: world[bcc-dev]
#10 0.115   cereal (no such package):
#10 0.115     required by: world[cereal]
#10 0.115   clang-dev (no such package):
#10 0.115     required by: world[clang-dev]
#10 0.115   clang-static (no such package):
#10 0.115     required by: world[clang-static]
#10 0.115   gtest-dev (no such package):
#10 0.115     required by: world[gtest-dev]
#10 0.115   libbpf-dev (no such package):
#10 0.115     required by: world[libbpf-dev]
#10 0.115   llvm13-dev (no such package):
#10 0.115     required by: world[llvm13-dev]
#10 0.115   llvm13-libs (no such package):
#10 0.115     required by: world[llvm13-libs]
#10 0.115   llvm13-static (no such package):
#10 0.115     required by: world[llvm13-static]
#10 0.115   pahole (no such package):
#10 0.115     required by: world[pahole]
Error: error building "lfedge/eve-bpftrace:f8effaa3169f9e7f1ee71b63c904da62ce0e0212": error building for arch riscv64: failed to solve: process "/bin/sh -c eve-alpine-deploy.sh" did not complete successfully: exit code: 10
rene commented 3 days ago

it seems lots of packages are missing for riscv64:

 #10 [build  2/13] RUN eve-alpine-deploy.sh
#0 0.108 ERROR: unable to select packages:
#10 0.109   bcc-dev (no such package):
#10 0.115     required by: world[bcc-dev]
#10 0.115   cereal (no such package):
#10 0.115     required by: world[cereal]
#10 0.115   clang-dev (no such package):
#10 0.115     required by: world[clang-dev]
#10 0.115   clang-static (no such package):
#10 0.115     required by: world[clang-static]
#10 0.115   gtest-dev (no such package):
#10 0.115     required by: world[gtest-dev]
#10 0.115   libbpf-dev (no such package):
#10 0.115     required by: world[libbpf-dev]
#10 0.115   llvm13-dev (no such package):
#10 0.115     required by: world[llvm13-dev]
#10 0.115   llvm13-libs (no such package):
#10 0.115     required by: world[llvm13-libs]
#10 0.115   llvm13-static (no such package):
#10 0.115     required by: world[llvm13-static]
#10 0.115   pahole (no such package):
#10 0.115     required by: world[pahole]
Error: error building "lfedge/eve-bpftrace:f8effaa3169f9e7f1ee71b63c904da62ce0e0212": error building for arch riscv64: failed to solve: process "/bin/sh -c eve-alpine-deploy.sh" did not complete successfully: exit code: 10

Yeah, most probably they are... one possible workaround is remove debug container (temporally) from riscv64... but probably these packages might be available on Alpine 3.20... I think is time to hurry up the upgrade...

christoph-zededa commented 3 days ago

I will de-activate bpftrace for riscv64, so this PR is not needed.