Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / qt / 2011-10

Problem building qt4pas-V2.4_Qt4.5.3

7 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Laurent Rathle

Hello,

I'm tring to build qt4pas-V2.4_Qt4.5.3 on a Macbook Pro / Mac Os 10.7.2 / Xcode 4.1 / gcc 4.2. I've launched qmake which resulted in a Makefile, then make, and the build fails with this error message :

make
g++ -c -pipe -mstackrealign -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -w -fPIC -DDARWIN -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../../QtSDK/Desktop/Qt/473/gcc/mkspecs/default -I. -I../../../QtSDK/Desktop/Qt/473/gcc/lib/QtCore.framework/Versions/4/Headers -I../../../QtSDK/Desktop/Qt/473/gcc/include/QtCore -I../../../QtSDK/Desktop/Qt/473/gcc/lib/QtNetwork.framework/Versions/4/Headers -I../../../QtSDK/Desktop/Qt/473/gcc/include/QtNetwork -I../../../QtSDK/Desktop/Qt/473/gcc/lib/QtGui.framework/Versions/4/Headers -I../../../QtSDK/Desktop/Qt/473/gcc/include/QtGui -I../../../QtSDK/Desktop/Qt/473/gcc/lib/QtWebKit.framework/Versions/4/Headers -I../../../QtSDK/Desktop/Qt/473/gcc/include/QtWebKit -I../../../QtSDK/Desktop/Qt/473/gcc/include -Itmp -F/Users/laurent/QtSDK/Desktop/Qt/473/gcc/lib -o tmp/qt4pas.o src/qt4pas.cpp src/qt4pas.cpp:1: error: -mstackrealign not supported in the 64bit mode make: *** [tmp/qt4pas.o] Error 1

Any one can help me, please ? The goal is to use Lazarus 0.9.30.2RC1 with qt widgets.

Thank you

Matthias Klumpp
to Laurent Rathle

Just a quick-and-dirty fix so you can continue: Remove the "-mstackrealign" lines in qt4pas.pro, so the GCC parameter is not added.
But for more detailed info and a better fix, you should ask Jan :) (Maybe there is just an ifelse for MacOS missing)

2011/10/7 Laurent Rathle :

Show quoted text 18 lines
Hello, I'm tring to build qt4pas-V2.4_Qt4.5.3 on a Macbook Pro / Mac Os 10.7.2 / Xcode 4.1 / gcc 4.2. I've launched qmake which resulted in a Makefile, then make, and the build fails with this error message : make g++ -c -pipe -mstackrealign -O2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -w -fPIC -DDARWIN -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../../../QtSDK/Desktop/Qt/473/gcc/mkspecs/default -I. -I../../../QtSDK/Desktop/Qt/473/gcc/lib/QtCore.framework/Versions/4/Headers -I../../../QtSDK/Desktop/Qt/473/gcc/include/QtCore -I../../../QtSDK/Desktop/Qt/473/gcc/lib/QtNetwork.framework/Versions/4/Headers -I../../../QtSDK/Desktop/Qt/473/gcc/include/QtNetwork -I../../../QtSDK/Desktop/Qt/473/gcc/lib/QtGui.framework/Versions/4/Headers -I../../../QtSDK/Desktop/Qt/473/gcc/include/QtGui -I../../../QtSDK/Desktop/Qt/473/gcc/lib/QtWebKit.framework/Versions/4/Headers -I../../../QtSDK/Desktop/Qt/473/gcc/include/QtWebKit -I../../../QtSDK/Desktop/Qt/473/gcc/include -Itmp -F/Users/laurent/QtSDK/Desktop/Qt/473/gcc/lib -o tmp/qt4pas.o src/qt4pas.cpp src/qt4pas.cpp:1: error: -mstackrealign not supported in the 64bit mode make: *** [tmp/qt4pas.o] Error 1 Any one can help me, please ? The goal is to use Lazarus 0.9.30.2RC1 with qt widgets. Thank you _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt
Den Jean
to Laurent Rathle: I'm tring to build qt4pas-V2.4_Qt4.5.3 on a Macbook Pro / Mac Os 10.7.2 / Xcode 4.1 / gcc…
Laurent Rathle wrote
src/qt4pas.cpp:1: error: -mstackrealign not supported in the 64bit mode

If i recall well, -mstackrealign was supported in 64bit mode Linux, apparently not on OsX. Just remove that option in Qt4Pas.pro

so remove or comment out the following line in Qt4Pas.pro QMAKE_CXXFLAGS += -mstackrealign

and rerun
QMAKESPEC=macx-g++ qmake
make
...

I can only hope Qt 4.7.3 on OsX 64bit does not require -mstackrealign :-)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111008/df52bf3d/attachment.html>

zeljko
to Den Jean
Den Jean wrote 15 lines
On Friday 07 October 2011 23:51:34 Laurent Rathle wrote: > src/qt4pas.cpp:1: error: -mstackrealign not supported in the 64bit mode If i recall well, -mstackrealign was supported in 64bit mode Linux, apparently not on OsX. Just remove that option in Qt4Pas.pro so remove or comment out the following line in Qt4Pas.pro QMAKE_CXXFLAGS += -mstackrealign and rerun QMAKESPEC=macx-g++ qmake make ... I can only hope Qt 4.7.3 on OsX 64bit does not require -mstackrealign :-)

hm..I think he'll run into crashes (with all TQtCustomControls) without - mstackrealign.

zeljko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111008/a5aa5b7e/attachment.html>

Den Jean
to zeljko
zeljko wrote
hm..I think he'll run into crashes (with all TQtCustomControls) without -mstackrealign.

If the compiler does not support it and Qt is compiled with the same compilr ... there cannot be a problem. There is only a problem if Qt uses mstackrealign and the client program that uses the Qt dll does not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111008/4645f926/attachment.html>

Laurent Rathle
to Den Jean: If i recall well, -mstackrealign was supported in 64bit mode Linux, apparently not on…

Build went fine with your instructions. Thank you.

Le 8 oct. 2011 ? 09:05, Den Jean a ?crit :

Show quoted text 21 lines
On Friday 07 October 2011 23:51:34 Laurent Rathle wrote: > src/qt4pas.cpp:1: error: -mstackrealign not supported in the 64bit mode If i recall well, -mstackrealign was supported in 64bit mode Linux, apparently not on OsX. Just remove that option in Qt4Pas.pro so remove or comment out the following line in Qt4Pas.pro QMAKE_CXXFLAGS += -mstackrealign and rerun QMAKESPEC=macx-g++ qmake make ... I can only hope Qt 4.7.3 on OsX 64bit does not require -mstackrealign :-) _______________________________________________ Qt mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/qt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/qt/attachments/20111009/d39cdfc3/attachment.html>

Den Jean
to Matthias Klumpp: Just a quick-and-dirty fix so you can continue: Remove the "-mstackrealign" lines in…
Matthias Klumpp wrote
But for more detailed info and a better fix, you should ask Jan :) (Maybe there is just an ifelse for MacOS missing

Whether -mstackrealign is required (to avoid a certain crash) depends on whether Qt is compiled with sse. However not every version of gcc supports this option. Furthermore this option is x86 cpu specific (not arm). So there already is some *if then else* in the qmake project file to deal with this. Only the platforms other than OsX also require this option on 64 bit, so I thought OsX was not different (i do not have a 64 bit Osx).

Can someone confirm me that on all 64 bit OsX platforms and with all or with which Xcode version, -mstackrealign is available or not.

regards,

Den Jean