Re: [lttng-dev] compile lttng get gcc compile error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Original Message -----
> From: "Gerlando Falauto" <gerlando.falauto@xxxxxxxxxxx>
> To: "loody" <miloody@xxxxxxxxx>
> Cc: "gcc-help" <gcc-help@xxxxxxxxxxx>, lttng-dev@xxxxxxxxxxxxxxx
> Sent: Wednesday, May 14, 2014 10:52:49 AM
> Subject: Re: [lttng-dev] compile lttng get gcc compile error
> 
> Hi loody,
> [originally posted to gcc-help, cross-posting to lttng-dev]
> 
> On 03/27/2014 01:37 PM, loody wrote:
> > hi Jonathan:
> >
> > 2014-03-27 18:43 GMT+08:00 Jonathan Wakely <jwakely.gcc@xxxxxxxxx>:
> >> On 27 March 2014 10:32, loody wrote:
> >>> hi all
> >>> when I try to cross-compile lttng-tool for arm.
> >>> I get below message
> >>>
> >>>    CC     kernel-consumer.lo
> >>> kernel-consumer.c: In function 'lttng_kconsumer_snapshot_channel':
> >>> kernel-consumer.c:324:1: internal compiler error: in gen_movsi, at
> >>> config/arm/arm.md:5680
> >>>
> >>> my gcc version is 4.7.4
> >>
> >> I think this is http://gcc.gnu.org/PR58595 which will be fixed in GCC
> >> 4.9.0
> > is there any patch I can use to fix this issue before waiting 4.9.0
> > release?
> > or is there method I can avoid this compile happen if I rewrite the source?
> >
> > thanks a lot,
> >
> 
> Did you ever find a workaround for such an issue? Perhaps by refactoring
> the code within lttng_kconsumer_snapshot_channel()?

A similar issue was experienced due to a gcc ARM bug. It only triggered
in O2 on specific gcc versions. I updated http://bugs.lttng.org/issues/640
with a suggested work around: compile lttng-tools in O1 if you cannot get
a fixed compiler.

Thanks,

Mathieu

> 
> Thank you!
> Gerlando
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@xxxxxxxxxxxxxxx
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> 

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux