Skip to content

debugging labs fail building bpftool with BR2_CCACHE=y is in the shell environment (+ a possible leak of system llvm?) #265

@lucaceresoli

Description

@lucaceresoli

Building the debugging labs image on Ubuntu 22.04 fails under certain conditions. Superficially this looks like a Buildroot bug.

Steps to reproduce:

  1. Use Ubuntu 22.04. @Tropicao said the build works on Arch. Other distros/releases might work or not.
  2. Ensure the llvm package is not installed
  3. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    debuggingDebugging/Profiling/Tracing training

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions