[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
Simon Marchi
simark at simark.ca
Mon Jan 13 18:17:04 EST 2020
On 2020-01-13 5:47 p.m., bhanu kiran chaluvadi wrote:
> 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
>
> exportCPPFLAGS="-I$SYSROOT/usr/local/include"
> exportLDFLAGS="-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 <http://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.
What does config.log has to say about this? It would be good to know
how the test failed.
Simon
More information about the lttng-dev
mailing list