Openembedded Devel Discussions
 help / color / mirror / Atom feed
* [meta-java] gcc6 support breaks build for gcc < 6
@ 2016-07-11 11:37 Winfried
  2016-07-11 13:19 ` Otavio Salvador
  0 siblings, 1 reply; 9+ messages in thread
From: Winfried @ 2016-07-11 11:37 UTC (permalink / raw)
  To: daniel.mcgregor, openembedded-devel, otavio

Commit 	33ddb28a6428b02ddcc82d1954ecf27cd426fbb5 (openjdk-8: make GCC6 
happy) adds gcc option -fno-lifetime-dse, which was added in gcc6. This 
breaks the compilation of openjdk-native on hosts where gcc4 or gcc5 is 
the default compiler.

If this is intentional, I think the README file should mention that 
meta-java requires gcc6. Better would be to add the '-fno-lifetime-dse' 
option only if gcc >= 6 is used for native compilation (if that is 
possible).

regards,
W. Dobbe




^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: [meta-java] gcc6 support breaks build for gcc < 6
@ 2016-07-11 15:19 Winfried
  2016-07-12 11:56 ` Winfried
  0 siblings, 1 reply; 9+ messages in thread
From: Winfried @ 2016-07-11 15:19 UTC (permalink / raw)
  To: openembedded-devel

> If you are not using default compiler then you have to take some action
> 
> add
> 
> CFLAGS_remove = " -fno-tree-dse"
> CXXFLAGS_remove = " -fno-tree-dse"
> 
> via a .bbappend in your layer.

Yes, to let meta-java compile with gcc 4.8 I added the following lines 
to a .bbappend file:

CFLAGS_remove = "-fno-lifetime-dse"
CXXFLAGS_remove = "-fno-lifetime-dse"

If that is the final solution, please add this to the README of the 
meta-java layer.

Thanks,
Winfried


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

end of thread, other threads:[~2016-07-12 16:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-11 11:37 [meta-java] gcc6 support breaks build for gcc < 6 Winfried
2016-07-11 13:19 ` Otavio Salvador
2016-07-11 14:24   ` Khem Raj
2016-07-11 14:28     ` Otavio Salvador
2016-07-11 14:37       ` Khem Raj
2016-07-12  4:52   ` Dan McGregor
  -- strict thread matches above, loose matches on Subject: below --
2016-07-11 15:19 Winfried
2016-07-12 11:56 ` Winfried
2016-07-12 16:48   ` Jacopo Malvestio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox