Wind River Support Network

HomeDefectsLIN6-501
Fixed

LIN6-501 : many errors in lttng-ust log.do_compile yet the package claims to build successfully.

Created: Nov 19, 2013    Updated: Dec 3, 2018
Resolved Date: Dec 18, 2013
Found In Version: 6.0
Fix Version: 6.0.0.2
Severity: Severe
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

Problem Description
======================
Find some error info in the log of lttng-ust do_compile

Expected Behavior
======================
No error is found in the build log.

Observed Behavior
======================
Observe 200+ errors in lttng-ust log.do_compile
> grep "[Ee]rror:" log.do_compile | wc -l
252

<snip>
In file included from ../../../include/lttng/tracepoint.h:29,
                 from sample_component_provider.h:62,
                 from sample.c:31:
../../../include/lttng/tracepoint-rcu.h:26:27: error: urcu/compiler.h: No such file or directory
In file included from ../../../include/lttng/tracepoint.h:29,
                 from sample_component_provider.h:62,
                 from tp.c:33:
../../../include/lttng/tracepoint-rcu.h:26:27: error: urcu/compiler.h: No such file or directory
In file included from sample_component_provider.h:62,
                 from sample.c:31:
../../../include/lttng/tracepoint.h: In function '__tracepoint__init_urcu_sym':
../../../include/lttng/tracepoint.h:248: warning: implicit declaration of function 'URCU_FORCE_CAST'

<snip>
In file included from sample.c:31:
sample_component_provider.h: In function '__tracepoint_cb_sample_component___message':
sample_component_provider.h:71: warning: implicit declaration of function 'caa_unlikely'
sample_component_provider.h:71: error: expected expression before 'typeof'
sample_component_provider.h:71: warning: assignment makes pointer from integer without a cast
sample_component_provider.h:71: error: expected expression before 'void'
sample_component_provider.h:71: error: called object 'URCU_FORCE_CAST(<erroneous-expression>)' is not a function
sample_component_provider.h:71: warning: unused variable '__tp_cb'
make[4]: *** [sample.o] Error 1

<snip>
In file included from sample_component_provider.h:62,
                 from tp.c:33:
../../../include/lttng/tracepoint.h: In function '__tracepoint__init_urcu_sym':
../../../include/lttng/tracepoint.h:248: warning: implicit declaration of function 'URCU_FORCE_CAST'

<snip>
In file included from tp.c:33:
sample_component_provider.h: In function '__tracepoint_cb_sample_component___message':
sample_component_provider.h:71: warning: implicit declaration of function 'caa_unlikely'

<snip>
In file included from ../../../include/lttng/tracepoint-event.h:62,
                 from sample_component_provider.h:135,
                 from tp.c:33:
../../../include/lttng/ust-tracepoint-event.h:26:26: error: urcu/rculist.h: No such file or directory

<snip>
In file included from ../../../include/lttng/ust-tracepoint-event.h:27,
                 from ../../../include/lttng/tracepoint-event.h:62,
                 from sample_component_provider.h:135,
                 from tp.c:33:
../../../include/lttng/ust-events.h:30:23: error: urcu/list.h: No such file or directory
../../../include/lttng/ust-events.h:31:24: error: urcu/hlist.h: No such file or directory
In file included from ../../../include/lttng/ust-tracepoint-event.h:27,
                 from ../../../include/lttng/tracepoint-event.h:62,
                 from sample_component_provider.h:135,
                 from tp.c:33:
../../../include/lttng/ust-events.h: At top level:
../../../include/lttng/ust-events.h:280: error: field 'head' has incomplete type

<And some other errors.?

Logs
======================
Attached.

Misc Info 
======================
The error didn't lead to build failure.

Steps to Reproduce

step 1; configure a wrlinux project
wrlinux-x/wrlinux/configure --enable-board=qemux86-64 --enable-kernel=standard --enable-rootfs=glibc-std --enable-parallel-pkgbuilds=8 --enable-jobs=8 

step 2; make bbs

step 3; bitbake lttng-ust

step 4; check error info in log file of lttng-ust do_compile

Other Downloads


Live chat
Online