public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* Question about "asm/rwonce.h: No such file or directory"
@ 2019-11-12  8:56 Xiao Yang
  2019-11-12 12:31 ` Will Deacon
  0 siblings, 1 reply; 29+ messages in thread
From: Xiao Yang @ 2019-11-12  8:56 UTC (permalink / raw)
  To: will; +Cc: linux-arch

Hi Will,


With your patch[1], I alway get the following error when building tools/bpf:

----------------------------------------------------------------------------------

make -C tools/bpf/
make: Entering directory
'/usr/src/perf_selftests-x86_64-rhel-7.6-642a312d47ceb54603630d9d04f5052f3b46d9a3/tools/bpf'

Auto-detecting system features:
... libbfd: [ on ]
... disassembler-four-args: [ OFF ]

CC bpf_jit_disasm.o
CC bpf_dbg.o
In file included from
/usr/src/perf_selftests-x86_64-rhel-7.6-642a312d47ceb54603630d9d04f5052f3b46d9a3/include/uapi/linux/filter.h:9:0,
from
/usr/src/perf_selftests-x86_64-rhel-7.6-642a312d47ceb54603630d9d04f5052f3b46d9a3/tools/bpf/bpf_dbg.c:41:
/usr/src/perf_selftests-x86_64-rhel-7.6-642a312d47ceb54603630d9d04f5052f3b46d9a3/include/linux/compiler.h:247:24:
fatal error: asm/rwonce.h: No such file or directory
#include <asm/rwonce.h>
^
compilation terminated.
Makefile:61: recipe for target 'bpf_dbg.o' failed
make: *** [bpf_dbg.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory

----------------------------------------------------------------------------------

[1] 
https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git/commit/?h=lto&id=642a312d47ceb54603630d9d04f5052f3b46d9a3


It seems that include/linux/compiler.h cannot find the asm/rwonce.h 
because tools/bpf/Makefile doesn't include 
arch/*/include/generated/asm/rwonce.h.

Did I miss some operations to build tools/bpf?


Best Regards,

XIao Yang

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2019-11-13 15:49 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-12  8:56 Question about "asm/rwonce.h: No such file or directory" Xiao Yang
2019-11-12 12:31 ` Will Deacon
2019-11-12 12:31   ` Will Deacon
2019-11-12 12:50   ` Masahiro Yamada
2019-11-12 12:50     ` Masahiro Yamada
2019-11-12 15:13     ` Daniel Borkmann
2019-11-12 15:13       ` Daniel Borkmann
2019-11-13  3:44       ` Xiao Yang
2019-11-13  3:44         ` Xiao Yang
2019-11-13  5:28       ` Masahiro Yamada
2019-11-13  5:28         ` Masahiro Yamada
2019-11-13  5:51         ` Xiao Yang
2019-11-13  5:51           ` Xiao Yang
2019-11-13  6:57           ` Masahiro Yamada
2019-11-13  6:57             ` Masahiro Yamada
2019-11-13  7:16             ` Xiao Yang
2019-11-13  7:16               ` Xiao Yang
2019-11-13  7:53               ` Masahiro Yamada
2019-11-13  7:53                 ` Masahiro Yamada
2019-11-13  8:35                 ` Xiao Yang
2019-11-13  8:35                   ` Xiao Yang
2019-11-13  8:54                   ` Masahiro Yamada
2019-11-13  8:54                     ` Masahiro Yamada
2019-11-13 14:55                     ` Xiao Yang
2019-11-13 14:55                       ` Xiao Yang
2019-11-13 15:48                       ` Masahiro Yamada
2019-11-13 15:48                         ` Masahiro Yamada
2019-11-13  0:59   ` Xiao Yang
2019-11-13  0:59     ` Xiao Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox