Bug 3934 - lttng-ust: do_compile failed: cannot find -llttng-ust-tracepoint
Summary: lttng-ust: do_compile failed: cannot find -llttng-ust-tracepoint
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: 1.4
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 1.4 M5
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-02-26 03:23 UTC by Robert Yang
Modified: 2013-03-08 06:41 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Yang 2013-02-26 03:23:53 UTC
This is a parallel build issue, liblttng-ust.so should depend on liblttng-ust-tracepoint:

UST_COMPONENT="liblttng_ust" -fno-strict-aliasing -Wall -O2 -pipe -g -feliminate-unused-debug-types -no-undefined -version-info 0:0:0 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o liblttng-ust.la -rpath /usr/lib  -lpthread -lrt -lurcu-cds -llttng-ust-tracepoint ../snprintf/libustsnprintf.la ../liblttng-ust-comm/liblttng-ust-comm.la liblttng-ust-runtime.la liblttng-ust-support.la -luuid  -lurcu-bp -lurcu-bp -lurcu-cds -lpthread
arm-poky-linux-gnueabi-libtool: link: (cd ".libs" && rm -f "liblttng-ust-tracepoint.so.0" && ln -s "liblttng-ust-tracepoint.so.0.0.0" "liblttng-ust-tracepoint.so.0")
arm-poky-linux-gnueabi-libtool: link: (cd ".libs" && rm -f "liblttng-ust-tracepoint.so" && ln -s "liblttng-ust-tracepoint.so.0.0.0" "liblttng-ust-tracepoint.so")
arm-poky-linux-gnueabi-libtool: link: arm-poky-linux-gnueabi-ar cru .libs/liblttng-ust-tracepoint.a  liblttng_ust_tracepoint_la-tracepoint.o
arm-poky-linux-gnueabi-libtool: link: arm-poky-linux-gnueabi-ranlib .libs/liblttng-ust-tracepoint.a
arm-poky-linux-gnueabi-libtool: link: arm-poky-linux-gnueabi-gcc  -march=armv5te  -marm -mthumb-interwork   --sysroot=/buildarea2/lyang1/ppp/tmp/sysroots/qemuarm -shared  -fPIC -DPIC  -Wl,--whole-archive ../snprintf/.libs/libustsnprintf.a ../liblttng-ust-comm/.libs/liblttng-ust-comm.a ./.libs/liblttng-ust-runtime.a ./.libs/liblttng-ust-support.a -Wl,--no-whole-archive  -llttng-ust-tracepoint -lrt /buildarea2/lyang1/ppp/tmp/sysroots/qemuarm/usr/lib/libuuid.so /buildarea2/lyang1/ppp/tmp/sysroots/qemuarm/usr/lib/liburcu-bp.so -L/buildarea2/lyang1/ppp/tmp/sysroots/qemuarm/usr/lib /buildarea2/lyang1/ppp/tmp/sysroots/qemuarm/usr/lib/liburcu-cds.so /buildarea2/lyang1/ppp/tmp/sysroots/qemuarm/usr/lib/liburcu-common.so -lpthread  -march=armv5te -marm -mthumb-interwork --sysroot=/buildarea2/lyang1/ppp/tmp/sysroots/qemuarm -O2 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed   -Wl,-soname -Wl,liblttng-ust.so.0 -o .libs/liblttng-ust.so.0.0.0
arm-poky-linux-gnueabi-libtool: link: ( cd ".libs" && rm -f "liblttng-ust-tracepoint.la" && ln -s "../liblttng-ust-tracepoint.la" "liblttng-ust-tracepoint.la" )
/buildarea2/lyang1/ppp/tmp/sysroots/x86_64-linux/usr/libexec/armv5te-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/4.7.2/ld: cannot find -llttng-ust-tracepoint
collect2: error: ld returned 1 exit status
make[2]: *** [liblttng-ust.la] Error 1
Comment 1 Beth Flanagan 2013-02-27 00:57:35 UTC
A point here. The failure I'm seeing this on is on the danny branch. Not sure if this is also appropriate for master as well, but we do need it for 1.3.1
Comment 2 Robert Yang 2013-02-27 02:02:18 UTC
(In reply to comment #1)
> A point here. The failure I'm seeing this on is on the danny branch. Not
> sure if this is also appropriate for master as well, but we do need it for
> 1.3.1

Hi Beth,

I saw it on master, the patch has been merged:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=db3b539218e4ca9b348fe1338a50d91aced55c7f
Comment 3 Yi Zhao 2013-03-08 06:41:37 UTC
Verified with master branch: d823759b4594143d522eae0b2a2498436a6dcb1e