INSTALL.md: add clang for install build dependence#5415
INSTALL.md: add clang for install build dependence#5415Bojun-Seo wants to merge 1 commit intoiovisor:masterfrom
Conversation
|
I will test this again and change the status to open. |
|
I've tested again on freshly installed |
|
Thank you. The change is only required for building libbpf-tools, not the BCC Python tools. Adding a note (or a dedicated subsection) to clarify this would improve the documentation. In the longer term, if the BCC Python tools and libbpf-tools diverge significantly in build requirements, splitting them into separate "Install build dependencies" sections would make the document clearer and more user-friendly. A contribution for that would be very welcome. |
`clang` and `llvm` are not installed by default on Ubuntu. Add installation instructions to `INSTALL.md` for these packages so that `libbpf-tools` can be built successfully. Tested on Ubuntu 24.04. Without them, you will see errors like the following during the build: 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
Thanks for the feedback. I've updated it by adding a dedicated subsection.
I agree with you. |
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.
I guess other Ubuntu versions also need clang for install dependence. But I didn't test it on other versions.