[Buildroot] [PATCH] qt: disable precompiled headers to workaround compilation failure

Luca Ceresoli luca at lucaceresoli.net
Mon Feb 18 19:39:32 UTC 2013

Precompiled header implementation is buggy in current Qt as described at

The only known workaround is currently to add -no-pch to configure.

Fixes build failure terminating with error
  compiling ../3rdparty/pixman/pixman-arm-neon-asm.S
  cc1: fatal error: .pch/release-shared-emb-arm/QtGui: No such file or directory
  compilation terminated.
such as:

Signed-off-by: Luca Ceresoli <luca at lucaceresoli.net>
 package/qt/qt.mk |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/qt/qt.mk b/package/qt/qt.mk
index ee1a88b..9f50f91 100644
--- a/package/qt/qt.mk
+++ b/package/qt/qt.mk
@@ -416,10 +416,10 @@ else
 QT_CONFIGURE_OPTS += -no-declarative
-# ccache and precompiled headers don't play well together
-ifeq ($(BR2_CCACHE),y)
+# -no-pch is needed to workaround the issue described at
+# http://comments.gmane.org/gmane.comp.lib.qt.devel/5933.
+# In addition, ccache and precompiled headers don't play well together
 # x86x86fix
 # Workaround Qt Embedded bug when crosscompiling for x86 under x86 with linux

More information about the buildroot mailing list