Building the debugging labs image on Ubuntu 22.04 fails under certain conditions. Superficially this looks like a Buildroot bug.
Steps to reproduce:
- Use Ubuntu 22.04. @Tropicao said the build works on Arch. Other distros/releases might work or not.
- Ensure the
llvm package is not installed
- Build the debugging training image according to the labs instructions (currently the debugging-training/2024.02 branch is at commit cdb4b6e)
bpftool fails building. This line is logged:
/bin/sh: 1: llvm-config: not found
Installing llvm on the host and rebuilding the build succeeds:
sudo apt install llvm
make bpftool-dirclean bpftool
Maybe just a missing dependency of the bpftool package on host-llvm?