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

instructions for building bcc on Debian 10 #3082

Open
mmelo-yottaa opened this issue Aug 31, 2020 · 1 comment
Open

instructions for building bcc on Debian 10 #3082

mmelo-yottaa opened this issue Aug 31, 2020 · 1 comment

Comments

@mmelo-yottaa
Copy link

I am trying to use bcc python bindings on Debian 10 with v5.8.5 kernel I built. Using the apt-install Debian 10 bcc package I get this failure:

mike@debian$ python bindtrace.py
In file included from /virtual/main.c:2:
In file included from /lib/modules/5.8.5/build/include/linux/sched.h:14:
In file included from /lib/modules/5.8.5/build/include/linux/pid.h:5:
In file included from /lib/modules/5.8.5/build/include/linux/rculist.h:11:
In file included from /lib/modules/5.8.5/build/include/linux/rcupdate.h:26:
In file included from /lib/modules/5.8.5/build/include/linux/irqflags.h:16:
In file included from /lib/modules/5.8.5/build/arch/x86/include/asm/irqflags.h:9:
In file included from /lib/modules/5.8.5/build/arch/x86/include/asm/nospec-branch.h:256:
/lib/modules/5.8.5/build/arch/x86/include/asm/segment.h:266:2: error: expected '(' after 'asm'
alternative_io ("lsl %[seg],%[p]",
^
/lib/modules/5.8.5/build/arch/x86/include/asm/alternative.h:240:2: note: expanded from macro 'alternative_io'
asm_inline volatile (ALTERNATIVE(oldinstr, newinstr, feature)
^

From reading #2573 it seems I might be well off building a new bcc. This was not easy, I uninstalled Debian 10 LLVM/clang and installed version 3.8 from Debian 9 (stretch) to match the instructions here:

https://github.com/iovisor/bcc/blob/master/INSTALL.md#debian---source

There were issues using newer Debian 10 LLVM/clang versions, lots of warnings during build, also errors and failed tests.

After down-rev'ing LLVM/clang, and installing all other prerequisites per the above URL, the build completed but a large number of tests fail. I can forward bcc_0.16.0-1_amd64.build if that is interesting.

Could you please point me at instructions for building bcc on Debian 10 that work? I can up-rev or down-rev installed components at necessary, although I prefer to use latest bcc / kernel / buildtools.

Thank you.

@sbernard31
Copy link

it sounds a duplicate of #3081

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