bcc icon indicating copy to clipboard operation
bcc copied to clipboard

Updating Debian source installation build tool versions

Open VishnuVelayuthan opened this issue 1 year ago • 2 comments

Was having a problem using clang version 16 while building bcc from source in a fresh debian bookworm container. Found the solution to be downgrading my clang version to 13. Updated the Install.README to reflect those changes to the installation steps. Resolves #5015

VishnuVelayuthan avatar Jun 25 '24 17:06 VishnuVelayuthan

Maybe cmake/clang_libs.cmake needs some tweak to make clang16 work. Unfortunately, I am not able to reproduce the issue in my environment with clang cmake

cmake .. -DCMAKE_BUILD_TYPE=Release -G Ninja \
    -DLLVM_ENABLE_PROJECTS="clang;llvm;compiler-rt;lld" \
    -DLLVM_TARGETS_TO_BUILD="BPF;X86" \
    -DLLVM_ENABLE_ASSERTIONS=ON \
    -DLLVM_ENABLE_ZLIB=ON \
    -DCMAKE_INSTALL_PREFIX=$PWD/install

I think your clang16 build definitely has a different cmake command line than mine.

yonghong-song avatar Jul 05 '24 04:07 yonghong-song

After trying your solution, I just sudo apt install libpolly-16-dev instead, and it works now.

c2main avatar Oct 12 '24 13:10 c2main