<div dir="ltr"><div class="gmail_default" style=""><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">Hi,</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">I am trying to instrument a 32 bit application with lttng. I am running this on a 64 bit Ubuntu14.04 x86_64 VM. I am following the steps as provided @ <a href="https://lttng.org/docs/#doc-instrumenting-32-bit-app-on-64-bit-system">https://lttng.org/docs/#doc-instrumenting-32-bit-app-on-64-bit-system</a> </font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">The application is a simple application with tracef tracing. The application can be found at <a href="https://gist.github.com/vjanandr/ea1a60350c0a96ef44bc8417a903de49">https://gist.github.com/vjanandr/ea1a60350c0a96ef44bc8417a903de49</a></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">I first installed the dependent 32 bit packages, namely: urcu</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">sudo apt-get install libxml2-dev</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">sudo apt-get install libpopt-dev:i386</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">I was able to install the 32 bit UST libraries.</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">I then tried building 32 bit consumerd and was able to build it successfully.</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">lttng64_32@lttng6432-vm:/usr/lib32$ ls liblttng-ust-ctl.so</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">liblttng-ust-ctl.so</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">again installed 64 bit popt dependent libraries.</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">sudo apt-get install libpopt-dev</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">make clean</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">and </font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">./configure --prefix=/usr --with-consumerd32-libdir=/usr/lib32 --with-consumerd32-bin=/usr/lib32/lttng/libexec/lttng-consumerd --with-lttng-ust-prefix=/usr/lib32 LDFLAGS="-L/usr/lib32 -L/usr/lib/i386-linux-gnu"</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">gave me an error. </font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">checking for ustctl_recv_channel_from_consumer in -llttng-ust-ctl... no</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">configure: error: Cannot find LTTng-UST >= 2.2.x. Use --with-lttng-ust-prefix=PREFIX to specify its location, or specify --disable-lttng-ust to build lttng-tools without LTTng-UST support.</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">Further more when I looked at the config.log file I see below...</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">configure:6320: result: no</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">configure:6367: checking for ustctl_recv_channel_from_consumer in -llttng-ust-ctl</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">configure:6393: gcc -o conftest -g -O2 -I/usr/lib32/include -L/usr/lib32 -L/usr/lib/i386-linux-gnu -L/usr/lib32/lib64 -L/usr/lib32/lib conftest.c -llttng-ust-ctl -lurcu-common -lurcu-bp -lurcu-cds -lrt -ldl</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"> -lpopt -lpthread >&5</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">/usr/bin/ld: skipping incompatible /usr/lib32/liblttng-ust-ctl.so when searching for -llttng-ust-ctl</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">/usr/bin/ld: skipping incompatible /usr/lib32/liblttng-ust-ctl.a when searching for -llttng-ust-ctl</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">/usr/bin/ld: cannot find -llttng-ust-ctl</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">/usr/bin/ld: skipping incompatible //usr/local/lib/liburcu-common.so when searching for -lurcu-common</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">/usr/bin/ld: skipping incompatible //usr/local/lib/liburcu-common.a when searching for -lurcu-common</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">/usr/bin/ld: cannot find -lurcu-common</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">/usr/bin/ld: skipping incompatible //usr/local/lib/liburcu-bp.so when searching for -lurcu-bp</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">/usr/bin/ld: skipping incompatible //usr/local/lib/liburcu-bp.a when searching for -lurcu-bp</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">/usr/bin/ld: cannot find -lurcu-bp</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">/usr/bin/ld: skipping incompatible //usr/local/lib/liburcu-cds.so when searching for -lurcu-cds</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">/usr/bin/ld: skipping incompatible //usr/local/lib/liburcu-cds.a when searching for -lurcu-cds</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">/usr/bin/ld: cannot find -lurcu-cds</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">The complete config.log file is available @ <a href="https://gist.github.com/vjanandr/a38bef9d5b8ff7089e12da844ffbd4bc">https://gist.github.com/vjanandr/a38bef9d5b8ff7089e12da844ffbd4bc</a>.</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">could anyone please let me know if I have to build a 64 bit UST library as well a</font><span style="color:rgb(0,0,255);font-family:verdana,sans-serif">nd then link the 32 bit UST library with the application using LD_PRELOAD ? or build the rest of the tools binaries ignoring UST support.</span></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif"><br></font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">Regards,</font></div><div class="gmail_default" style=""><font color="#0000ff" face="verdana, sans-serif">Vijay</font></div></div>
</div>