public inbox for linux-perf-users@vger.kernel.org
 help / color / mirror / Atom feed
* /usr/include/perf/event.h:9:10: fatal error: linux/compiler.h: No such file or directory
@ 2022-10-06 14:28 Vitaly Chikunov
  2022-10-06 15:16 ` Vitaly Chikunov
  0 siblings, 1 reply; 5+ messages in thread
From: Vitaly Chikunov @ 2022-10-06 14:28 UTC (permalink / raw)
  To: linux-perf-users, Arnaldo Carvalho de Melo, Ian Rogers; +Cc: Dmitry V. Levin

Hi,

I noticed that perf examples do not compile anymore with v6.0 (first on ALT,
but on Fedora is the same). Fedora example for convenience:

  # dnf install kernel libperf-devel gcc
  # cc /usr/share/doc/libperf/examples/counting.c -lperf
  In file included from /usr/share/doc/libperf/examples/counting.c:8:
  /usr/include/perf/event.h:9:10: fatal error: linux/compiler.h: No such file or directory
      9 | #include <linux/compiler.h>
	|          ^~~~~~~~~~~~~~~~~~
  compilation terminated.

I don't see compiler.h installed anywhere by the `make headers_install`.

Thanks,


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

end of thread, other threads:[~2022-10-06 20:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-06 14:28 /usr/include/perf/event.h:9:10: fatal error: linux/compiler.h: No such file or directory Vitaly Chikunov
2022-10-06 15:16 ` Vitaly Chikunov
2022-10-06 17:20   ` Ian Rogers
2022-10-06 19:36     ` Arnaldo Carvalho de Melo
2022-10-06 20:32       ` Ian Rogers

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