<div dir="ltr">Hello,<div><br></div><div>I was able to fix this. I downloaded the latest binutils 2.23 and when mips gcc used the ld from binutils (2.23) , it did not throw any error. The build went through without any issues.</div>
<div><br></div><div>Do i also need to build lttng modules to start / stop the trace?</div><div><br></div><div>Thank you</div><div>Skumar.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 29, 2013 at 2:02 AM, David Goulet <span dir="ltr"><<a href="mailto:dgoulet@efficios.com" target="_blank">dgoulet@efficios.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 27 Nov (15:37:10), kumar s wrote:<br>
> Hi,<br>
><br>
> I am getting non dynamic relocation error while trying to build<br>
> lttng-tools. I have configured the lttng-tools for mips-gcc.<br>
><br>
</div><div><div class="h5">> Making all in lttng-sessiond<br>
> make[3]: Entering directory<br>
> `/home/shkumar/lttng-tools/lttng-tools/src/bin/lttng-sessiond'<br>
>   CC     utils.o<br>
>   CC     trace-kernel.o<br>
>   CC     kernel.o<br>
>   CC     context.o<br>
>   CC     channel.o<br>
>   CC     event.o<br>
>   CC     shm.o<br>
>   CC     consumer.o<br>
>   CC     session.o<br>
>   CC     modprobe.o<br>
>   CC     fd-limit.o<br>
>   CC     kernel-consumer.o<br>
>   CC     cmd.o<br>
>   CC     buffer-registry.o<br>
>   CC     ht-cleanup.o<br>
>   CC     snapshot.o<br>
>   CC     jul.o<br>
>   CC     main.o<br>
> main.c: In function 'thread_dispatch_ust_registration':<br>
> main.c:1564: warning: 'cds_wfq_dequeue_blocking' is deprecated (declared at<br>
> /home/shkumar/Development_Merge/NewOCT/popt-1.16/popt_installed/include/urcu/wfqueue.h:88)<br>
> main.c: In function 'thread_registration_apps':<br>
> main.c:1917: warning: 'cds_wfq_enqueue' is deprecated (declared at<br>
> /home/shkumar/Development_Merge/NewOCT/popt-1.16/popt_installed/include/urcu/wfqueue.h:76)<br>
> main.c: In function 'main':<br>
> main.c:4891: warning: 'cds_wfq_init' is deprecated (declared at<br>
> /home/shkumar/Development_Merge/NewOCT/popt-1.16/popt_installed/include/urcu/wfqueue.h:70)<br>
>   CCLD   lttng-sessiond<br>
> /home/shkumar/Development_Merge/NewOCT/OCTEON_SDK/octeon_sdk/OCTEON-SDK/tools-gcc-4.3/bin/../lib/gcc/mips64-octeon-linux-gnu/4.3.3/../../../../mips64-octeon-linux-gnu/bin/ld:<br>
> non-dynamic relocations refer to dynamic symbol lttcomm_inet_tcp_timeout<br>
> /home/shkumar/Development_Merge/NewOCT/OCTEON_SDK/octeon_sdk/OCTEON-SDK/tools-gcc-4.3/bin/../lib/gcc/mips64-octeon-linux-gnu/4.3.3/../../../../mips64-octeon-linux-gnu/bin/ld:<br>
> failed to set dynamic section sizes: Bad value<br>
<br>
</div></div>Looks quite the same here:<br>
<a href="https://sourceware.org/bugzilla/show_bug.cgi?id=10144#c8" target="_blank">https://sourceware.org/bugzilla/show_bug.cgi?id=10144#c8</a><br>
<br>
It seems that this is a gcc bug with -g. I'm not too familiar with MIPS<br>
but you could try removing the -g or using "-mplt" as stated in the bug.<br>
<br>
Cheers!<br>
David<br>
<div class="im"><br>
> collect2: ld returned 1 exit status<br>
> make[3]: *** [lttng-sessiond] Error 1<br>
> make[3]: Leaving directory<br>
> `/home/shkumar/lttng-tools/lttng-tools/src/bin/lttng-sessiond'<br>
> make[2]: *** [all-recursive] Error 1<br>
> make[2]: Leaving directory `/home/shkumar/lttng-tools/lttng-tools/src/bin'<br>
> make[1]: *** [all-recursive] Error 1<br>
> make[1]: Leaving directory `/home/shkumar/lttng-tools/lttng-tools/src'<br>
> make: *** [all-recursive] Error 1<br>
><br>
> Thank you<br>
> Skumar<br>
<br>
</div>> _______________________________________________<br>
> lttng-dev mailing list<br>
> <a href="mailto:lttng-dev@lists.lttng.org">lttng-dev@lists.lttng.org</a><br>
> <a href="http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev" target="_blank">http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev</a><br>
<br>
</blockquote></div><br></div>