Skip to contentSkip to conversation

lttng-ust: cannot find -llttng-ust-tracepoint

PATCH In review Robert Yang 4 participants 7 messages Feb 26, 2013 – Feb 28, 2013

lore
Share & tools
lore
#0 lore raw

cover lttng-ust: cannot find -llttng-ust-tracepoint

The following changes since commit 2cc4fe4a0874c42421b1bf3fa100160a9e60a9da:

upstream_tracking.inc: Coonectivity and multimedia packages updates (2013-02-25 05:58:20 -0800)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib robert/lttng-ust
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/lttng-ust

Robert Yang (1):
lttng-ust: cannot find -llttng-ust-tracepoint

 .../lttng-ust/depends-liblttng-ust-tracepoin.patch | 30 ++++++++++++++++++++++
 meta/recipes-kernel/lttng/lttng-ust_2.1.0.bb       |  4 ++-
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-kernel/lttng/lttng-ust/depends-liblttng-ust-tracepoin.patch
Signature · 1 line
1.7.11.2
#1 lore raw

PATCH 1/1 lttng-ust: cannot find -llttng-ust-tracepoint

liblttng_ust.la should depend on liblttng-ust-tracepoint.la, otherwise there maybe a parallel build issue when building liblttng_ust.la:

ld: cannot find -llttng-ust-tracepoint

[YOCTO #3934]

---
 .../lttng-ust/depends-liblttng-ust-tracepoin.patch | 30 ++++++++++++++++++++++
 meta/recipes-kernel/lttng/lttng-ust_2.1.0.bb       |  4 ++-
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-kernel/lttng/lttng-ust/depends-liblttng-ust-tracepoin.patch
meta/recipes-kernel/lttng/lttng-ust/depends-liblttng-ust-tracepoin.patch new file +30 -0
new file mode 100644
index 0000000..458a8d4
@@ -0,0 +1,30 @@
+liblttng_ust.la should depend on liblttng-ust-tracepoint.la
+
+liblttng_ust.la should depend on liblttng-ust-tracepoint.la, otherwise
+there maybe a parallel build issue:
+
+ld: cannot find -llttng-ust-tracepoint
+
+Upstream-Status: Pending
+
+Signed-off-by: Robert Yang <[email protected]>
+---
+ liblttng-ust/Makefile.am | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/liblttng-ust/Makefile.am b/liblttng-ust/Makefile.am
+--- a/liblttng-ust/Makefile.am
++++ b/liblttng-ust/Makefile.am
+@@ -67,7 +67,8 @@ liblttng_ust_la_LIBADD = \
+ 	-llttng-ust-tracepoint \
+ 	$(top_builddir)/snprintf/libustsnprintf.la \
+ 	$(top_builddir)/liblttng-ust-comm/liblttng-ust-comm.la \
+-	liblttng-ust-runtime.la liblttng-ust-support.la
++	liblttng-ust-runtime.la liblttng-ust-support.la \
++	liblttng-ust-tracepoint.la
+ 
+ if LTTNG_UST_BUILD_WITH_LIBUUID
+ liblttng_ust_la_LIBADD += -luuid
+-- 
+1.7.11.2
+
meta/recipes-kernel/lttng/lttng-ust_2.1.0.bb +3 -1
index 20c8b3d..6c2ca04 100644
@@ -22,7 +22,9 @@ PV = "2.1.0"
 PR = "r0"
 PE = "2"
 
-SRC_URI = "git://git.lttng.org/lttng-ust.git;protocol=git"
+SRC_URI = "git://git.lttng.org/lttng-ust.git;protocol=git \
+	   file://depends-liblttng-ust-tracepoin.patch \
+	   "
 
 S = "${WORKDIR}/git"
 
Signature · 1 line
1.7.11.2
#2 lore raw

Pulling in Tom as I don't have any experience with lttng.

Quoted 66 lines · Robert Yang

liblttng_ust.la should depend on liblttng-ust-tracepoint.la, otherwise there maybe a parallel build issue when building liblttng_ust.la:

ld: cannot find -llttng-ust-tracepoint

[YOCTO #3934]

---
 .../lttng-ust/depends-liblttng-ust-tracepoin.patch | 30 ++++++++++++++++++++++
 meta/recipes-kernel/lttng/lttng-ust_2.1.0.bb       |  4 ++-
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-kernel/lttng/lttng-ust/depends-liblttng-ust-tracepoin.patch
meta/recipes-kernel/lttng/lttng-ust/depends-liblttng-ust-tracepoin.patch new file +30 -0
new file mode 100644
index 0000000..458a8d4
@@ -0,0 +1,30 @@
+liblttng_ust.la should depend on liblttng-ust-tracepoint.la
+
+liblttng_ust.la should depend on liblttng-ust-tracepoint.la, otherwise
+there maybe a parallel build issue:
+
+ld: cannot find -llttng-ust-tracepoint
+
+Upstream-Status: Pending
+
+Signed-off-by: Robert Yang <[email protected]>
+---
+ liblttng-ust/Makefile.am | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/liblttng-ust/Makefile.am b/liblttng-ust/Makefile.am
+--- a/liblttng-ust/Makefile.am
++++ b/liblttng-ust/Makefile.am
+@@ -67,7 +67,8 @@ liblttng_ust_la_LIBADD = \
+ 	-llttng-ust-tracepoint \
+ 	$(top_builddir)/snprintf/libustsnprintf.la \
+ 	$(top_builddir)/liblttng-ust-comm/liblttng-ust-comm.la \
+-	liblttng-ust-runtime.la liblttng-ust-support.la
++	liblttng-ust-runtime.la liblttng-ust-support.la \
++	liblttng-ust-tracepoint.la
+ 
+ if LTTNG_UST_BUILD_WITH_LIBUUID
+ liblttng_ust_la_LIBADD += -luuid
+-- 
+1.7.11.2
+
meta/recipes-kernel/lttng/lttng-ust_2.1.0.bb +3 -1
index 20c8b3d..6c2ca04 100644
@@ -22,7 +22,9 @@ PV = "2.1.0"
 PR = "r0"
 PE = "2"
 
-SRC_URI = "git://git.lttng.org/lttng-ust.git;protocol=git"
+SRC_URI = "git://git.lttng.org/lttng-ust.git;protocol=git \
+	   file://depends-liblttng-ust-tracepoin.patch \
+	   "
 
 S = "${WORKDIR}/git"
 
Signature · 3 lines
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel
#3 lore raw
Quoted 7 lines · Darren Hart

Pulling in Tom as I don't have any experience with lttng.

Quoted 4 lines · Robert Yang

liblttng_ust.la should depend on liblttng-ust-tracepoint.la, otherwise there maybe a parallel build issue when building liblttng_ust.la:

ld: cannot find -llttng-ust-tracepoint

Are you using gold linker when you get this issue ?
patch is OK if you are sure that some other .la is not pulling it in as well otherwise you dont want overlinking.

#4 lore raw

Hi Khem,

Here is the full error log, we can see that liblttng-ust.la needs lttng-ust-tracepoint.la:

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

// Robert

Quoted 13 lines · Khem Raj
Quoted 7 lines · Darren Hart

Pulling in Tom as I don't have any experience with lttng.

Quoted 4 lines · Robert Yang

liblttng_ust.la should depend on liblttng-ust-tracepoint.la, otherwise there maybe a parallel build issue when building liblttng_ust.la:

ld: cannot find -llttng-ust-tracepoint

Are you using gold linker when you get this issue ?
patch is OK if you are sure that some other .la is not pulling it in as well otherwise you dont want overlinking.

#5 lore raw
In reply to Robert Yang
Quoted 2 lines · Robert Yang

Robert Yang (1):
lttng-ust: cannot find -llttng-ust-tracepoint

Is this also for danny to fix the lttng failure on sugarbay, or something unrelated?

Ross

#6 lore raw
Quoted 7 lines · Ross
Quoted 2 lines · Robert Yang

Robert Yang (1):
lttng-ust: cannot find -llttng-ust-tracepoint

Is this also for danny to fix the lttng failure on sugarbay, or something unrelated?

No, they are not the same issue, they are unrelated.

// Robert

Quoted 3 lines

Ross