iovisor / iovisor/bcc

Build fail from source

Open
#4,982 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
22.7k
Forks
4.1k
Avg merge
10d 4h
Merged PRs (30d)
3

Description

My server is 2CPU/2Core, and Linux version is: Ubuntu Jammy (22.04)
I install dependencies follow link https://github.com/iovisor/bcc/blob/master/INSTALL.md#ubuntu---binary。
```shell
sudo apt install -y zip bison build-essential cmake flex git libedit-dev \
libllvm14 llvm-14-dev libclang-14-dev python3 zlib1g-dev libelf-dev libfl-dev python3-setuptools \
liblzma-dev libdebuginfod-dev arping netperf iperf
```
Git clone bcc repo and compile BCC:
```shell
git clone https://github.com/iovisor/bcc.git
mkdir bcc/build; cd bcc/build
cmake ..
make
```
when I execute make, my server CPU occupation rate has soared。Build stopped and the server does not respond. The phote cut is below:

![image](https://github.com/iovisor/bcc/assets/79321018/bbd7ed1e-1d89-4f8a-949b-5bb130bb1f52)

What can I do to solve this problem and build bcc from source?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with INSTALL.md's Ubuntu instructions and the reported cmake/make build steps, then inspect the make output and system behavior during compilation. Done means identifying a reproducible cause or required build setting and confirming that BCC builds successfully without making the server unresponsive.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cmake, linux, ubuntu
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.