Re: libbpf error: unknown register name 'r0' in asm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 9, 2020 at 9:06 AM Yaniv Agman <yanivagman@xxxxxxxxx> wrote:
>
> Pulling the latest changes of libbpf and compiling my application with it,
> I see the following error:
>
> ../libbpf/src//root/usr/include/bpf/bpf_helpers.h:99:10: error:
> unknown register name 'r0' in asm
>                      : "r0", "r1", "r2", "r3", "r4", "r5");

are you including bpf_helpers.h from user-space code? You are using
recent enough Clang to not run into this problem for -target bpf, so
this seems like you are including bpf_helpers.h in the context where
it's not supposed to be included.


>
> The commit which introduced this change is:
> 80c7838600d39891f274e2f7508b95a75e4227c1
>
> I'm not sure if I'm doing something wrong (missing include?), or this
> is a genuine error
>
> Yaniv



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux