Skip to contentSkip to conversation

Do not generate NEON code for qt-4.6.2 embedded

PATCH In review Valentin Longchamp 4 participants 6 messages Mar 12, 2010 – Mar 16, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Do not generate NEON code for qt-4.6.2 embedded

http://bugreports.qt.nokia.com/browse/QTBUG-8749
Neon code is generated for armv6 processor, where it should be armv7 only. This results in illegal instructions with some of the qt4 libraries.

The current solution is not optimal, I just needed a quick fix for my arch and I don't have the needed knowledge in OE to fix it cleanly, but I wanted to point this issue out.

---
 recipes/qt4/qt4-embedded_4.6.2.bb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
recipes/qt4/qt4-embedded_4.6.2.bb +2 -0
index 94ecd01..2d59609 100644
@@ -2,5 +2,7 @@ require qt4-embedded.inc
 
 PR = "${INC_PR}.0"
 
+QT_CONFIG_FLAGS_append_armv6 = " -no-neon "
+
 require qt-${PV}.inc
 
Signature · 1 line
1.6.3.3
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 7 lines · Valentin Longchamp

http://bugreports.qt.nokia.com/browse/QTBUG-8749
Neon code is generated for armv6 processor, where it should be armv7 only. This results in illegal instructions with some of the qt4 libraries.

The current solution is not optimal, I just needed a quick fix for my arch and I don't have the needed knowledge in OE to fix it cleanly, but I wanted to point this issue out.

Thanks for looking into this, could you please redo this patch with a PR increase so distributions get the update automatically?

regards,

Koen

Quoted 9 lines
---
 recipes/qt4/qt4-embedded_4.6.2.bb |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
recipes/qt4/qt4-embedded_4.6.2.bb +0 -0
index 94ecd01..2d59609 100644

recipes/qt4/qt4-embedded_4.6.2.bb require qt4-embedded.inc · line 8

Quoted 7 lines
recipes/qt4/qt4-embedded_4.6.2.bb +2 -0
@@ -2,5 +2,7 @@ require qt4-embedded.inc
 
 PR = "${INC_PR}.0"
 
+QT_CONFIG_FLAGS_append_armv6 = " -no-neon "
+
 require qt-${PV}.inc
 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLmm9ZMkyGM64RGpERAnhkAJ4juTtN1P8CFWLeAjgQ0Mweon/WGQCgrhvN vxsU6USZPP5CTP6ka7TTXDQ=
=Nf3F
-----END PGP SIGNATURE-----

#2 lore raw

PATCH 1/1 Do not generate NEON code for qt-4.6.2 embedded on armv6

http://bugreports.qt.nokia.com/browse/QTBUG-8749
Neon code is generated for armv6 processor, where it should be armv7 only. This results in illegal instructions with some of the qt4 libraries.

The current solution is not optimal, I just needed a quick fix for my arch and I don't have the needed knowledge in OE to fix it cleanly, but I wanted to point this issue out. But at least other arch (armv5 and armv4) should have the same problem and receive the same fix.

---
 recipes/qt4/qt4-embedded_4.6.2.bb |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
recipes/qt4/qt4-embedded_4.6.2.bb +3 -1
index 94ecd01..8583752 100644
@@ -1,6 +1,8 @@
 require qt4-embedded.inc
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
+
+QT_CONFIG_FLAGS_append_armv6 = " -no-neon "
 
 require qt-${PV}.inc
 
Signature · 1 line
1.6.3.3
Applied
#3 lore raw

Re: [PATCH] Do not generate NEON code for qt-4.6.2 embedded on armv6

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

thanks, applied

Quoted 17 lines · Valentin Longchamp

http://bugreports.qt.nokia.com/browse/QTBUG-8749
Neon code is generated for armv6 processor, where it should be armv7 only. This results in illegal instructions with some of the qt4 libraries.

The current solution is not optimal, I just needed a quick fix for my arch and I don't have the needed knowledge in OE to fix it cleanly, but I wanted to point this issue out. But at least other arch (armv5 and armv4) should have the same problem and receive the same fix.

---
 recipes/qt4/qt4-embedded_4.6.2.bb |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
recipes/qt4/qt4-embedded_4.6.2.bb +0 -0
index 94ecd01..8583752 100644

recipes/qt4/qt4-embedded_4.6.2.bb line 8

Quoted 9 lines
recipes/qt4/qt4-embedded_4.6.2.bb +3 -1
@@ -1,6 +1,8 @@
 require qt4-embedded.inc
 
-PR = "${INC_PR}.0"
+PR = "${INC_PR}.1"
+
+QT_CONFIG_FLAGS_append_armv6 = " -no-neon "
 
 require qt-${PV}.inc
 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLnmscMkyGM64RGpERAickAJ9VD453KacoX2EDcQWeFgZG2vDPIgCfWjL6 oYTOJp08SjqM/PFpJBWkplM=
=ge+P
-----END PGP SIGNATURE-----

#4 lore raw

Re: [PATCH] Do not generate NEON code for qt-4.6.2 embedded on armv6

In reply to Valentin Longchamp
Quoted 8 lines · On Monday 15 March 2010 18:04:04 Valentin Longchamp wrote:

http://bugreports.qt.nokia.com/browse/QTBUG-8749
Neon code is generated for armv6 processor, where it should be armv7 only. This results in illegal instructions with some of the qt4 libraries.

The current solution is not optimal, I just needed a quick fix for my arch and I don't have the needed knowledge in OE to fix it cleanly, but I wanted to point this issue out. But at least other arch (armv5 and armv4) should have the same problem and receive the same fix.

Well... then maybe this should be fixed differently then?

#5 lore raw

Re: [PATCH] Do not generate NEON code for qt-4.6.2 embedded on armv6

Quoted 11 lines · Holger Hans Peter Freyther
Quoted 8 lines · On Monday 15 March 2010 18:04:04 Valentin Longchamp wrote:

http://bugreports.qt.nokia.com/browse/QTBUG-8749
Neon code is generated for armv6 processor, where it should be armv7 only. This results in illegal instructions with some of the qt4 libraries.

The current solution is not optimal, I just needed a quick fix for my arch and I don't have the needed knowledge in OE to fix it cleanly, but I wanted to point this issue out. But at least other arch (armv5 and armv4) should have the same problem and receive the same fix.

Well... then maybe this should be fixed differently then?

probably disable neon by default in qt build system and only enable it for architectures that support
neon will make it work better with default option set for older arms. One could also ask compiler
at build time but then it would be autoconf like :)

-Khem

Quoted 7 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel