Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
4.6.0
-
None
Description
When attempting to cross compile Qt Embedded for ARM using GCC 3.4, the build fails with the following error:
../../include/QtCore/../../../Qt4.6.0Source/qt-everywhere-commercial-src-4.6.0/src/corelib/tools/qhash.h: In member function `typename QHash<Key, T>::Node** QHash<Key, T>::findNode(const Key&, uint*) const [with Key = QFontEngine::FaceId, T = QFreetypeFace*]':
../../include/QtCore/../../../Qt4.6.0Source/qt-everywhere-commercial-src-4.6.0/src/corelib/tools/qhash.h:616: instantiated from `const T QHash<Key, T>::value(const Key&, const T&) const [with Key = QFontEngine::FaceId, T = QFreetypeFace*]'
/home/Qt_lib_optimization/Qt4.6.0Source/qt-everywhere-commercial-src-4.6.0/src/gui/text/qfontengine_ft.cpp:207: instantiated from here
../../include/QtCore/../../../Qt4.6.0Source/qt-everywhere-commercial-src-4.6.0/src/corelib/tools/qhash.h:883: warning: dereferencing type-punned pointer will break strict-aliasing rules
:713: Error: register or shift expression expected – `orr r3,r2,lsl#16'
{standard input}:724: Error: register or shift expression expected – `orr r2,r3,lsl#16' {standard input}:7234: Error: register or shift expression expected – `orr r3,r1,lsl#16'
{standard input}:7245: Error: register or shift expression expected – `orr r1,r0,lsl#16'make[1]: *** [.obj/release-static-emb-arm/qfontengine_ft.o] Error 1
make[1]: Leaving directory `/home/Qt_lib_optimization/Qt4.6.0Compile/src/gui'
make: *** [sub-gui-make_default-ordered] Error 2
#
Following levels of optimization have been tried as well:
(1) QMAKE_CFLAGS_RELEASE += -O1
/home/Qt_lib_optimization/Qt4.6.0Source/qt-everywhere-commercial-src-4.6.0/src/gui/text/qfontengine_ft.cpp:696:
warning: converting to `int' from `qreal'{standard input}
: Assembler messages:
{standard input}:1455: Error: register or shift expression expected– `orr r3,r2,lsl#16'{standard input}
:1466: Error: register or shift expression expected
– `orr r3,r2,lsl#16'
– `orr r2,r0,lsl#16'{standard input}
:3046: Error: register or shift expression expected
– `orr r2,r0,lsl#16'
make[1]: *** [.obj/release-static-emb-arm/qfontengine_ft.o] Error 1
make[1]: Leaving directory
`/home/Qt_lib_optimization/Qt4.6.0Compile/src/gui'
(2) QMAKE_CFLAGS_RELEASE += -O0
{standard input}: Assembler messages:{standard input}:2894: Error: register or shift expression expected
– `orr r3,r0,lsl#16'
/home/Qt_lib_optimization/Qt4.6.0Source/qt-everywhere-commercial-src-4.6.0/src/gui/text/qfontengine_ft.cpp:
In member function `bool QFontEngineFT::init(QFontEngine::FaceId, bool,
QFontEngineFT::GlyphFormat)':
/home/Qt_lib_optimization/Qt4.6.0Source/qt-everywhere-commercial-src-4.6.0/src/gui/text/qfontengine_ft.cpp:696:
warning: converting to `int' from `qreal'
make[1]: *** [.obj/release-static-emb-arm/qfontengine_ft.o] Error 1
make[1]: Leaving directory
`/home/Qt_lib_optimization/Qt4.6.0Compile/src/gui'
make: *** [sub-gui-make_default-ordered] Error 2
- (3) commented the #QMAKE_CFLAGS_RELEASE += *
:2894: Error: register or shift expression expected
– `orr r3,r0,lsl#16'
/home/Qt_lib_optimization/Qt4.6.0Source/qt-everywhere-commercial-src-4.6.0/src/gui/text/qfontengine_ft.cpp:
In member function `bool QFontEngineFT::init(QFontEngine::FaceId, bool,
QFontEngineFT::GlyphFormat)':
/home/Qt_lib_optimization/Qt4.6.0Source/qt-everywhere-commercial-src-4.6.0/src/gui/text/qfontengine_ft.cpp:696:
warning: converting to `int' from `qreal'
make[1]: *** [.obj/release-static-emb-arm/qfontengine_ft.o] Error 1
make[1]: Leaving directory
`/home/Qt_lib_optimization/Qt4.6.0Compile/src/gui'
make: *** [sub-gui-make_default-ordered] Error 2