[lttng-dev] lttng-modules-2.7.0 : compilation error
Zvi Vered
veredz72 at gmail.com
Thu Dec 3 03:49:43 EST 2015
Thank you.
Z.V
On Dec 3, 2015 9:21 AM, "Mathieu Desnoyers" <mathieu.desnoyers at efficios.com>
wrote:
> ----- On Dec 3, 2015, at 4:20 AM, Zvi Vered veredz72 at gmail.com wrote:
>
> > Hello,
> >
> > I'm tried to compile lttng-modules:
> >
> > more /proc/version:
> > Linux version 2.6.32-279.el6.x86_64
> > (mockbuild at c6b9.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red
> > Hat 4.4.6-4) (GCC) )
> > #1 SMP Fri Jun 22 12:19:21 UTC 2012
>
> Hi,
>
> Kernel 2.6.32 is not supported by lttng-modules. You will need to
> upgrade your kernel. See README.md in lttng-modules.
>
> Thanks,
>
> Mathieu
>
> >
> > yum install kernel-headers
> > cd lttng-modules-2.7.0
> > make
> >
> > and got:
> >
> > LTTNG_KERNELDIR=/lib/modules/2.6.32-279.el6.x86_64/build make -C
> > /lib/modules/2.6.32-279.el6.x86_64/build
> > M=/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0 modules
> > make[1]: Entering directory `/usr/src/kernels/2.6.32-279.el6.x86_64'
> > CC [M]
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client-discard.o
> > In file included from
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/frontend_api.h:1,
> > from
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/api.h:35,
> > from
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/api.h:1,
> > from
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client.h:177,
> > from
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client-discard.c:29:
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:1:
> > error: pasting "per_cpu__" and "*" does not give a valid preprocessing
> > token
> > In file included from
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/frontend_api.h:1,
> > from
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/api.h:35,
> > from
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/api.h:1,
> > from
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client.h:177,
> > from
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client-discard.c:29:
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:
> > In function ‘lib_ring_buffer_put_cpu’:
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:
> > error: ‘per_cpu__’ undeclared (first use in this function)
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:
> > error: (Each undeclared identifier is reported only once
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:
> > error: for each function it appears in.)
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:
> > error: ‘lib_ring_buffer_nesting’ undeclared (first use in this
> > function)
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:
> > warning: type defaults to ‘int’ in declaration of ‘type name’
> >
> /home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/wrapper/ringbuffer/../../lib/ringbuffer/../../wrapper/ringbuffer/../../lib/ringbuffer/frontend_api.h:77:
> > error: invalid type argument of ‘unary *’ (have ‘int’)
> > make[2]: ***
> >
> [/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0/lttng-ring-buffer-client-discard.o]
> > Error 1
> > make[1]: ***
> > [_module_/home/zvivered/Downloads/lttng-modules/lttng-modules-2.7.0]
> > Error 2
> > make[1]: Leaving directory `/usr/src/kernels/2.6.32-279.el6.x86_64'
> >
> > I did not add yet the required components to the kernel.
> >
> > Can you help ?
> >
> > Best regards,
> > Z.V
> >
> > _______________________________________________
> > lttng-dev mailing list
> > lttng-dev at lists.lttng.org
> > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
> --
> Mathieu Desnoyers
> EfficiOS Inc.
> http://www.efficios.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20151203/94f0de65/attachment.html>
More information about the lttng-dev
mailing list