All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vitaly Chikunov <vt@altlinux.org>
To: linux-perf-users@vger.kernel.org,
	Arnaldo Carvalho de Melo <acme@redhat.com>,
	Ian Rogers <irogers@google.com>
Cc: "Dmitry V. Levin" <ldv@altlinux.org>
Subject: /usr/include/perf/event.h:9:10: fatal error: linux/compiler.h: No such file or directory
Date: Thu, 6 Oct 2022 17:28:52 +0300	[thread overview]
Message-ID: <20221006142852.mhrgi3r4fvtkircw@altlinux.org> (raw)

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,


             reply	other threads:[~2022-10-06 14:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-06 14:28 Vitaly Chikunov [this message]
2022-10-06 15:16 ` /usr/include/perf/event.h:9:10: fatal error: linux/compiler.h: No such file or directory 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221006142852.mhrgi3r4fvtkircw@altlinux.org \
    --to=vt@altlinux.org \
    --cc=acme@redhat.com \
    --cc=irogers@google.com \
    --cc=ldv@altlinux.org \
    --cc=linux-perf-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.