[lttng-dev] lttng fails to install on Ubunti 14.04

Marc-André Laperle marc-andre.laperle at ericsson.com
Fri Jun 5 08:58:22 EDT 2015


I tried to use the PPA yesterday and it failed too. Maybe for a different reason though.

Marc-Andre
________________________________________
From: Alexandre Montplaisir [alexmonthy at voxpopuli.im]
Sent: Friday, 05 June 2015 7:15 AM
To: SMITH Peter T
Cc: lttng-dev at lists.lttng.org
Subject: Re: [lttng-dev] lttng fails to install on Ubunti 14.04

Hi,

This is a recurring problem, unfortunately. The distribution updates
their kernel by backporting patches from later upstream kernel versions,
which can sometimes break the internal "APIs" used by lttng-modules.
However they will not update the lttng-modules package for a given
version of the distro, so even if we fix it in lttng-modules upstream,
the default distribution package will not have the fix.

What I would suggest is to use the Ubuntu PPA to install lttng-modules,
if you can.
See https://launchpad.net/~lttng/+archive/ubuntu/ppa , as well as the
instructions on that page.

I remember that particular kmem.h problem was fixed upstream, so the PPA
package should have that fix. But let us know if you hit another problem!

Cheers,
Alexandre


On 2015-06-05 12:22 PM, SMITH Peter T wrote:
> I am attempting to install LLTng on Ubuntu 14.04 with the following kernel.
>
> Linux user-VirtualBox 3.13.0-53-generic #89-Ubuntu SMP Wed May 20 10:34:39 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
>
> I have followed the generic installation procedure i.e.
> sudo apt-get install lttng-tools
> sudo apt-get install lttng-modules-dkms
> sudo apt-get install liblttng-ust-dev
> The installation fails at the second step i.e. the modules.
>
> Below is the make.log
> DKMS make.log for lttng-modules-2.4.0 for kernel 3.13.0-53-generic (x86_64)
> Fri Jun  5 11:17:48 BST 2015
> make: Entering directory `/usr/src/linux-headers-3.13.0-53-generic'
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-ring-buffer-client-discard.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-ring-buffer-client-overwrite.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-ring-buffer-metadata-client.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-ring-buffer-client-mmap-discard.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-ring-buffer-client-mmap-overwrite.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-ring-buffer-metadata-mmap-client.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-statedump-impl.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/wrapper/irqdesc.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/wrapper/fdtable.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-events.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-abi.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-probes.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-context.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-context-pid.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-context-procname.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-context-prio.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-context-nice.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-context-vpid.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-context-tid.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-context-vtid.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-context-ppid.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-context-vppid.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-calibrate.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-context-hostname.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/wrapper/random.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-syscalls.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/probes/lttng-probe-user.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-context-perf-counters.o
>    LD [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-tracer.o
>    LD [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lttng-statedump.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lib/ringbuffer/ring_buffer_backend.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lib/ringbuffer/ring_buffer_frontend.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lib/ringbuffer/ring_buffer_iterator.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lib/ringbuffer/ring_buffer_vfs.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lib/ringbuffer/ring_buffer_splice.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lib/ringbuffer/ring_buffer_mmap.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lib/prio_heap/lttng_prio_heap.o
>   CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lib/../wrapper/splice.o
>    LD [M]  /var/lib/dkms/lttng-modules/2.4.0/build/lib/lttng-lib-ring-buffer.o
> /var/lib/dkms/lttng-modules/2.4.0/build/probes/Makefile:30: File /usr/src/linux-headers-3.13.0-53-generic/virt/kvm/iodev.h not found. Probe "kvm" x86-specific is disabled. Use full kernel source tree to enable it.
> /var/lib/dkms/lttng-modules/2.4.0/build/probes/Makefile:142: Files /usr/src/linux-headers-3.13.0-53-generic/fs/btrfs/*.h not found. Probe "btrfs" is disabled. Use full kernel source tree to enable it.
> /var/lib/dkms/lttng-modules/2.4.0/build/probes/Makefile:158: Files /usr/src/linux-headers-3.13.0-53-generic/fs/ext4/*.h not found. Probe "ext4" is disabled. Use full kernel source tree to enable it.
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/probes/lttng-types.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/probes/lttng-probe-sched.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/probes/lttng-probe-irq.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/probes/lttng-probe-timer.o
>    CC [M]  /var/lib/dkms/lttng-modules/2.4.0/build/probes/lttng-probe-kmem.o
> In file included from /var/lib/dkms/lttng-modules/2.4.0/build/probes/../instrumentation/events/lttng-module/../../../probes/define_trace.h:148:0,
>                   from /var/lib/dkms/lttng-modules/2.4.0/build/probes/../instrumentation/events/lttng-module/kmem.h:380,
>                   from /var/lib/dkms/lttng-modules/2.4.0/build/probes/lttng-probe-kmem.c:41:
> /var/lib/dkms/lttng-modules/2.4.0/build/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:151:6: error: conflicting types for 'trace_mm_page_alloc_extfrag'
> void trace_##_name(_proto);
>        ^
> /var/lib/dkms/lttng-modules/2.4.0/build/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:47:2: note: in expansion of macro 'DEFINE_EVENT_MAP'
>    DEFINE_EVENT_MAP(map, name, map, PARAMS(proto), PARAMS(args))
>    ^
> /var/lib/dkms/lttng-modules/2.4.0/build/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:89:2: note: in expansion of macro 'TRACE_EVENT_MAP'
>    TRACE_EVENT_MAP(name, name,    \
>    ^
> /var/lib/dkms/lttng-modules/2.4.0/build/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/kmem.h:291:1: note: in expansion of macro 'TRACE_EVENT'
> TRACE_EVENT(mm_page_alloc_extfrag,
> ^
> In file included from include/linux/module.h:18:0,
>                   from /var/lib/dkms/lttng-modules/2.4.0/build/probes/lttng-probe-kmem.c:24:
> include/linux/tracepoint.h:168:21: note: previous definition of 'trace_mm_page_alloc_extfrag' was here
>    static inline void trace_##name(proto)    \
>                       ^
> include/linux/tracepoint.h:265:3: note: in expansion of macro '__DECLARE_TRACE'
>     __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
>     ^
> include/linux/tracepoint.h:399:2: note: in expansion of macro 'DECLARE_TRACE'
>    DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
>    ^
> include/trace/events/kmem.h:267:1: note: in expansion of macro 'TRACE_EVENT'
> TRACE_EVENT(mm_page_alloc_extfrag,
> ^
> make[2]: *** [/var/lib/dkms/lttng-modules/2.4.0/build/probes/lttng-probe-kmem.o] Error 1
> make[1]: *** [/var/lib/dkms/lttng-modules/2.4.0/build/probes] Error 2
> make: *** [_module_/var/lib/dkms/lttng-modules/2.4.0/build] Error 2
> make: Leaving directory `/usr/src/linux-headers-3.13.0-53-generic'
>
>
>
>
>
>
>
>
>
>
> ________________________________
> CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.
>
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev


_______________________________________________
lttng-dev mailing list
lttng-dev at lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev



More information about the lttng-dev mailing list