Skip to contentSkip to conversation

qt4: remove the option -feliminate-dwarf2-dups to fix the build

PATCH In review Dexuan Cui 4 participants 7 messages Mar 29, 2011 – Apr 9, 2011

lore
Share & tools
lore

Dexuan Cui

author
#0 lore raw

cover qt4: remove the option -feliminate-dwarf2-dups to fix the build

From: Dexuan Cui <[email protected]>

After commit 5ea06dc295b657383fd97545c15255b294cf1a79(bitbake.conf: Prune global OPTIMIZATION flags) that adds an option -feliminate-dwarf2-dups, gcc 4.5 reports such an internal compiler error when building Qt4 if the option is used:

| graphicsview/qgridlayoutengine.cpp:1553:1: internal compiler error: in build_abbrev_table, at dwarf2out.c:9806
| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <http://gcc.gnu.org/bugs.html> for instructions.

This is a gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47361

At present we can remove the option as a workaround.

Thanks Robert Berger for reporting the bug and his investigation in gcc bugzilla and thanks Khem Raj for the quick suggestion about removing the option.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: dcui/master
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dcui/master

Thanks,
Dexuan Cui <[email protected]>
---

Dexuan Cui (1):
qt4: remove the option -feliminate-dwarf2-dups to fix the build

 meta/recipes-qt/qt4/qt4-embedded.inc |    2 +-
 meta/recipes-qt/qt4/qt4-x11-free.inc |    2 +-
 meta/recipes-qt/qt4/qt4.inc          |    5 +++++
 3 files changed, 7 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.2
author
#1 lore raw

PATCH 1/1 qt4: remove the option -feliminate-dwarf2-dups to fix the build

From: Dexuan Cui <[email protected]>

