Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: stieizc.33@gmail.com (Charlie Brown)
Subject: [lttng-dev] lttng-modules fails to build on linux 3.18.9
Date: Thu, 9 Apr 2015 17:33:49 +0800	[thread overview]
Message-ID: <CAPF+gF9Z5r0-_569EYiO-jTy63yRComw=7sEjyTq6UqGNGgQyg@mail.gmail.com> (raw)

Hi all,
lttng-modules 2.6.0 fails to build on linux 3.18.9.
It seems that the marco that defines trace_##name in
include/linux/tracepoint.h has been changed to inline type.
http://permalink.gmane.org/gmane.comp.sysutils.lttng.devel/6332 Confirms
this bug.

Thank you for making lttng!

This is my build log
----------------------------------------------------------------------------------------------------------------------------------------------------------------
In file included from
/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/../instrumentation/events/lttng-module/../../../probes/define_trace.h:136:0,
                 from
/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/../instrumentation/events/lttng-module/kvm.h:381,
                 from
/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/lttng-probe-kvm.c:42:
/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:180:6:
error: conflicting types for ?trace_kvm_age_page?
 void trace_##_name(_proto);
      ^
/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:47:2:
note: in expansion of macro ?LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP?
  LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto),
PARAMS(args))
  ^
/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:107:2:
note: in expansion of macro ?LTTNG_TRACEPOINT_EVENT_MAP?
  LTTNG_TRACEPOINT_EVENT_MAP(name, name,    \
  ^
/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/kvm.h:235:1:
note: in expansion of macro ?LTTNG_TRACEPOINT_EVENT?
 LTTNG_TRACEPOINT_EVENT(kvm_age_page,
 ^
In file included from ./arch/x86/include/asm/kvm_host.h:17:0,
                 from include/linux/kvm_host.h:34,
                 from
/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/probes/lttng-probe-kvm.c:24:
include/linux/tracepoint.h:169:21: note: previous definition of
?trace_kvm_age_page? was here
  static inline void trace_##name(proto)    \
                     ^
include/linux/tracepoint.h:325:3: note: in expansion of macro
?__DECLARE_TRACE?
   __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
   ^
include/linux/tracepoint.h:459:2: note: in expansion of macro
?DECLARE_TRACE?
  DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
  ^
include/trace/events/kvm.h:227:1: note: in expansion of macro ?TRACE_EVENT?
 TRACE_EVENT(kvm_age_page,
 ^
  CC [M]
/var/tmp/portage/dev-util/lttng-modules-2.6.0_rc1/work/lttng-modules-2.6.0-rc1/lib/ringbuffer/ring_buffer_mmap.o
----------------------------------------------------------------------------------------------------------------------------------------------------------------

Sincerely,
???
Charlie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150409/70564710/attachment.html>


                 reply	other threads:[~2015-04-09  9:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAPF+gF9Z5r0-_569EYiO-jTy63yRComw=7sEjyTq6UqGNGgQyg@mail.gmail.com' \
    --to=stieizc.33@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox