[lttng-dev] lttng-tools build error: non-dynamic relocations refer to dynamic symbol lttcomm_inet_tcp_timeout
David Goulet
dgoulet at efficios.com
Thu Nov 28 15:32:43 EST 2013
On 27 Nov (15:37:10), kumar s wrote:
> Hi,
>
> I am getting non dynamic relocation error while trying to build
> lttng-tools. I have configured the lttng-tools for mips-gcc.
>
> Making all in lttng-sessiond
> make[3]: Entering directory
> `/home/shkumar/lttng-tools/lttng-tools/src/bin/lttng-sessiond'
> CC utils.o
> CC trace-kernel.o
> CC kernel.o
> CC context.o
> CC channel.o
> CC event.o
> CC shm.o
> CC consumer.o
> CC session.o
> CC modprobe.o
> CC fd-limit.o
> CC kernel-consumer.o
> CC cmd.o
> CC buffer-registry.o
> CC ht-cleanup.o
> CC snapshot.o
> CC jul.o
> CC main.o
> main.c: In function 'thread_dispatch_ust_registration':
> main.c:1564: warning: 'cds_wfq_dequeue_blocking' is deprecated (declared at
> /home/shkumar/Development_Merge/NewOCT/popt-1.16/popt_installed/include/urcu/wfqueue.h:88)
> main.c: In function 'thread_registration_apps':
> main.c:1917: warning: 'cds_wfq_enqueue' is deprecated (declared at
> /home/shkumar/Development_Merge/NewOCT/popt-1.16/popt_installed/include/urcu/wfqueue.h:76)
> main.c: In function 'main':
> main.c:4891: warning: 'cds_wfq_init' is deprecated (declared at
> /home/shkumar/Development_Merge/NewOCT/popt-1.16/popt_installed/include/urcu/wfqueue.h:70)
> CCLD lttng-sessiond
> /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:
> non-dynamic relocations refer to dynamic symbol lttcomm_inet_tcp_timeout
> /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:
> failed to set dynamic section sizes: Bad value
Looks quite the same here:
https://sourceware.org/bugzilla/show_bug.cgi?id=10144#c8
It seems that this is a gcc bug with -g. I'm not too familiar with MIPS
but you could try removing the -g or using "-mplt" as stated in the bug.
Cheers!
David
> collect2: ld returned 1 exit status
> make[3]: *** [lttng-sessiond] Error 1
> make[3]: Leaving directory
> `/home/shkumar/lttng-tools/lttng-tools/src/bin/lttng-sessiond'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/shkumar/lttng-tools/lttng-tools/src/bin'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/shkumar/lttng-tools/lttng-tools/src'
> make: *** [all-recursive] Error 1
>
> Thank you
> Skumar
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: Digital signature
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20131128/e32c0382/attachment.pgp>
More information about the lttng-dev
mailing list