* [PATCH 0/1] qt4: remove the option -feliminate-dwarf2-dups to fix the build
@ 2011-03-29 8:52 Dexuan Cui
2011-03-29 8:52 ` [PATCH 1/1] " Dexuan Cui
0 siblings, 1 reply; 7+ messages in thread
From: Dexuan Cui @ 2011-03-29 8:52 UTC (permalink / raw)
To: poky, openembedded-core
From: Dexuan Cui <dexuan.cui@intel.com>
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 <dexuan.cui@intel.com>
---
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(-)
--
1.7.2
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH 1/1] qt4: remove the option -feliminate-dwarf2-dups to fix the build
2011-03-29 8:52 [PATCH 0/1] qt4: remove the option -feliminate-dwarf2-dups to fix the build Dexuan Cui
@ 2011-03-29 8:52 ` Dexuan Cui
2011-03-29 10:43 ` Richard Purdie
0 siblings, 1 reply; 7+ messages in thread
From: Dexuan Cui @ 2011-03-29 8:52 UTC (permalink / raw)
To: poky, openembedded-core
From: Dexuan Cui <dexuan.cui@intel.com>
[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.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
---
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(-)
diff --git a/meta/recipes-qt/qt4/qt4-embedded.inc b/meta/recipes-qt/qt4/qt4-embedded.inc
index 2ed1819..dc5ea96 100644
--- a/meta/recipes-qt/qt4/qt4-embedded.inc
+++ b/meta/recipes-qt/qt4/qt4-embedded.inc
@@ -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"
diff --git a/meta/recipes-qt/qt4/qt4-x11-free.inc b/meta/recipes-qt/qt4/qt4-x11-free.inc
index 057a129..ec73a3b 100644
--- a/meta/recipes-qt/qt4/qt4-x11-free.inc
+++ b/meta/recipes-qt/qt4/qt4-x11-free.inc
@@ -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"
diff --git a/meta/recipes-qt/qt4/qt4.inc b/meta/recipes-qt/qt4/qt4.inc
index de8cb69..24b2a82 100644
--- a/meta/recipes-qt/qt4/qt4.inc
+++ b/meta/recipes-qt/qt4/qt4.inc
@@ -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)}"
--
1.7.2
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH 1/1] qt4: remove the option -feliminate-dwarf2-dups to fix the build
2011-03-29 8:52 ` [PATCH 1/1] " Dexuan Cui
@ 2011-03-29 10:43 ` Richard Purdie
2011-03-29 11:43 ` Cui, Dexuan
0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2011-03-29 10:43 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: poky
On Tue, 2011-03-29 at 16:52 +0800, Dexuan Cui wrote:
> From: Dexuan Cui <dexuan.cui@intel.com>
>
> [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.
How about we add the patch for this issue:
http://gcc.gnu.org/ml/gcc-patches/2011-01/msg01647.html
?
Cheers,
Richard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/1] qt4: remove the option -feliminate-dwarf2-dups to fix the build
2011-03-29 10:43 ` Richard Purdie
@ 2011-03-29 11:43 ` Cui, Dexuan
2011-04-08 18:18 ` [poky] " Saul Wold
0 siblings, 1 reply; 7+ messages in thread
From: Cui, Dexuan @ 2011-03-29 11:43 UTC (permalink / raw)
To: 'Patches and discussions about the oe-core layer'
Cc: poky@yoctoproject.org
Richard Purdie wrote:
> On Tue, 2011-03-29 at 16:52 +0800, Dexuan Cui wrote:
>> From: Dexuan Cui <dexuan.cui@intel.com>
>>
>> [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.
>
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [poky] [PATCH 1/1] qt4: remove the option -feliminate-dwarf2-dups to fix the build
2011-03-29 11:43 ` Cui, Dexuan
@ 2011-04-08 18:18 ` Saul Wold
2011-04-08 18:32 ` Gary Thomas
2011-04-09 13:48 ` Cui, Dexuan
0 siblings, 2 replies; 7+ messages in thread
From: Saul Wold @ 2011-04-08 18:18 UTC (permalink / raw)
To: Cui, Dexuan
Cc: poky@yoctoproject.org,
'Patches and discussions about the oe-core layer'
On 03/29/2011 04:43 AM, Cui, Dexuan wrote:
> Richard Purdie wrote:
>> On Tue, 2011-03-29 at 16:52 +0800, Dexuan Cui wrote:
>>> From: Dexuan Cui<dexuan.cui@intel.com>
>>>
>>> [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.
>>
>> 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!
> Thanks,
> -- Dexuan
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [poky] [PATCH 1/1] qt4: remove the option -feliminate-dwarf2-dups to fix the build
2011-04-08 18:18 ` [poky] " Saul Wold
@ 2011-04-08 18:32 ` Gary Thomas
2011-04-09 13:48 ` Cui, Dexuan
1 sibling, 0 replies; 7+ messages in thread
From: Gary Thomas @ 2011-04-08 18:32 UTC (permalink / raw)
To: Saul Wold
Cc: 'Patches and discussions about the oe-core layer',
poky@yoctoproject.org
On 04/08/2011 12:18 PM, Saul Wold wrote:
> On 03/29/2011 04:43 AM, Cui, Dexuan wrote:
>> Richard Purdie wrote:
>>> On Tue, 2011-03-29 at 16:52 +0800, Dexuan Cui wrote:
>>>> From: Dexuan Cui<dexuan.cui@intel.com>
>>>>
>>>> [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.
>>>
>>> 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?
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [poky] [PATCH 1/1] qt4: remove the option -feliminate-dwarf2-dups to fix the build
2011-04-08 18:18 ` [poky] " Saul Wold
2011-04-08 18:32 ` Gary Thomas
@ 2011-04-09 13:48 ` Cui, Dexuan
1 sibling, 0 replies; 7+ messages in thread
From: Cui, Dexuan @ 2011-04-09 13:48 UTC (permalink / raw)
To: Wold, Saul; +Cc: 'Patches and discussions about the oe-core layer'
Wold, Saul wrote:
> On 03/29/2011 04:43 AM, Cui, Dexuan wrote:
>> Richard Purdie wrote:
>>> On Tue, 2011-03-29 at 16:52 +0800, Dexuan Cui wrote:
>>>> From: Dexuan Cui<dexuan.cui@intel.com>
>>>>
>>>> [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.
>>>
>>> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-04-09 13:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-29 8:52 [PATCH 0/1] qt4: remove the option -feliminate-dwarf2-dups to fix the build Dexuan Cui
2011-03-29 8:52 ` [PATCH 1/1] " Dexuan Cui
2011-03-29 10:43 ` Richard Purdie
2011-03-29 11:43 ` Cui, Dexuan
2011-04-08 18:18 ` [poky] " Saul Wold
2011-04-08 18:32 ` Gary Thomas
2011-04-09 13:48 ` Cui, Dexuan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox