Skip to contentSkip to conversation

qt5/qt5base: Fix build on MIPS without DSP support

PATCH New Vicente Olivert Riera 2 participants 2 messages Feb 6, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qt5/qt5base: Fix build on MIPS without DSP support

The qt_memfill32_asm_mips_dsp function is only declared if QT_COMPILER_SUPPORTS_MIPS_DSP is defined, so we can't reference it unless the same macro is defined.

Backporting an upstream patch to fix this issue.

This is the error message:

qt-everywhere-enterprise-src-5.4.0-alpha/qtbase/src/gui/painting/qdrawhelper.cpp:
In function 'void qInitDrawhelperAsm()':
qt-everywhere-enterprise-src-5.4.0-alpha/qtbase/src/gui/painting/qdrawhelper.cpp:6843:
error: 'qt_memfill32_asm_mips_dsp' was not declared in this scope

Upstream commit:

https://qt.gitorious.org/qt/qtbase/commit/2ca323ccd4f25f409eff8fc0c9804099b78c2bde

Fixes:

http://autobuild.buildroot.net/results/254/254cf62bef8bc5d5ffe345d817d16aa9983baa15/

---
 ...cpp-Fix-build-on-mips-without-dsp-support.patch |   47 ++++++++++++++++++++
 1 files changed, 47 insertions(+), 0 deletions(-)
 create mode 100644 package/qt5/qt5base/0005-qdrawhelper.cpp-Fix-build-on-mips-without-dsp-support.patch
package/qt5/qt5base/0005-qdrawhelper.cpp-Fix-build-on-mips-without-dsp-support.patch new file +47 -0
new file mode 100644
index 0000000..ede4d80
@@ -0,0 +1,47 @@
+qdrawhelper.cpp: Fix build on MIPS without DSP support
+
+The qt_memfill32_asm_mips_dsp function is only declared if 
+QT_COMPILER_SUPPORTS_MIPS_DSP is defined, so we can't reference it 
+unless the same macro is defined.
+
+Backporting an upstream patch to fix this issue.
+
+Upstream commit:
+
+  https://qt.gitorious.org/qt/qtbase/commit/2ca323ccd4f25f409eff8fc0c9804099b78c2bde
+
+Signed-off-by: Vicente Olivert Riera <[email protected]>
+
+From 2ca323ccd4f25f409eff8fc0c9804099b78c2bde Mon Sep 17 00:00:00 2001
+From: Eskil Abrahamsen Blomfeldt <[email protected]>
+Date: Tue, 11 Nov 2014 13:11:54 +0100
+Subject: [PATCH] Android: Compile for MIPS
+
+The qt_memfill32_asm_mips_dsp function is only declared if
+QT_COMPILER_SUPPORTS_MIPS_DSP is defined, so we can't reference it
+unless the same macro is defined.
+
+Change-Id: Ib959b4b969b699ca78804394206266469b4ebf64
+Task-number: QTBUG-36017
+Reviewed-by: Paul Olav Tvete <[email protected]>
+Reviewed-by: Thiago Macieira <[email protected]>
+---
+ src/gui/painting/qdrawhelper.cpp |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/gui/painting/qdrawhelper.cpp b/src/gui/painting/qdrawhelper.cpp
+index f2d27a0..6482cc5 100644
+--- a/src/gui/painting/qdrawhelper.cpp
++++ b/src/gui/painting/qdrawhelper.cpp
+@@ -6829,7 +6829,7 @@ void qInitDrawhelperAsm()
+     qt_fetch_radial_gradient = qt_fetch_radial_gradient_neon;
+ #endif
+ 
+-#ifdef Q_PROCESSOR_MIPS_32
++#if defined(Q_PROCESSOR_MIPS_32) && defined(QT_COMPILER_SUPPORTS_MIPS_DSP)
+     qt_memfill32 = qt_memfill32_asm_mips_dsp;
+ #endif // Q_PROCESSOR_MIPS_32
+ 
+-- 
+1.7.1
+
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 qt5/qt5base: Fix build on MIPS without DSP support

Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Vicente" == Vicente Olivert Riera <[email protected]> writes:

The qt_memfill32_asm_mips_dsp function is only declared if QT_COMPILER_SUPPORTS_MIPS_DSP is defined, so we can't reference it unless the same macro is defined.

Backporting an upstream patch to fix this issue.

This is the error message:

qt-everywhere-enterprise-src-5.4.0-alpha/qtbase/src/gui/painting/qdrawhelper.cpp:
In function 'void qInitDrawhelperAsm()':
qt-everywhere-enterprise-src-5.4.0-alpha/qtbase/src/gui/painting/qdrawhelper.cpp:6843:
error: 'qt_memfill32_asm_mips_dsp' was not declared in this scope

Upstream commit:

Quoted 7 lines

https://qt.gitorious.org/qt/qtbase/commit/2ca323ccd4f25f409eff8fc0c9804099b78c2bde

Fixes:

http://autobuild.buildroot.net/results/254/254cf62bef8bc5d5ffe345d817d16aa9983baa15/

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard