[lttng-dev] lttng-tools - 2.11 failed: checking for _cds_lfht_new in -lurcu-cds... no configure: error: Userspace RCU (liburcu) >= 0.9.0 is needed

bhanu kiran chaluvadi nthdimensionalreality at gmail.com
Mon Jan 13 17:47:35 EST 2020


Hi,

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).


export PATH=/opt/x-tools/bin:$PATH
export SYSROOT=/opt/x-tools/i686-pc-linux-gnu/sysroot

export PKG_CONFIG_PATH=${SYSROOT}/usr/local/lib/pkgconfig
export ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes
export HOST=i686-pc-linux-gnu

export CPPFLAGS="-I$SYSROOT/usr/local/include"
export LDFLAGS="-L$SYSROOT/usr/local/lib -Wl,-rpath-link=$SYSROOT/usr/local
/lib"

$ wget http://lttng.org/files/lttng-tools/lttng-tools-latest-2.11.tar.bz2
&&
tar -xf lttng-tools-latest-2.11.tar.bz2 &&
cd lttng-tools-2.11.* &&
./configure --prefix=/opt/x-tools/i686-pc-linux-gnu/sysroot/usr/local
--host= i686-pc-linux-gnu

Terminal Print:
checking whether cds_list_add is declared... yes
checking whether cds_wfcq_init is declared... yes
checking whether cds_wfcq_dequeue_blocking is declared... yes
checking whether futex_async is declared... yes
checking whether rcu_thread_offline is declared... yes
checking whether rcu_thread_online is declared... yes
checking whether caa_likely is declared... yes
checking for _cds_lfht_new in -lurcu-cds... no
configure: error: Userspace RCU (liburcu) >= 0.9.0 is needed
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.

$ cd $SYSROOT/usr/local/lib
$ ll | grep urcu-cds
-rw-r--r-- 1 ach ach  178748 Jan 13 22:31 liburcu-cds.a
-rwxr-xr-x 1 ach ach    1380 Jan 13 22:31 liburcu-cds.la*
lrwxrwxrwx 1 ach ach      20 Jan 13 22:31 liburcu-cds.so ->
liburcu-cds.so.6.1.0*
lrwxrwxrwx 1 ach ach      20 Jan 13 22:31 liburcu-cds.so.6 ->
liburcu-cds.so.6.1.0*
-rwxr-xr-x 1 ach ach  162240 Jan 13 22:31 liburcu-cds.so.6.1.0*

$ objdump -TC liburcu-cds.so | grep _cds_lfht_new
000046f0 g    DF .text 000004c7  Base        _cds_lfht_new


liburcu is present in "$SYSROOT/usr/local/lib" and the liburcu-cds.so
has "_cds_lfht_new" not sure why this is failing.





-- 
Bhanu Kiran . Chaluvadi ,
Mechanical Engineering ,
National Institute of Technology,Warangal,
India
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20200113/75761e90/attachment.html>


More information about the lttng-dev mailing list