Wind River Support Network

HomeDefectsLIN1021-5287
Fixed

LIN1021-5287 : ERROR: lttng-modules-2.13.7-r0 do_compile() failed: lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src/probes/../../include/lttng/tracepoint-event-impl.h:133:6: error: conflicting types for 'trace_jbd2_run_stats'

Created: Feb 19, 2023    Updated: May 2, 2023
Resolved Date: Mar 1, 2023
Found In Version: 10.21.20.17
Fix Version: 10.21.20.17
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Kernel

Description

ERROR: lttng-modules-2.13.7-r0 do_compile: oe_runmake failed
ERROR: lttng-modules-2.13.7-r0 do_compile: ExecutionError('/buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/temp/run.do_compile.760292', 1, None, None)
ERROR: Logfile of failure stored in: /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/temp/log.do_compile.760292
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 24 KERNEL_SRC=/buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work-shared/intel-x86-64/kernel-source KERNELDIR=/buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work-shared/intel-x86-64/kernel-source KERNEL_PATH=/buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work-shared/intel-x86-64/kernel-source KERNEL_VERSION=5.15.87-yocto-standard CC=x86_64-wrs-linux-gcc  -fuse-ld=bfd -fmacro-prefix-map=/buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0=/usr/src/debug/lttng-modules/2.13.7-r0                      -fdebug-prefix-map=/buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0=/usr/src/debug/lttng-modules/2.13.7-r0                      -fdebug-prefix-map=/buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/recipe-sysroot=                      -fdebug-prefix-map=/buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/recipe-sysroot-native=  -fdebug-prefix-map=/buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work-shared/intel-x86-64/kernel-source=/usr/src/kernel -fdebug-prefix-map=/buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work-shared/intel-x86-64/kernel-build-artifacts=/usr/src/kernel LD=x86_64-wrs-linux-ld.bfd  AR=x86_64-wrs-linux-ar  O=/buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work-shared/intel-x86-64/kernel-build-artifacts KBUILD_EXTRA_SYMBOLS=
| make -C /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work-shared/intel-x86-64/kernel-source M=/buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src \
| 	CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m \
| 	KCPPFLAGS='' \
| 	modules


|   CC M]  /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src/probes/lttng-kprobes.o
 (   CC [M)  /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src/probes/lttng-uprobes.o
| In file included from /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src/probes/../../include/lttng/define_trace.h:87,
|                  from /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src/probes/../../include/instrumentation/events/jbd2.h:216,
|                  from /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src/probes/lttng-probe-jbd2.c:29:
| /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src/probes/../../include/lttng/tracepoint-event-impl.h:133:6: error: conflicting types for 'trace_jbd2_run_stats'; have 'void(dev_t,  long unsigned int,  struct transaction_run_stats_s *)' {aka 'void(unsigned int,  long unsigned int,  struct transaction_run_stats_s *)'}
|   133 | void trace_##_name(_proto);
|       |      ^~~~~~
| /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src/probes/../../include/lttng/tracepoint-event-impl.h:45:9: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP'
|    45 |         LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto), PARAMS(args))
|       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src/probes/../../include/lttng/tracepoint-event-impl.h:87:9: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT_MAP'
|    87 |         LTTNG_TRACEPOINT_EVENT_MAP(name, name,                          \
|       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
| /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src/probes/../../include/instrumentation/events/jbd2.h:104:1: note: in expansion of macro 'LTTNG_TRACEPOINT_EVENT'
|   104 | LTTNG_TRACEPOINT_EVENT(jbd2_run_stats,
|       | ^~~~~~~~~~~~~~~~~~~~~~
| In file included from /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work-shared/intel-x86-64/kernel-source/include/trace/events/jbd2.h:9,
|                  from /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src/probes/lttng-probe-jbd2.c:18:
| /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work-shared/intel-x86-64/kernel-source/include/linux/tracepoint.h:245:28: note: previous definition of 'trace_jbd2_run_stats' with type 'void(dev_t,  tid_t,  struct transaction_run_stats_s *)' {aka 'void(unsigned int,  unsigned int,  struct transaction_run_stats_s *)'}
|   245 |         static inline void trace_##name(proto)                          \
|       |                            ^~~~~~
| /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work-shared/intel-x86-64/kernel-source/include/linux/tracepoint.h:419:9: note: in expansion of macro '__DECLARE_TRACE'
|   419 |         __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args),              \
|       |         ^~~~~~~~~~~~~~~
| /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work-shared/intel-x86-64/kernel-source/include/linux/tracepoint.h:553:9: note: in expansion of macro 'DECLARE_TRACE'
|   553 |         DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
|       |         ^~~~~~~~~~~~~
| /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work-shared/intel-x86-64/kernel-source/include/trace/events/jbd2.h:248:1: note: in expansion of macro 'TRACE_EVENT'
|   248 | TRACE_EVENT(jbd2_run_stats,
|       | ^~~~~~~~~~~
| In file included from /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src/probes/../../include/lttng/define_trace.h:87,
|                  from /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src/probes/../../include/instrumentation/events/jbd2.h:216,
|                  from /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src/probes/lttng-probe-jbd2.c:29:
| /buildarea1/OnDemand_CI_Build_World_LTS22/build_dir/01141045-build_world/intel-x86-64-standard-std-OE/build/tmp-glibc/work/intel_x86_64-wrs-linux/lttng-modules/2.13.7-r0/lttng-modules-2.13.7/src/probes/../../include/lttng/tracepoint-event-impl.h:133:6: error: conflicting types for 'trace_jbd2_checkpoint_stats'; have 'void(dev_t,  long unsigned int,  struct transaction_chp_stats_s *)' {aka 'void(unsigned int,  long unsigned int,  struct transaction_chp_stats_s *)'}
|   133 | void trace_##_name(_proto);


h4. Attachments

Steps to Reproduce

1)  git clone --depth 1 --branch WRLINUX_10_22_LTS git://pek-git.wrs.com/wrlinux-x
2) ./wrlinux-x/setup.sh --machines=intel-x86-64 --all-layers --dl-layers=1 --distros=wrlinux --accept-eula=yes --machine intel-x86-64 --dl-layers=1 --distro wrlinux --templates=feature/aws,feature/gcc-sanitizers,feature/gdb,feature/ipmi,feature/ipv6,feature/krb5,feature/kubernetes,feature/LAMP,feature/libhugetlbfs,feature/lttng,feature/mariadb,feature/network-bond-libteam,feature/nfsd,feature/ntp,feature/package-management,feature/software-entropy,feature/system-stats,feature/target-toolchain,feature/tcpslice,feature/test,feature/valgrind,feature/xfce --layers=meta-filesystems,meta-iot-cloud,meta-security-compliance,meta-virtualization
3). environment-setup-x86_64-wrlinuxsdk-linux && . oe-init-build-env
4) bitbake wrlinux-image-std
Live chat
Online