Description of problem: bcc tools appear to require kernel-devel but the package doesn't require it Version-Release number of selected component (if applicable): bcc-0.3.0-2.fc26.x86_64 How reproducible: Always Steps to Reproduce: 1. dnf install bcc 2. sudo -i 3. cd /usr/share/bcc/tools/ 4. ./btrfsslower Actual results: [root@f26h tools]# ./btrfsslower chdir(/lib/modules/4.11.3-300.fc26.x86_64/build): No such file or directory Traceback (most recent call last): File "./btrfsslower", line 322, in b = BPF(text=bpf_text) File "/usr/lib/python3.6/site-packages/bcc/init.py", line 284, in init raise Exception("Failed to compile BPF module %s" % src_file) Exception: Failed to compile BPF module [root@f26h tools]# ls -l /lib/modules/4.11.3-300.fc26.x86_64/build lrwxrwxrwx. 1 root root 39 May 25 13:01 /lib/modules/4.11.3-300.fc26.x86_64/build -> /usr/src/kernels/4.11.3-300.fc26.x86_64 That path is empty. Expected results: Looks like kernel-devel is necessary to run at least some of these tools, so it probably should get dragged in as some kind of dependency when installing bcc. Additional info:
Upstream bug and comment. https://github.com/iovisor/bcc/issues/1221#issuecomment-312791815
Chris, if you install kernel-devel, do the tools work as expected on Fedora 26?
No I get a different problem, a crash, which is in the upstream bug.
(In reply to Chris Murphy from comment #7) > No I get a different problem, a crash, which is in the upstream bug. Yeah, it's the same for me. It only happens on f26. On f25 it works as expected.
*** Bug 1485324 has been marked as a duplicate of this bug. ***
As per upstream investigation [1], the bug is in LLVM/Clang. It should be solved on LLVM/Clango >= 5.0. [1] https://github.com/iovisor/bcc/issues/1221
I don't think it's LLVM/Clang issue. I have rebuild bcc on current master using (slightly modified) SPEC file from Fedora package and it works on 26 with 4.12.5-300 and 4.12.8-300: https://copr.fedorainfracloud.org/coprs/mskarbek/bcc-nightly/
bcc-0.4.0-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-a049c6dc3c
bcc-0.4.0-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-1d3000a95b
bcc-0.4.0-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-a049c6dc3c
bcc-0.4.0-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-1d3000a95b
bcc-0.4.0-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
bcc-0.4.0-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.