bcc: Debian Jessie build from source is hanging

I am following this guide: https://github.com/iovisor/bcc/blob/master/INSTALL.md?utf8=✓#debian---source

I had to modify CMakeLists.txt to include the -std=c++11 option so it would build at all. But when running debuild -b -uc -us, numerous tests fail with the exception “Exception: Failed to compile BPF module”, and debuild hangs on test “Start 29: py_test_tools_memleak”

Any idea what’s wrong? I am running a 4-14-rc7 kernel on debian version 8.9.

Attached is my build output. bcc_0.4.0-1_amd64.build.txt

About this issue

Most upvoted comments

I had the same problems AndrewAday’d had above. While there is no build errors, it seems to hang on test #15 and #16 (py_test_brb and py_test_brb2):

Kernel: 4.9.0-0.bpo.3-amd64 (on Debian 8.9)

...
make[2]: Entering directory '/var/tmp/bcc/obj-x86_64-linux-gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process -j1
Test project /var/tmp/bcc/obj-x86_64-linux-gnu
      Start  1: style-check
 1/35 Test  #1: style-check ......................   Passed    0.00 sec
      Start  2: c_test_static
 2/35 Test  #2: c_test_static ....................   Passed    0.11 sec
      Start  3: test_libbcc
 3/35 Test  #3: test_libbcc ......................   Passed    9.19 sec
      Start  4: py_test_stat1_b
 4/35 Test  #4: py_test_stat1_b ..................   Passed    0.66 sec
      Start  5: py_test_bpf_log
 5/35 Test  #5: py_test_bpf_log ..................   Passed    0.65 sec
      Start  6: py_test_stat1_c
 6/35 Test  #6: py_test_stat1_c ..................   Passed    0.70 sec
      Start  7: py_test_xlate1_c
 7/35 Test  #7: py_test_xlate1_c .................   Passed    0.60 sec
      Start  8: py_test_call1
 8/35 Test  #8: py_test_call1 ....................   Passed    0.61 sec
      Start  9: py_test_trace1
 9/35 Test  #9: py_test_trace1 ...................   Passed    0.35 sec
      Start 10: py_test_trace2
10/35 Test #10: py_test_trace2 ...................   Passed    2.32 sec
      Start 11: py_test_trace3_c
11/35 Test #11: py_test_trace3_c .................   Passed    2.40 sec
      Start 12: py_test_trace4
12/35 Test #12: py_test_trace4 ...................   Passed    1.13 sec
      Start 13: py_test_probe_count
13/35 Test #13: py_test_probe_count ..............   Passed    4.81 sec
      Start 14: py_test_debuginfo
14/35 Test #14: py_test_debuginfo ................   Passed    0.71 sec
      Start 15: py_test_brb
15/35 Test #15: py_test_brb ......................***Exception: Other39733.01 sec
E
======================================================================
ERROR: test_brb (__main__.TestBPFSocket)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/bcc/tests/python/test_brb.py", line 162, in test_brb
    disable_ipv6=True)
  File "/var/tmp/bcc/tests/python/simulation.py", line 94, in _create_ns
    disable_ipv6)
  File "/var/tmp/bcc/tests/python/simulation.py", line 70, in _ns_add_ifc
    in_ifc = ns_ipdb.interfaces[in_ifname]
KeyError: 'ns1b'

----------------------------------------------------------------------
Ran 1 test in 3.586s

FAILED (errors=1)

      Start 16: py_test_brb2```
qanon-31%