Skip to contentSkip to conversation

meta-java: Building openjre-8 on a non-gcc-6 host

DISCUSSION Jan Kiszka 2 participants 4 messages May 10, 2017

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi all,

seems like the current cross rules for openjre-8 at least break if the host compiler < gcc-6: -fno-lifetime-dse gets injected based on the cross compiler version, which is 6, but is also used for the few native pieces of that build.

Any suggestions how to fix that properly? I had to temporarily redirect my default gcc from 4.8 to gcc-6.

Thanks,
Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux
#1 lore raw
Quoted 10 lines · Jan Kiszka

Hi all,

seems like the current cross rules for openjre-8 at least break if the host compiler < gcc-6: -fno-lifetime-dse gets injected based on the cross compiler version, which is 6, but is also used for the few native pieces of that build.

Any suggestions how to fix that properly? I had to temporarily redirect my default gcc from 4.8 to gcc-6.

see if you can check -fno-lifetime-dse options is supported in Makefiles before using the option, that way you can ensure that its only used with
compilers which support it

Quoted 11 lines

Thanks,
Jan

--
Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence Center Embedded Linux --
_______________________________________________
Openembedded-devel mailing list [email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

author
#2 lore raw
Quoted 8 lines · Khem Raj
Quoted 7 lines · Jan Kiszka

Hi all,

seems like the current cross rules for openjre-8 at least break if the host compiler < gcc-6: -fno-lifetime-dse gets injected based on the cross compiler version, which is 6, but is also used for the few native pieces of that build.

Quoted 8 lines
Quoted 3 lines

Any suggestions how to fix that properly? I had to temporarily redirect my default gcc from 4.8 to gcc-6.

see if you can check -fno-lifetime-dse options is supported in Makefiles before using the option, that way you can ensure that its only used with
compilers which support it

OK, that means another patch to openjdk, right? OTH, the injection comes from the recipes. Are you synchronizing with upstream on the those cross-build issues?

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux
#3 lore raw
Quoted 13 lines · Jan Kiszka
Quoted 12 lines · Khem Raj
Quoted 10 lines · Jan Kiszka

Hi all,

seems like the current cross rules for openjre-8 at least break if the host compiler < gcc-6: -fno-lifetime-dse gets injected based on the cross compiler version, which is 6, but is also used for the few native pieces of that build.

Any suggestions how to fix that properly? I had to temporarily redirect my default gcc from 4.8 to gcc-6.

Quoted 8 lines
Quoted 4 lines

see if you can check -fno-lifetime-dse options is supported in Makefiles before using the option, that way you can ensure that its only used with
compilers which support it

OK, that means another patch to openjdk, right? OTH, the injection comes from the recipes. Are you synchronizing with upstream on the those cross-build issues?

yes it should be handled in the jdk build system., no I am not doing this upstream

Quoted 6 lines

Jan

--
Siemens AG, Corporate Technology, CT RDA ITP SES-DE Corporate Competence Center Embedded Linux