Skip to content

Conversation

@Bojun-Seo
Copy link
Contributor

clang is not default package of Ubuntu 24.04. So, add clang for install build dependence on INSTALL.md file.

You will get following error during compiling libbpf-tools on Ubuntu 24.04 without this patch.

  MKDIR    .output                                                                          
  BPF      memleak.bpf.o                                                                                                                                                             
/bin/sh: 1: clang: not found
make: *** [Makefile:209: /home/bojun/bcc/libbpf-tools/.output/memleak.bpf.o] Error 127

I guess other Ubuntu versions also need clang for install dependence. But I didn't test it on other versions.

@Bojun-Seo
Copy link
Contributor Author

I will test this again and change the status to open.

@Bojun-Seo
Copy link
Contributor Author

Bojun-Seo commented Nov 20, 2025

I've tested again on freshly installed Ubuntu 24.04 and clang and llvm packages are necessary to build tools in libbpf-tools

@Bojun-Seo Bojun-Seo marked this pull request as ready for review November 20, 2025 08:27
clang and llvm are not default package of Ubuntu. So, add clang and
llvm for install build dependence packages on INSTALL.md file.

I've tested only on Ubuntu 24.04 but add dependence on every versions

You will encounter this error messages without this patch during
following steps.

  $ git clone https://github.com/iovisor/bcc.git
  $ mkdir bcc/build; cd bcc/build
  $ cmake ..
  $ cd ../libbpf-tools
  $ make profile
  ... snip ...
    BPF      profile.bpf.o
  /bin/sh: 1: clang: not found

  or

    BPF      profile.bpf.o
  /bin/sh: 3: llvm-strip: not found
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

Successfully merging this pull request may close these issues.

1 participant