Skip to contentSkip to conversation

gcc6 support breaks build for gcc < 6

meta-java Winfried 4 participants 6 messages Jul 11, 2016 – Jul 12, 2016

lore
Share & tools
lore

Winfried

author
#0 lore raw

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

#1 lore raw

Hello Dobbe,

(Added Khem and Fabio on Cc)

Quoted 9 lines · Winfried

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).

This is a non-desired side effect of the patch. Daniel, could you take a look on this?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#2 lore raw
Quoted 10 lines · Otavio Salvador

Hello Dobbe,

(Added Khem and Fabio on Cc)

Quoted 5 lines · Winfried

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.

Quoted 7 lines
Quoted 4 lines

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).

This is a non-desired side effect of the patch. Daniel, could you take a look on this?

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.

Quoted 5 lines

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750

#3 lore raw
Quoted 20 lines · Khem Raj
Quoted 10 lines · Otavio Salvador

Hello Dobbe,

(Added Khem and Fabio on Cc)

Quoted 5 lines · Winfried

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.

Quoted 7 lines
Quoted 4 lines

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).

This is a non-desired side effect of the patch. Daniel, could you take a look on this?

Quoted 8 lines

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.

Khem, this is for /native/ so it uses hosts GCC.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#4 lore raw
Quoted 23 lines · Otavio Salvador
Quoted 22 lines · Khem Raj
Quoted 10 lines · Otavio Salvador

Hello Dobbe,

(Added Khem and Fabio on Cc)

Quoted 5 lines · Winfried

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.

Quoted 7 lines
Quoted 4 lines

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).

This is a non-desired side effect of the patch. Daniel, could you take a look on this?

If you are not using default compiler then you have to take some action

Quoted 8 lines
Quoted 6 lines

add

CFLAGS_remove = " -fno-tree-dse"
CXXFLAGS_remove = " -fno-tree-dse"

via a .bbappend in your layer.

Khem, this is for /native/ so it uses hosts GCC.

oh, in such a case, there are two options, one is to have this difference detected during configuring and then not inject it via recipe

second is to have an utility in OE to detect the compiler version. Which was posted in another thread

#5 lore raw
In reply to Otavio Salvador
Quoted 9 lines · Otavio Salvador

Hello Dobbe,

(Added Khem and Fabio on Cc)

Quoted 3 lines · Winfried

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

Quoted 9 lines
Quoted 6 lines

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).

This is a non-desired side effect of the patch. Daniel, could you take a look on this?

Yep. I'll take a look in the morning.

Quoted 10 lines

--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel