Skip to content

Build failure on Ubuntu: /usr/include/linux/errno.h:1:10: fatal error: 'asm/errno.h' file not found #586

@fnordahl

Description

@fnordahl
$ make
[PROBE]      building /home/ubuntu/src/retis/retis/src/core/probe/kernel/bpf ...
[PROBE]      building /home/ubuntu/src/retis/retis/src/core/probe/user/bpf ...
In file included from usdt.bpf.c:3:
In file included from /home/ubuntu/src/retis/retis/src/.out/bpf/usdt.bpf.h:6:
/usr/include/linux/errno.h:1:10: fatal error: 'asm/errno.h' file not found
    1 | #include <asm/errno.h>
      |          ^~~~~~~~~~~~~
1 error generated.
make[1]: *** [/home/ubuntu/src/retis/ebpf.mk:17: .out/usdt.bpf.o] Error 1
make: *** [Makefile:162: /home/ubuntu/src/retis/retis/src/core/probe/user/bpf] Error 2

Adding /usr/include/$(ARCH)-linux-gnu to the include path appears to fix the issue.

Metadata

Metadata

Assignees

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions