On 2017/02/08 12:08AM, Ritesh Raj Sarraf wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > Hello Naveen, > > On Tue, 2017-02-07 at 23:18 +0530, Naveen N. Rao wrote: > > I'm not familiar with lua/luajit, but can it be made optional forĀ > > ppc64el and aarch64? > > > > Upstream has a similar fix for rpm distros: > > https://github.com/iovisor/bcc/commit/ef91b6ed64d022baec977a8415581cd1a4a218c5 > > Thanks for the link. The RH folks are doing similar things to what I tried but > their changes are confined to the RPM build script.
They've actually *disabled* building the bcc-lua package on ppc64el and aarch64. > > That doesn't help Debian but the changes are almost the same to what I was > attempting. But I'm still curious to see how those changes fix the actual bug > I > encountered. Because for non-luajit setups, the build would still fail. My understanding is that there is a hard dependency on luajit itself. bcc/bpfcc supports writing the BPF filter in lua as well, and in that scenario, it needs luajit to generate lua bytecode, which is then translated to BPF bytecode. So, I think the right approach would be to _disable_ bpfcc-lua package as well as the lua examples in bpfcc-tools on ppc64el and aarch64. - Naveen