[lttng-dev] Building lttng-modules against linux 3.2.65
Junho Suh
redrattus at gmail.com
Thu Mar 31 04:44:53 UTC 2016
Hi Jonathan,
I am still encountering the similar problem, but log detail is some different.
Would you try the build with this linux version and lttng-modules 2.7.x? Here is a repo that I use
git at github.com:JunhoSuh/linux-3.2.65-1-deb7u2.git
Thanks~
> On Mar 31, 2016, at 10:46 AM, Jonathan Rajotte <jonathan.r.julien at gmail.com> wrote:
>
> Hi Junho,
>
> Can you reproduce this with the latest 2.7 stable branch of lttng-modules or master ?
>
> Also there is a newer release for 2.6 which is v2.6.4 so you might want to try this also.
>
> Cheers
>
> On Wed, Mar 30, 2016 at 9:38 PM, Junho Suh <redrattus at gmail.com <mailto:redrattus at gmail.com>> wrote:
> Hi,
>
> I am currently building the LTTng 2.6.1 against the linux kernel 3.2.65.
> When building lttng-modules, I get the below error:
>
> It seems the proper definition of "page->index" can not be found in the right header file.
> I also patch the Makefile by following the link (https://lists.lttng.org/pipermail/lttng-dev/2013-September/021322.html <https://lists.lttng.org/pipermail/lttng-dev/2013-September/021322.html>) which has similar problem, but it doesn’t work.
>
> Anybody can help me?
>
> Thanks~
>
> ===
> Log data follows:
> | DEBUG: Executing shell function do_compile
> | NOTE: make -j 2 -e MAKEFLAGS= KERNEL_SRC=/home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-source KERNEL_PATH=/home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-source KERNEL_VERSION=3.2.65 CC=x86_64-openswitch-linux-gcc LD=x86_64-openswitch-linux-ld.bfd AR=x86_64-openswitch-linux-ar O=/home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-build-artifacts
> | LTTNG_KERNELDIR=/home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-source make -C /home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-source M=/home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git modules
> | make[1]: Entering directory `/home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-source'
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/Makefile:250: CONFIG_KALLSYMS_ALL is disabled, therefore probe "writeback" is disabled. Rebuild your kernel with this configuration option enabled in order to trace this subsystem.
> | CC [M] /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/lttng-probe-ext3.o
> | In file included from /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/define_trace.h:136:0,
> | from /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/ext3.h:902,
> | from /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/lttng-probe-ext3.c:49:
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h: In function '__event_probe__ext3__page_op':
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:253:24: error: dereferencing pointer to incomplete type
> | tp_assign(index, page->index)
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:904:2: note: in definition of macro 'LTTNG_TRACEPOINT_EVENT_CLASS_CODE'
> | _assign \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:154:21: note: in expansion of macro 'PARAMS'
> | PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:240:1: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_CLASS'
> | LTTNG_TRACEPOINT_EVENT_CLASS(ext3__page_op,
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:252:2: note: in expansion of macro 'TP_fast_assign'
> | TP_fast_assign(
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:253:3: note: in expansion of macro 'tp_assign'
> | tp_assign(index, page->index)
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:254:22: error: dereferencing pointer to incomplete type
> | tp_assign(ino, page->mapping->host->i_ino)
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:904:2: note: in definition of macro 'LTTNG_TRACEPOINT_EVENT_CLASS_CODE'
> | _assign \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:154:21: note: in expansion of macro 'PARAMS'
> | PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:240:1: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_CLASS'
> | LTTNG_TRACEPOINT_EVENT_CLASS(ext3__page_op,
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:252:2: note: in expansion of macro 'TP_fast_assign'
> | TP_fast_assign(
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:254:3: note: in expansion of macro 'tp_assign'
> | tp_assign(ino, page->mapping->host->i_ino)
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:255:22: error: dereferencing pointer to incomplete type
> | tp_assign(dev, page->mapping->host->i_sb->s_dev)
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:904:2: note: in definition of macro 'LTTNG_TRACEPOINT_EVENT_CLASS_CODE'
> | _assign \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:154:21: note: in expansion of macro 'PARAMS'
> | PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:240:1: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_CLASS'
> | LTTNG_TRACEPOINT_EVENT_CLASS(ext3__page_op,
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:252:2: note: in expansion of macro 'TP_fast_assign'
> | TP_fast_assign(
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:255:3: note: in expansion of macro 'tp_assign'
> | tp_assign(dev, page->mapping->host->i_sb->s_dev)
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h: In function '__event_probe__ext3_invalidatepage':
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:344:24: error: dereferencing pointer to incomplete type
> | tp_assign(index, page->index)
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:904:2: note: in definition of macro 'LTTNG_TRACEPOINT_EVENT_CLASS_CODE'
> | _assign \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:154:21: note: in expansion of macro 'PARAMS'
> | PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:41:2: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_CLASS'
> | LTTNG_TRACEPOINT_EVENT_CLASS(map, \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:45:9: note: in expansion of macro 'PARAMS'
> | PARAMS(assign), \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/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, \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:111:4: note: in expansion of macro 'PARAMS'
> | PARAMS(assign), \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:330:1: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT'
> | LTTNG_TRACEPOINT_EVENT(ext3_invalidatepage,
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:343:2: note: in expansion of macro 'TP_fast_assign'
> | TP_fast_assign(
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:344:3: note: in expansion of macro 'tp_assign'
> | tp_assign(index, page->index)
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:346:37: error: dereferencing pointer to incomplete type
> | tp_assign(ino, (unsigned long)page->mapping->host->i_ino)
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:904:2: note: in definition of macro 'LTTNG_TRACEPOINT_EVENT_CLASS_CODE'
> | _assign \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:154:21: note: in expansion of macro 'PARAMS'
> | PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:41:2: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_CLASS'
> | LTTNG_TRACEPOINT_EVENT_CLASS(map, \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:45:9: note: in expansion of macro 'PARAMS'
> | PARAMS(assign), \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/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, \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:111:4: note: in expansion of macro 'PARAMS'
> | PARAMS(assign), \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:330:1: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT'
> | LTTNG_TRACEPOINT_EVENT(ext3_invalidatepage,
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:343:2: note: in expansion of macro 'TP_fast_assign'
> | TP_fast_assign(
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:346:3: note: in expansion of macro 'tp_assign'
> | tp_assign(ino, (unsigned long)page->mapping->host->i_ino)
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:347:37: error: dereferencing pointer to incomplete type
> | tp_assign(dev, (unsigned long)page->mapping->host->i_sb->s_dev)
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:904:2: note: in definition of macro 'LTTNG_TRACEPOINT_EVENT_CLASS_CODE'
> | _assign \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:154:21: note: in expansion of macro 'PARAMS'
> | PARAMS(_tstruct), PARAMS(_assign), PARAMS(_print))
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:41:2: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_CLASS'
> | LTTNG_TRACEPOINT_EVENT_CLASS(map, \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:45:9: note: in expansion of macro 'PARAMS'
> | PARAMS(assign), \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/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, \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/lttng-events.h:111:4: note: in expansion of macro 'PARAMS'
> | PARAMS(assign), \
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:330:1: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT'
> | LTTNG_TRACEPOINT_EVENT(ext3_invalidatepage,
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:343:2: note: in expansion of macro 'TP_fast_assign'
> | TP_fast_assign(
> | ^
> | /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/../instrumentation/events/lttng-module/../../../probes/../instrumentation/events/lttng-module/ext3.h:347:3: note: in expansion of macro 'tp_assign'
> | tp_assign(dev, (unsigned long)page->mapping->host->i_sb->s_dev)
> | ^
> | make[4]: *** [/home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes/lttng-probe-ext3.o] Error 1
> | make[3]: *** [/home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git/probes] Error 2
> | make[2]: *** [_module_/home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/git] Error 2
> | make[1]: *** [sub-make] Error 2
> | make[1]: Leaving directory `/home/wedge/workspace/ops-build/build/tmp/work-shared/wedge/kernel-source'
> | make: *** [default] Error 2
> | ERROR: oe_runmake failed
> | WARNING: exit code 1 from a shell command.
> | ERROR: Function failed: do_compile (log file is located at /home/wedge/workspace/ops-build/build/tmp/work/wedge-openswitch-linux/lttng-modules/2.6.1-r0/temp/log.do_compile.22702)
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org <mailto:lttng-dev at lists.lttng.org>
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev <https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev>
>
>
>
>
> --
> Jonathan Rajotte Julien
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20160331/fd17894c/attachment-0001.html>
More information about the lttng-dev
mailing list