[YOCTO #932]

After commit 5ea06dc295b657383fd97545c15255b294cf1a79(bitbake.conf: Prune global OPTIMIZATION flags) that adds an option -feliminate-dwarf2-dups, gcc 4.5 reports such an internal compiler error when building Qt4 if the option is used:

| graphicsview/qgridlayoutengine.cpp:1553:1: internal compiler error: in build_abbrev_table, at dwarf2out.c:9806
| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <http://gcc.gnu.org/bugs.html> for instructions.

This is a gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47361

At present we can remove the option as a workaround.

Thanks Robert Berger for reporting the bug and his investigation in gcc bugzilla and thanks Khem Raj for the quick suggestion about removing the option.

---
 meta/recipes-qt/qt4/qt4-embedded.inc |    2 +-
 meta/recipes-qt/qt4/qt4-x11-free.inc |    2 +-
 meta/recipes-qt/qt4/qt4.inc          |    5 +++++
 3 files changed, 7 insertions(+), 2 deletions(-)
meta/recipes-qt/qt4/qt4-embedded.inc +1 -1
index 2ed1819..dc5ea96 100644
@@ -4,7 +4,7 @@ LICENSE = "LGPLv2.1 | GPLv3"
 PRIORITY = "optional"
 HOMEPAGE = "http://qt.nokia.com"
 DEPENDS += "directfb tslib"
-INC_PR = "r26"
+INC_PR = "r27"
 
 QT_BASE_NAME ?= "qt4-embedded"
 QT_BASE_LIB  ?= "libqt-embedded"
meta/recipes-qt/qt4/qt4-x11-free.inc +1 -1
index 057a129..ec73a3b 100644
@@ -6,7 +6,7 @@ SECTION = "x11/libs"
 PRIORITY = "optional"
 DEPENDS += "virtual/libx11 fontconfig libxft libxext libxrender libxrandr libxcursor"
 
-INC_PR = "r21"
+INC_PR = "r22"
 
 QT_GLFLAGS ?= "-no-opengl"
 QT_GLFLAGS_qemux86 = "-opengl"
meta/recipes-qt/qt4/qt4.inc +5 -0
index de8cb69..24b2a82 100644
@@ -3,6 +3,11 @@ inherit qmake_base
 DEPENDS += "qt4-tools-native freetype jpeg libpng zlib dbus openssl glib-2.0 gstreamer gst-plugins-base sqlite3"
 
 require qt4_arch.inc
+
+# gcc 4.5 is buggy (it reports "internal compiler error") when building Qt4 if
+# -feliminate-dwarf2-dups is used, so we remove the option to workaround it.
+CXXFLAGS := "${@oe_filter_out('-feliminate-dwarf2-dups', '${CXXFLAGS}', d)}"
+
 QT_ARCH := "${@qt_arch(d)}"
 QT_ENDIAN = "${@qt_endian(d)}"
 
Signature · 1 line
1.7.2
#2 lore raw
Quoted 14 lines · Dexuan Cui

From: Dexuan Cui <[email protected]>

[YOCTO #932]

After commit 5ea06dc295b657383fd97545c15255b294cf1a79(bitbake.conf: Prune global OPTIMIZATION flags) that adds an option -feliminate-dwarf2-dups, gcc 4.5 reports such an internal compiler error when building Qt4 if the option is used:

| graphicsview/qgridlayoutengine.cpp:1553:1: internal compiler error: in build_abbrev_table, at dwarf2out.c:9806
| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <http://gcc.gnu.org/bugs.html> for instructions.
Quoted 7 lines

This is a gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47361

At present we can remove the option as a workaround.

Thanks Robert Berger for reporting the bug and his investigation in gcc bugzilla and thanks Khem Raj for the quick suggestion about removing the option.

How about we add the patch for this issue:

http://gcc.gnu.org/ml/gcc-patches/2011-01/msg01647.html

?

Cheers,

Richard

#3 lore raw
Quoted 20 lines · Richard Purdie
Quoted 19 lines · Dexuan Cui

From: Dexuan Cui <[email protected]>

[YOCTO #932]

After commit 5ea06dc295b657383fd97545c15255b294cf1a79(bitbake.conf:
Prune global OPTIMIZATION flags) that adds an option -feliminate-dwarf2-dups, gcc 4.5 reports such an internal compiler error when building Qt4 if the option is used:

Quoted 5 lines

graphicsview/qgridlayoutengine.cpp:1553:1: internal compiler error:
in build_abbrev_table, at dwarf2out.c:9806 Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

This is a gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47361

At present we can remove the option as a workaround.

Quoted 8 lines
Quoted 4 lines

Thanks Robert Berger for reporting the bug and his investigation in gcc bugzilla and thanks Khem Raj for the quick suggestion about removing
the option.

How about we add the patch for this issue:

http://gcc.gnu.org/ml/gcc-patches/2011-01/msg01647.html

Ok, I'll apply the patch to g++ and test building qt4.

Thanks,
-- Dexuan

#4 lore raw
Quoted 26 lines · Dexuan
Quoted 25 lines · Richard Purdie
Quoted 23 lines · Dexuan Cui

From: Dexuan Cui<[email protected]>

[YOCTO #932]

After commit 5ea06dc295b657383fd97545c15255b294cf1a79(bitbake.conf:
Prune global OPTIMIZATION flags) that adds an option -feliminate-dwarf2-dups, gcc 4.5 reports such an internal compiler error when building Qt4 if the option is used:

Quoted 5 lines

graphicsview/qgridlayoutengine.cpp:1553:1: internal compiler error:
in build_abbrev_table, at dwarf2out.c:9806 Please submit a full bug report,
with preprocessed source if appropriate. See<http://gcc.gnu.org/bugs.html> for instructions.

This is a gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47361

At present we can remove the option as a workaround.

Thanks Robert Berger for reporting the bug and his investigation in gcc bugzilla and thanks Khem Raj for the quick suggestion about removing
the option.

Quoted 5 lines
Quoted 3 lines

How about we add the patch for this issue:

http://gcc.gnu.org/ml/gcc-patches/2011-01/msg01647.html

Ok, I'll apply the patch to g++ and test building qt4.

Any update on this patch?

Sau!

Quoted 7 lines

Thanks,
-- Dexuan
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

#5 lore raw
Quoted 27 lines · Saul Wold
Quoted 26 lines · Dexuan
Quoted 25 lines · Richard Purdie
Quoted 23 lines · Dexuan Cui

From: Dexuan Cui<[email protected]>

[YOCTO #932]

After commit 5ea06dc295b657383fd97545c15255b294cf1a79(bitbake.conf:
Prune global OPTIMIZATION flags) that adds an option -feliminate-dwarf2-dups, gcc 4.5 reports such an internal compiler error when building Qt4 if the option is used:

Quoted 5 lines

graphicsview/qgridlayoutengine.cpp:1553:1: internal compiler error:
in build_abbrev_table, at dwarf2out.c:9806 Please submit a full bug report,
with preprocessed source if appropriate. See<http://gcc.gnu.org/bugs.html> for instructions.

This is a gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47361

At present we can remove the option as a workaround.

Thanks Robert Berger for reporting the bug and his investigation in gcc bugzilla and thanks Khem Raj for the quick suggestion about removing
the option.

Quoted 6 lines
Quoted 5 lines
Quoted 3 lines

How about we add the patch for this issue:

http://gcc.gnu.org/ml/gcc-patches/2011-01/msg01647.html

Ok, I'll apply the patch to g++ and test building qt4.

Any update on this patch?

Does this matter any more, since Richard removed that option globally?

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#6 lore raw
In reply to Saul Wold
Quoted 26 lines · Saul
Quoted 25 lines · Dexuan
Quoted 24 lines · Richard Purdie
Quoted 22 lines · Dexuan Cui

From: Dexuan Cui<[email protected]>

[YOCTO #932]

After commit 5ea06dc295b657383fd97545c15255b294cf1a79(bitbake.conf:
Prune global OPTIMIZATION flags) that adds an option -feliminate-dwarf2-dups, gcc 4.5 reports such an internal compiler error when building Qt4 if the option is used:

Quoted 4 lines

graphicsview/qgridlayoutengine.cpp:1553:1: internal compiler
error: in build_abbrev_table, at dwarf2out.c:9806 Please submit a full bug report, with preprocessed source if appropriate. See<http://gcc.gnu.org/bugs.html> for instructions.

This is a gcc bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47361

At present we can remove the option as a workaround.

Thanks Robert Berger for reporting the bug and his investigation in gcc bugzilla and thanks Khem Raj for the quick suggestion about removing the option.

Quoted 6 lines
Quoted 5 lines
Quoted 3 lines

How about we add the patch for this issue:

http://gcc.gnu.org/ml/gcc-patches/2011-01/msg01647.html

Ok, I'll apply the patch to g++ and test building qt4.

Any update on this patch?

Hi Saul,
The patch doesn't work and we're waiting a fix from upstream gcc. RP has disabled the option globally, so we're ok at present. Please see http://bugzilla.pokylinux.org/show_bug.cgi?id=932 for the details.

Thanks,
-- Dexuan