public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* compile lttng get gcc compile error
@ 2014-03-27 10:43 loody
  2014-03-27 10:51 ` Jonathan Wakely
  0 siblings, 1 reply; 6+ messages in thread
From: loody @ 2014-03-27 10:43 UTC (permalink / raw)
  To: gcc-help

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

thanks for your help in advance,

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: compile lttng get gcc compile error
  2014-03-27 10:43 compile lttng get gcc compile error loody
@ 2014-03-27 10:51 ` Jonathan Wakely
  2014-03-27 13:57   ` loody
  0 siblings, 1 reply; 6+ messages in thread
From: Jonathan Wakely @ 2014-03-27 10:51 UTC (permalink / raw)
  To: loody; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: compile lttng get gcc compile error
  2014-03-27 10:51 ` Jonathan Wakely
@ 2014-03-27 13:57   ` loody
  2014-03-27 13:59     ` Jonathan Wakely
  2014-05-14 14:53     ` Gerlando Falauto
  0 siblings, 2 replies; 6+ messages in thread
From: loody @ 2014-03-27 13:57 UTC (permalink / raw)
  To: Jonathan Wakely; +Cc: gcc-help

hi Jonathan:

2014-03-27 18:43 GMT+08:00 Jonathan Wakely <jwakely.gcc@gmail.com>:
> 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,

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: compile lttng get gcc compile error
  2014-03-27 13:57   ` loody
@ 2014-03-27 13:59     ` Jonathan Wakely
  2014-05-14 14:53     ` Gerlando Falauto
  1 sibling, 0 replies; 6+ messages in thread
From: Jonathan Wakely @ 2014-03-27 13:59 UTC (permalink / raw)
  To: loody; +Cc: gcc-help

On 27 March 2014 12:37, loody wrote:
> 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?

The patch is attached to the PR.

I don't know if it will apply cleanly to the 4.7 branch, you'll have
to try it for yourself.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: compile lttng get gcc compile error
  2014-03-27 13:57   ` loody
  2014-03-27 13:59     ` Jonathan Wakely
@ 2014-05-14 14:53     ` Gerlando Falauto
  2014-05-14 19:56       ` [lttng-dev] " Mathieu Desnoyers
  1 sibling, 1 reply; 6+ messages in thread
From: Gerlando Falauto @ 2014-05-14 14:53 UTC (permalink / raw)
  To: loody; +Cc: lttng-dev, gcc-help

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@gmail.com>:
>> 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()?

Thank you!
Gerlando

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [lttng-dev] compile lttng get gcc compile error
  2014-05-14 14:53     ` Gerlando Falauto
@ 2014-05-14 19:56       ` Mathieu Desnoyers
  0 siblings, 0 replies; 6+ messages in thread
From: Mathieu Desnoyers @ 2014-05-14 19:56 UTC (permalink / raw)
  To: Gerlando Falauto; +Cc: loody, gcc-help, lttng-dev

----- Original Message -----
> From: "Gerlando Falauto" <gerlando.falauto@keymile.com>
> To: "loody" <miloody@gmail.com>
> Cc: "gcc-help" <gcc-help@gcc.gnu.org>, lttng-dev@lists.lttng.org
> 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@gmail.com>:
> >> 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@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> 

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-05-14 19:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-27 10:43 compile lttng get gcc compile error loody
2014-03-27 10:51 ` Jonathan Wakely
2014-03-27 13:57   ` loody
2014-03-27 13:59     ` Jonathan Wakely
2014-05-14 14:53     ` Gerlando Falauto
2014-05-14 19:56       ` [lttng-dev] " Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).