iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.36k stars 3.86k forks source link

Updating Debian source installation build tool versions #5041

Open VishnuVelayuthan opened 3 months ago

VishnuVelayuthan commented 3 months ago

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

yonghong-song commented 3 months ago

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.