[ltt-dev] multiple definition of `trace_clock' problem on linux-2.6.30-rc5

Mathieu Desnoyers compudj at krystal.dyndns.org
Thu May 28 11:12:44 EDT 2009


* srikanth krishnakar (skrishnakar at gmail.com) wrote:
> Is it for ARM architecture ?
> 

If the ARM arch you are using is not ARMv7 OMAP3, then yes.

I merged the fix in LTTng 0.137. Feedback is welcome.

Mathieu

> -Srikanth
> 
> On Thu, May 28, 2009 at 8:01 PM, Steve Langstaff
> <steve.langstaff at pebblebay.com> wrote:
> > Hi All.
> >
> > I am having the following trouble compiling kernel linux-2.6.30-rc5 when
> > patched with patch-2.6.30-rc5-lttng-0.136 and wondered if this is a known
> > problem...
> >
> > ...
> >  LD      kernel/time/built-in.o
> >  CC      kernel/trace/ring_buffer.o
> >  CC      kernel/trace/trace.o
> >  CC      kernel/trace/trace_clock.o
> >  CC      kernel/trace/trace_output.o
> >  CC      kernel/trace/trace_stat.o
> >  CC      kernel/trace/trace_printk.o
> >  CC      kernel/trace/trace_nop.o
> >  CC      kernel/trace/trace-clock-32-to-64.o
> >  CC      kernel/trace/trace-clock.o
> >  LD      kernel/trace/built-in.o
> > kernel/trace/trace-clock.o:(.bss+0x0): multiple definition of `trace_clock'
> > kernel/trace/trace_clock.o:trace_clock.c:(.text+0x0): first defined here
> > arm-linux-ld: Warning: size of symbol `trace_clock' changed from 8 in
> > kernel/trace/trace_clock.o to 4 in kernel/trace/trace-clock.o
> > arm-linux-ld: Warning: type of symbol `trace_clock' changed from 2 to 1 in
> > kernel/trace/trace-clock.o
> > make[2]: *** [kernel/trace/built-in.o] Error 1
> > make[1]: *** [kernel/trace] Error 2
> > make: *** [kernel] Error 2
> >
> > I *think* that this is because the symbol trace_clock appears as both a
> > variable and a function.
> >
> > FILE: include/asm-generic/trace-clock.h:
> >
> > extern atomic_long_t trace_clock;
> >
> > and
> >
> > FILE: kernel/trace/trace_clock.c:
> >
> > u64 notrace trace_clock(void)
> > {
> >        return cpu_clock(raw_smp_processor_id());
> > }
> >
> >
> >
> >
> > _______________________________________________
> > ltt-dev mailing list
> > ltt-dev at lists.casi.polymtl.ca
> > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> >
> 
> 
> 
> -- 
> "The Good You Do, The Best You GET"
> 
> Regards
> Srikanth Krishnakar
> **********************
> 
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




More information about the lttng-dev mailing list