Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fail from source #4982

Open
Kitebin-h opened this issue May 1, 2024 · 4 comments
Open

Build fail from source #4982

Kitebin-h opened this issue May 1, 2024 · 4 comments

Comments

@Kitebin-h
Copy link

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。

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:

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

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

@Kitebin-h
Copy link
Author

I executes build commands

 make -j$(nproc) --debug

The debug info is

image

image

@chenhengqi
Copy link
Collaborator

Try build with just make not make -j, and maybe enable swap.

@Kitebin-h
Copy link
Author

Oh, I also try make, it doesn't work.

@chenhengqi
Copy link
Collaborator

What's the output of dmesg? Does it show any clue that there is an OOM ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants