<div dir="ltr"><div><div>Hi Thomas<br><br></div>With the upstream patch compilations still fails, because the doc makefile tries to use the host linker (/usr/bin/ld) to link against the target liburcu.  <br><br>Making all in doc<br>
make[3]: Entering directory `/home/incognito/buildroot-new/output/build/liburcu-0.8.0/doc'<br>Making all in examples<br>make[4]: Entering directory `/home/incognito/buildroot-new/output/build/liburcu-0.8.0/doc/examples'<br>
/usr/bin/make -f dist-files/Makefile AM_CPPFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I../../../urcu/ -I../../../" AM_CFLAGS='-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -Os ' AM_LDFLAGS=' -L../../../.libs/ -Wl,-rpath="/home/incognito/buildroot-new/output/build/liburcu-0.8.0/doc/examples/../../.libs/"'  all<br>
make[5]: Entering directory `/home/incognito/buildroot-new/output/build/liburcu-0.8.0/doc/examples'<br>/usr/bin/make -C hlist<br>make[6]: Entering directory `/home/incognito/buildroot-new/output/build/liburcu-0.8.0/doc/examples/hlist'<br>
/usr/bin/make -f Makefile.cds_hlist_add_head_rcu<br>make[7]: Entering directory `/home/incognito/buildroot-new/output/build/liburcu-0.8.0/doc/examples/hlist'<br>cc  -g -O2 -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I../../../urcu/ -I../../../ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -Os  \<br>
        -c -o cds_hlist_add_head_rcu.o cds_hlist_add_head_rcu.c<br>cc -g -O2 -Wall  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -pipe -Os  -L../../../.libs/ -Wl,-rpath="/home/incognito/buildroot-new/output/build/liburcu-0.8.0/doc/examples/../../.libs/" \<br>
        -o cds_hlist_add_head_rcu cds_hlist_add_head_rcu.o -lurcu<br>/usr/bin/ld: skipping incompatible ../../../.libs//liburcu.so when searching for -lurcu<br>/usr/bin/ld: skipping incompatible ../../../.libs//liburcu.a when searching for -lurcu<br>
/usr/bin/ld: cannot find -lurcu<br>collect2: error: ld returned 1 exit status<br>make[7]: *** [cds_hlist_add_head_rcu] Error 1<br>make[7]: Leaving directory `/home/incognito/buildroot-new/output/build/liburcu-0.8.0/doc/examples/hlist'<br>
make[6]: *** [all] Error 2<br>make[6]: Leaving directory `/home/incognito/buildroot-new/output/build/liburcu-0.8.0/doc/examples/hlist'<br>make[5]: *** [all] Error 2<br>make[5]: Leaving directory `/home/incognito/buildroot-new/output/build/liburcu-0.8.0/doc/examples'<br>
make[4]: *** [all-local] Error 2<br>make[4]: Leaving directory `/home/incognito/buildroot-new/output/build/liburcu-0.8.0/doc/examples'<br>make[3]: *** [all-recursive] Error 1<br>make[3]: Leaving directory `/home/incognito/buildroot-new/output/build/liburcu-0.8.0/doc'<br>
make[2]: *** [all-recursive] Error 1<br>make[2]: Leaving directory `/home/incognito/buildroot-new/output/build/liburcu-0.8.0'<br>make[1]: *** [all] Error 2<br>make[1]: Leaving directory `/home/incognito/buildroot-new/output/build/liburcu-0.8.0'<br>
make: *** [/home/incognito/buildroot-new/output/build/liburcu-0.8.0/.stamp_built] Error 2<br><br></div>Regards<br><br>Olivier Schonken<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Nov 2, 2013 at 7:41 PM, Thomas Petazzoni <span dir="ltr"><<a href="mailto:thomas.petazzoni@free-electrons.com" target="_blank">thomas.petazzoni@free-electrons.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Olivier Schonken,<br>
<div class="im"><br>
On Wed, 30 Oct 2013 22:20:08 +0200, Olivier Schonken wrote:<br>
> Also added a patch to keep liburcu from trying to build examples in doc directory,<br>
> which breaks cross-compilation when enabled.<br>
><br>
> Signed-off-by: Olivier Schonken <<a href="mailto:olivier.schonken@gmail.com">olivier.schonken@gmail.com</a>><br>
> ---<br>
>  .../liburcu/0001-Removed-Examples-from-doc.patch   | 22 ++++++++++++++++++++++<br>
>  package/liburcu/<a href="http://liburcu.mk" target="_blank">liburcu.mk</a>                         |  3 ++-<br>
>  2 files changed, 24 insertions(+), 1 deletion(-)<br>
>  create mode 100644 package/liburcu/0001-Removed-Examples-from-doc.patch<br>
<br>
</div>Can you instead integrate the upstream fix for the examples build<br>
problem? See<br>
<a href="http://git.lttng.org/?p=userspace-rcu.git;a=commitdiff;h=3343c545bbc5154d42dd37cd3ae869ef97555e00" target="_blank">http://git.lttng.org/?p=userspace-rcu.git;a=commitdiff;h=3343c545bbc5154d42dd37cd3ae869ef97555e00</a><br>

for the patch.<br>
<br>
Thanks,<br>
<br>
Thomas<br>
<span class="HOEnZb"><font color="#888888">--<br>
Thomas Petazzoni, CTO, Free Electrons<br>
Embedded Linux, Kernel and Android engineering<br>
<a href="http://free-electrons.com" target="_blank">http://free-electrons.com</a><br>
</font></span></blockquote></div><br></div>