Saul Wold | 1 Jun 07:26 2011
Picon

[OE-core] [PATCH] tcmode-default: disable ARMv7 Optimization for qt4-x11-free

[YOCTO #1030]

This diables the ARMv7 optimizations that cause the compiler to fail 
with the following error

| ../../include/QtCore/../../src/corelib/arch/qatomic_arm.h: In function 
'void qt_removeObject(QObject*)':
| ../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:361:35: 
error: output number 1 not directly addressable

Signed-off-by: Saul Wold <sgw@...>
---
  meta/conf/distro/include/tcmode-default.inc |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/meta/conf/distro/include/tcmode-default.inc 
b/meta/conf/distro/include/tcmode-default.inc
index 6eb34ef..6393ffd 100644
--- a/meta/conf/distro/include/tcmode-default.inc
+++ b/meta/conf/distro/include/tcmode-default.inc
 <at>  <at>  -29,6 +29,7  <at>  <at>  PREFERRED_VERSION_u-boot-mkimage-native_powerpc ?= 
"2009.08"
  # Temporary workaround for gcc 4.6.0 ICE with beagleboard
  # gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47719
  TARGET_CC_ARCH_arm_pn-mesa-xlib := 
"${ <at> '${TARGET_CC_ARCH}'.replace('armv7-a','armv5')}"
+TARGET_CC_ARCH_arm_pn-qt4-x11-free := 
"${ <at> '${TARGET_CC_ARCH}'.replace('armv7-a','armv5')}"

  PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
(Continue reading)

Khem Raj | 1 Jun 07:57 2011
Picon

Re: [OE-core] [PATCH] tcmode-default: disable ARMv7 Optimization for qt4-x11-free


On 05/31/2011 10:26 PM, Saul Wold wrote:
> [YOCTO #1030]
> 
> This diables the ARMv7 optimizations that cause the compiler to fail
> with the following error
> 
> | ../../include/QtCore/../../src/corelib/arch/qatomic_arm.h: In function
> 'void qt_removeObject(QObject*)':
> | ../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:361:35:
> error: output number 1 not directly addressable

this is a coding error you can fix the source code I guess instead of
pessimising the whole package

> 
> Signed-off-by: Saul Wold <sgw@...>
> ---
>  meta/conf/distro/include/tcmode-default.inc |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/meta/conf/distro/include/tcmode-default.inc
> b/meta/conf/distro/include/tcmode-default.inc
> index 6eb34ef..6393ffd 100644
> --- a/meta/conf/distro/include/tcmode-default.inc
> +++ b/meta/conf/distro/include/tcmode-default.inc
>  <at>  <at>  -29,6 +29,7  <at>  <at>  PREFERRED_VERSION_u-boot-mkimage-native_powerpc ?=
> "2009.08"
>  # Temporary workaround for gcc 4.6.0 ICE with beagleboard
>  # gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47719
(Continue reading)

Martin Jansa | 1 Jun 08:10 2011
Picon

Re: [OE-core] [PATCH] tcmode-default: disable ARMv7 Optimization for qt4-x11-free

On Tue, May 31, 2011 at 10:57:00PM -0700, Khem Raj wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 05/31/2011 10:26 PM, Saul Wold wrote:
> > [YOCTO #1030]
> > 
> > This diables the ARMv7 optimizations that cause the compiler to fail
> > with the following error
> > 
> > | ../../include/QtCore/../../src/corelib/arch/qatomic_arm.h: In function
> > 'void qt_removeObject(QObject*)':
> > | ../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:361:35:
> > error: output number 1 not directly addressable
> 
> this is a coding error you can fix the source code I guess instead of
> pessimising the whole package

FWIW: I haven't seen it in my armv7-a builds (nokia900), but I'm using
gcc-4.6 from meta-oe.

Regards,

--

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@...
_______________________________________________
Openembedded-core mailing list
Openembedded-core@...
(Continue reading)

Khem Raj | 1 Jun 08:14 2011
Picon

Re: [OE-core] [PATCH] tcmode-default: disable ARMv7 Optimization for qt4-x11-free


On 05/31/2011 11:10 PM, Martin Jansa wrote:
> On Tue, May 31, 2011 at 10:57:00PM -0700, Khem Raj wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 05/31/2011 10:26 PM, Saul Wold wrote:
>>> [YOCTO #1030]
>>>
>>> This diables the ARMv7 optimizations that cause the compiler to fail
>>> with the following error
>>>
>>> | ../../include/QtCore/../../src/corelib/arch/qatomic_arm.h: In function
>>> 'void qt_removeObject(QObject*)':
>>> | ../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:361:35:
>>> error: output number 1 not directly addressable
>>
>> this is a coding error you can fix the source code I guess instead of
>> pessimising the whole package
> 
> FWIW: I haven't seen it in my armv7-a builds (nokia900), but I'm using
> gcc-4.6 from meta-oe.
> 
> Regards,
> 

this may give some hints on how to fix it in qt-x11
https://bugs.launchpad.net/ubuntu/+source/qt4-x11/+bug/673085
Khem Raj | 1 Jun 08:21 2011
Picon

Re: [OE-core] [PATCH] tcmode-default: disable ARMv7 Optimization for qt4-x11-free


On 05/31/2011 11:10 PM, Martin Jansa wrote:
> On Tue, May 31, 2011 at 10:57:00PM -0700, Khem Raj wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 05/31/2011 10:26 PM, Saul Wold wrote:
>>> [YOCTO #1030]
>>>
>>> This diables the ARMv7 optimizations that cause the compiler to fail
>>> with the following error
>>>
>>> | ../../include/QtCore/../../src/corelib/arch/qatomic_arm.h: In function
>>> 'void qt_removeObject(QObject*)':
>>> | ../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:361:35:
>>> error: output number 1 not directly addressable
>>
>> this is a coding error you can fix the source code I guess instead of
>> pessimising the whole package
> 
> FWIW: I haven't seen it in my armv7-a builds (nokia900), but I'm using
> gcc-4.6 from meta-oe.
> 

this is because gcc 4.6 in meta-oe has fix for it its this patch here
http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01477.html

a patch developed by linaro folks but now is committed to FSF as well.
this patch has not been backported to FSF 4.6 branch

(Continue reading)

Phil Blundell | 1 Jun 12:46 2011
Picon

Re: [OE-core] [PATCH] tcmode-default: disable ARMv7 Optimization for qt4-x11-free

On Tue, 2011-05-31 at 23:21 -0700, Khem Raj wrote:
> On 05/31/2011 11:10 PM, Martin Jansa wrote:
> > On Tue, May 31, 2011 at 10:57:00PM -0700, Khem Raj wrote:
> >> On 05/31/2011 10:26 PM, Saul Wold wrote:
> >>> | ../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:361:35:
> >>> error: output number 1 not directly addressable
> >>
> >> this is a coding error you can fix the source code I guess instead of
> >> pessimising the whole package
> > 
> > FWIW: I haven't seen it in my armv7-a builds (nokia900), but I'm using
> > gcc-4.6 from meta-oe.
>
> this is because gcc 4.6 in meta-oe has fix for it its this patch here
> http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01477.html

I'm a bit confused by this.  In the first quote above you said that this
was a coding error and ought to be fixed in qt, but now you seem to be
saying that it's a compiler bug and should be fixed in gcc.  If it's the
latter, can we get that patch applied to the oe-core version of gcc?

Either way, I agree, working around this by just frobbing the
architecture options seems like a bad idea.

p.
Saul Wold | 1 Jun 19:50 2011
Picon

Re: [OE-core] [PATCH] tcmode-default: disable ARMv7 Optimization for qt4-x11-free

On 06/01/2011 03:46 AM, Phil Blundell wrote:
> On Tue, 2011-05-31 at 23:21 -0700, Khem Raj wrote:
>> On 05/31/2011 11:10 PM, Martin Jansa wrote:
>>> On Tue, May 31, 2011 at 10:57:00PM -0700, Khem Raj wrote:
>>>> On 05/31/2011 10:26 PM, Saul Wold wrote:
>>>>> | ../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:361:35:
>>>>> error: output number 1 not directly addressable
>>>>
>>>> this is a coding error you can fix the source code I guess instead of
>>>> pessimising the whole package
>>>
>>> FWIW: I haven't seen it in my armv7-a builds (nokia900), but I'm using
>>> gcc-4.6 from meta-oe.
>>
>> this is because gcc 4.6 in meta-oe has fix for it its this patch here
>> http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01477.html
>
> I'm a bit confused by this.  In the first quote above you said that this
> was a coding error and ought to be fixed in qt, but now you seem to be
> saying that it's a compiler bug and should be fixed in gcc.  If it's the
> latter, can we get that patch applied to the oe-core version of gcc?
>
> Either way, I agree, working around this by just frobbing the
> architecture options seems like a bad idea.
>
> p.
>
Khem,

Is there any chance that you would be willing to throw me a patch that 
(Continue reading)

Khem Raj | 1 Jun 20:31 2011
Picon

Re: [OE-core] [PATCH] tcmode-default: disable ARMv7 Optimization for qt4-x11-free

On Wed, Jun 1, 2011 at 10:50 AM, Saul Wold <sgw <at> linux.intel.com> wrote:
> On 06/01/2011 03:46 AM, Phil Blundell wrote:
>>
>> On Tue, 2011-05-31 at 23:21 -0700, Khem Raj wrote:
>>>
>>> On 05/31/2011 11:10 PM, Martin Jansa wrote:
>>>>
>>>> On Tue, May 31, 2011 at 10:57:00PM -0700, Khem Raj wrote:
>>>>>
>>>>> On 05/31/2011 10:26 PM, Saul Wold wrote:
>>>>>>
>>>>>> | ../../include/QtCore/../../src/corelib/arch/qatomic_arm.h:361:35:
>>>>>> error: output number 1 not directly addressable
>>>>>
>>>>> this is a coding error you can fix the source code I guess instead of
>>>>> pessimising the whole package
>>>>
>>>> FWIW: I haven't seen it in my armv7-a builds (nokia900), but I'm using
>>>> gcc-4.6 from meta-oe.
>>>
>>> this is because gcc 4.6 in meta-oe has fix for it its this patch here
>>> http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01477.html
>>
>> I'm a bit confused by this.  In the first quote above you said that this
>> was a coding error and ought to be fixed in qt, but now you seem to be
>> saying that it's a compiler bug and should be fixed in gcc.  If it's the
>> latter, can we get that patch applied to the oe-core version of gcc?
>>
>> Either way, I agree, working around this by just frobbing the
>> architecture options seems like a bad idea.
(Continue reading)


Gmane