This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [systemtap trunk] Build error on eBPF.


Mark Wielaard wrote:
> Hi,
> 
> On Wed, 2017-04-12 at 23:24 +0900, Tetsuo Handa wrote:
> > Commit 7e2cd9f56293f697 ("Squashed commit of the eBPF backend for stap")
> > caused following build error when trying to build on CentOS 7.
> 
> Older GCC versions seemed to have some trouble with initialization of
> anonymous struct fields in unions. Older elfutils didn't provide some
> strtab manipulation functions. And some older kernel headers didn't
> define all needed constants.
> 
> I pushed the following commits to hopefully fix the compilation (I
> haven't tested running the ebpf backend yet):

> Could you check if that helps in your case (my setup isn't really a pure
> CentOS7 one).
> 
> Thanks,
> 
> Mark

Thank you. But linux/bpf.h check seems to be missing.

./configure --prefix=/usr/local --with-java=/usr/lib/jvm/java
make -k

  CXX      stap-bpf-base.o
In file included from bpf-base.cxx:10:0:
bpf-internal.h:20:23: fatal error: linux/bpf.h: No such file or directory
 #include <linux/bpf.h>
                       ^
compilation terminated.
make[2]: *** [stap-bpf-base.o] Error 1
  CXX      stap-bpf-translate.o
In file included from bpf-translate.cxx:10:0:
bpf-internal.h:20:23: fatal error: linux/bpf.h: No such file or directory
 #include <linux/bpf.h>
                       ^
compilation terminated.
make[2]: *** [stap-bpf-translate.o] Error 1
  CXX      stap-bpf-opt.o
In file included from bpf-opt.cxx:15:0:
bpf-internal.h:20:23: fatal error: linux/bpf.h: No such file or directory
 #include <linux/bpf.h>
                       ^
compilation terminated.

  CXX      stapbpf-stapbpf.o
In file included from stapbpf.cxx:35:0:
bpfinterp.h:25:23: fatal error: linux/bpf.h: No such file or directory
 #include <linux/bpf.h>
                       ^
compilation terminated.
make[3]: *** [stapbpf-stapbpf.o] Error 1
  CXX      stapbpf-bpfinterp.o
In file included from bpfinterp.cxx:28:0:
bpfinterp.h:25:23: fatal error: linux/bpf.h: No such file or directory
 #include <linux/bpf.h>
                       ^
compilation terminated.
make[3]: *** [stapbpf-bpfinterp.o] Error 1
  CC       stapbpf-libbpf.o
libbpf.c:8:23: fatal error: linux/bpf.h: No such file or directory
 #include <linux/bpf.h>
                       ^
compilation terminated.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]