<div dir="ltr">Hi,<div><br></div><div>I am trying to cross compile lttng-tools to host: i686-pc-linux-gnu(dedian 8 - jessie )  from build: x86_64-pc-linux-gnu (ubuntu - 18.04).</div><div><br></div><div><br></div><div><div style="background-color:rgb(30,30,30);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:14px;line-height:19px;white-space:pre"><div style="color:rgb(212,212,212)"><span style="color:rgb(86,156,214)">export</span> PATH=/opt/x-tools/bin:<span style="color:rgb(156,220,254)">$PATH</span></div><div style="color:rgb(212,212,212)"><span style="color:rgb(86,156,214)">export</span> SYSROOT=/opt/x-tools/i686-pc-linux-gnu/sysroot</div><font color="#d4d4d4"><br></font><div style="color:rgb(212,212,212)"><span style="color:rgb(86,156,214)">export</span> PKG_CONFIG_PATH=<span style="color:rgb(156,220,254)">${SYSROOT}</span>/usr/local/lib/pkgconfig</div><div style="color:rgb(212,212,212)"><span style="color:rgb(86,156,214)">export</span> ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes</div><div style="color:rgb(212,212,212)"><span style="color:rgb(86,156,214)">export</span> HOST=i686-pc-linux-gnu</div><div style="color:rgb(212,212,212)"><br></div><div style=""><div style="line-height:19px"><div style=""><span style="color:rgb(86,156,214)">export</span><font color="#d4d4d4"> CPPFLAGS=</font><span style="color:rgb(206,145,120)">"-I</span><span style="color:rgb(156,220,254)">$SYSROOT</span><span style="color:rgb(206,145,120)">/usr/</span><font color="#9cdcfe">local</font><span style="color:rgb(206,145,120)">/include"</span></div><div style=""><span style="color:rgb(86,156,214)">export</span><font color="#d4d4d4"> LDFLAGS=</font><span style="color:rgb(206,145,120)">"-L</span><span style="color:rgb(156,220,254)">$SYSROOT</span><span style="color:rgb(206,145,120)">/</span><font color="#9cdcfe">usr/local</font><span style="color:rgb(206,145,120)">/lib -Wl,-rpath-link=</span><span style="color:rgb(156,220,254)">$SYSROOT</span><span style="color:rgb(206,145,120)">/</span><font color="#9cdcfe">usr/local</font><span style="color:rgb(206,145,120)">/lib"</span></div><div style="color:rgb(212,212,212)"><span style="color:rgb(206,145,120)"><br></span></div><div style="color:rgb(212,212,212)"><span style="color:rgb(206,145,120)">$ </span>wget <a href="http://lttng.org/files/lttng-tools/lttng-tools-latest-2.11.tar.bz2">http://lttng.org/files/lttng-tools/lttng-tools-latest-2.11.tar.bz2</a> && </div><div style="color:rgb(212,212,212)">tar -xf lttng-tools-latest-2.11.tar.bz2 &&<br></div><div style="color:rgb(212,212,212)">cd lttng-tools-2.11.* &&<br></div><div style="color:rgb(212,212,212)">./configure --prefix=/opt/x-tools/i686-pc-linux-gnu/sysroot/usr/local --host= i686-pc-linux-gnu<br></div><div style="color:rgb(212,212,212)"><br></div><div style="color:rgb(212,212,212)">Terminal Print:</div><div style="color:rgb(212,212,212)">checking whether cds_list_add is declared... yes<br>checking whether cds_wfcq_init is declared... yes<br>checking whether cds_wfcq_dequeue_blocking is declared... yes<br>checking whether futex_async is declared... yes<br>checking whether rcu_thread_offline is declared... yes<br>checking whether rcu_thread_online is declared... yes<br>checking whether caa_likely is declared... yes<br>checking for _cds_lfht_new in -lurcu-cds... no<br>configure: error: Userspace RCU (liburcu) >= 0.9.0 is needed<br>make: *** No targets specified and no makefile found.  Stop.<br>make: *** No rule to make target 'install'.  Stop.<br></div></div></div></div></div><div><br></div><div><div style="background-color:rgb(30,30,30);font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback";font-size:14px;line-height:19px;white-space:pre"><div style=""><font color="#569cd6">$ cd </font><span style="color:rgb(156,220,254)">$SYSROOT</span><span style="color:rgb(206,145,120)">/</span><font color="#9cdcfe">usr/local</font><span style="color:rgb(206,145,120)">/lib</span></div><div style="color:rgb(212,212,212)">$ ll | grep urcu-cds</div><div style="color:rgb(212,212,212)">-rw-r--r-- 1 ach ach  178748 Jan 13 22:31 liburcu-cds.a<br>-rwxr-xr-x 1 ach ach    1380 Jan 13 22:31 <a href="http://liburcu-cds.la">liburcu-cds.la</a>*<br>lrwxrwxrwx 1 ach ach      20 Jan 13 22:31 liburcu-cds.so -> liburcu-cds.so.6.1.0*<br>lrwxrwxrwx 1 ach ach      20 Jan 13 22:31 liburcu-cds.so.6 -> liburcu-cds.so.6.1.0*<br>-rwxr-xr-x 1 ach ach  162240 Jan 13 22:31 liburcu-cds.so.6.1.0*<br></div><div style="color:rgb(212,212,212)"><br></div><div style="color:rgb(212,212,212)">$ objdump -TC liburcu-cds.so | grep _cds_lfht_new</div><div style="color:rgb(212,212,212)">000046f0 g    DF .text      000004c7  Base        _cds_lfht_new<br></div><div style="color:rgb(212,212,212)"><br></div></div></div><div><div style="color:rgb(212,212,212)"><br></div></div><div><pre class="gmail-commands" style="margin-top:0px;margin-bottom:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;font-size:12px;line-height:15px;font-family:"Andale Mono WT","Andale Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L","Ubuntu Mono",Monaco,Consolas,"Lucida Console","Lucida Sans Typewriter","Courier New",Courier,monospace;vertical-align:baseline;background-color:transparent;overflow-x:auto"><pre class="gmail-commands" style="margin-top:0px;margin-bottom:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:15px;font-family:"Andale Mono WT","Andale Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L","Ubuntu Mono",Monaco,Consolas,"Lucida Console","Lucida Sans Typewriter","Courier New",Courier,monospace;vertical-align:baseline;background-color:transparent;overflow-x:auto"><font color="rgba(0, 0, 0, 0.749019607843137)">liburcu is present in "</font><font color="#ce9178">$SYSROOT/usr/local/lib</font><font color="rgba(0, 0, 0, 0.749019607843137)">" and the </font>liburcu-cds.so has "_cds_lfht_new" not sure why this is failing.</pre><pre class="gmail-commands" style="margin-top:0px;margin-bottom:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:15px;font-family:"Andale Mono WT","Andale Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L","Ubuntu Mono",Monaco,Consolas,"Lucida Console","Lucida Sans Typewriter","Courier New",Courier,monospace;vertical-align:baseline;background-color:transparent;overflow-x:auto"><br></pre><pre class="gmail-commands" style="margin-top:0px;margin-bottom:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;line-height:15px;font-family:"Andale Mono WT","Andale Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L","Ubuntu Mono",Monaco,Consolas,"Lucida Console","Lucida Sans Typewriter","Courier New",Courier,monospace;vertical-align:baseline;background-color:transparent;overflow-x:auto"><br></pre></pre><pre class="gmail-commands" style="margin-top:0px;margin-bottom:0px;padding:0px;border:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit;font-size:12px;line-height:15px;font-family:"Andale Mono WT","Andale Mono","Bitstream Vera Sans Mono","Liberation Mono","Nimbus Mono L","Ubuntu Mono",Monaco,Consolas,"Lucida Console","Lucida Sans Typewriter","Courier New",Courier,monospace;vertical-align:baseline;background-color:transparent;overflow-x:auto;color:rgba(0,0,0,0.75)"><br></pre></div><div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Bhanu Kiran . Chaluvadi ,<div>Mechanical Engineering ,</div><div>National Institute of Technology,Warangal,</div><div>India</div></div></div></div>