[lttng-dev] lttng-tools build error: non-dynamic relocations refer to dynamic symbol lttcomm_inet_tcp_timeout
Jérémie Galarneau
jeremie.galarneau at efficios.com
Tue Dec 3 10:34:19 EST 2013
On Tue, Dec 3, 2013 at 3:23 AM, kumar s <skumar.m226 at gmail.com> wrote:
> Hello,
>
> 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.
>
> Do i also need to build lttng modules to start / stop the trace?
>
lttng-modules is only necessary if you wish to use the kernel tracing features.
Jérémie
> Thank you
> Skumar.
>
>
> On Fri, Nov 29, 2013 at 2:02 AM, David Goulet <dgoulet at efficios.com> wrote:
>>
>> 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
>>
>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
--
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list