Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, December 2007
QT 4.3.3 open source compile failed


Message 1 in thread

Hi Everyone,
I use QT 4.2.3 for my GUI toolkit for long time. Now I would like
to move up to latest 4.3.3.

After I download the QT 4.3.3 open source X11 source code, I configure
as :

./configure --prefix=/home/pagan_chou/QT/qt-x11-opensource-src-4.3.3

Then I gmake. But I got compile error :

g++ -c -include
.pch/release-shared/QtGui -m64 -pipe -g -pthread -I/usr/include/glib-2.0 -I/
usr/lib64/glib-2.0/include -O2 -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_
BUILD_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -
DQT_MOC_COMPAT -DQT_RASTER_IMAGEENGINE -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE
_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_
STYLE_WINDOWSXP -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFI
LE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++-64 -I. -I../../inc
lude/QtCore -I../../include/QtCore -I../../include -I../../include/QtGui -I/
usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-sh
ared -I/usr/X11R6/include -I.uic/release-shared -o
.obj/release-shared/qstylesheetstyle.o styles/qstylesheetstyle.cpp
../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h: In member
function `virtual QRect
QStyleSheetStyle::subControlRect(QStyle::ComplexControl, const
QStyleOptionComplex*, QStyle::SubControl, const QWidget*) const':
../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:120: error:
inconsistent operand constraints in an `asm'
../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:120: error:
inconsistent operand constraints in an `asm'
../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:120: error:
inconsistent operand constraints in an `asm'
../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:120: error:
inconsistent operand constraints in an `asm'
gmake[1]: *** [.obj/release-shared/qstylesheetstyle.o] Error 1
gmake[1]: Leaving directory
`/home/pagan_chou/QT/qt-x11-opensource-src-4.3.1/src/gui'
gmake: *** [sub-gui-make_default-ordered] Error 2

But I compile QT 4.2.3 under same environment successfully.

My Linux machine is :

Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
Kernel 2.6.9-42.ELsmp on an x86_64

My C++ compiler :

Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
Configured with:
../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
 --enable-shared --enable-threads=posix --disable-checking --with-system-zli
b --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk
 --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)

I have searched the google, and it seems somebody said about C++ compiler
broken might
cause such problem. But I don't understand why I can compile 4.2.3
successfully when my C++
compiler broken ?

Could anybody help me out ?

Regards,
Pagan


--
 [ signature omitted ] 

Message 2 in thread

Hi,

This is a known issue.
See this task tracker entry : 
http://trolltech.com/developer/task-tracker/index_html?method=entry&id=161994
This issue happens only when you build Qt in release mode with GCC 3.4.6 
64 bits on Linux 64 bits.
You have 2 solutions :
- you can build Qt in debug mode, you will not get any error
- you can use the workaround described in the bug entry to be able to 
build in release mode, but you will loose some optimization flags.

Regards,

Michael

Pagan Chou a écrit :
> Hi Everyone,
> I use QT 4.2.3 for my GUI toolkit for long time. Now I would like
> to move up to latest 4.3.3.
>
> After I download the QT 4.3.3 open source X11 source code, I configure
> as :
>
> ./configure --prefix=/home/pagan_chou/QT/qt-x11-opensource-src-4.3.3
>
> Then I gmake. But I got compile error :
>
> g++ -c -include
> .pch/release-shared/QtGui -m64 -pipe -g -pthread -I/usr/include/glib-2.0 -I/
> usr/lib64/glib-2.0/include -O2 -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_
> BUILD_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -
> DQT_MOC_COMPAT -DQT_RASTER_IMAGEENGINE -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE
> _MMXEXT -DQT_HAVE_SSE2 -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_
> STYLE_WINDOWSXP -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFI
> LE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++-64 -I. -I../../inc
> lude/QtCore -I../../include/QtCore -I../../include -I../../include/QtGui -I/
> usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-sh
> ared -I/usr/X11R6/include -I.uic/release-shared -o
> .obj/release-shared/qstylesheetstyle.o styles/qstylesheetstyle.cpp
> ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h: In member
> function `virtual QRect
> QStyleSheetStyle::subControlRect(QStyle::ComplexControl, const
> QStyleOptionComplex*, QStyle::SubControl, const QWidget*) const':
> ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:120: error:
> inconsistent operand constraints in an `asm'
> ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:120: error:
> inconsistent operand constraints in an `asm'
> ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:120: error:
> inconsistent operand constraints in an `asm'
> ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:120: error:
> inconsistent operand constraints in an `asm'
> gmake[1]: *** [.obj/release-shared/qstylesheetstyle.o] Error 1
> gmake[1]: Leaving directory
> `/home/pagan_chou/QT/qt-x11-opensource-src-4.3.1/src/gui'
> gmake: *** [sub-gui-make_default-ordered] Error 2
>
> But I compile QT 4.2.3 under same environment successfully.
>
> My Linux machine is :
>
> Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
> Kernel 2.6.9-42.ELsmp on an x86_64
>
> My C++ compiler :
>
> Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
> Configured with:
> ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
>  --enable-shared --enable-threads=posix --disable-checking --with-system-zli
> b --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk
>  --host=x86_64-redhat-linux
> Thread model: posix
> gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)
>
> I have searched the google, and it seems somebody said about C++ compiler
> broken might
> cause such problem. But I don't understand why I can compile 4.2.3
> successfully when my C++
> compiler broken ?
>
> Could anybody help me out ?
>
> Regards,
> Pagan
>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
>   

--
 [ signature omitted ] 

Message 3 in thread

<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Dec 19, 2007, at 3:25 AM, Michael Palomas wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-style-span" style="-webkit-text-stroke-width: -1; ">This is a known issue.</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">See this task tracker entry : <a href="http://trolltech.com/developer/task-tracker/index_html?method=entry&amp;id=161994";>http://trolltech.com/developer/task-tracker/index_html?method=entry&amp;id=161994</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This issue happens only when you build Qt in release mode with GCC 3.4.6 64 bits on Linux 64 bits.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">You have 2 solutions :</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">- you can build Qt in debug mode, you will not get any error</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">- you can use the workaround described in the bug entry to be able to build in release mode, but you will loose some optimization flags.</div></blockquote><br></div><div>The following will patch the src/gui/Makefile so that qstylesheetstyle.cpp is compiled with -fno-gcse. Worked for me on 4.3.1 and on 4.3.3.</div><div><br class="webkit-block-placeholder"></div><div><div>*** src/gui/Makefile<span class="Apple-tab-span" style="white-space:pre">	</span>2007-10-01 17:07:26.000000000 -0400</div><div>--- src/gui/Makefile<span class="Apple-tab-span" style="white-space:pre">	</span>2007-10-01 17:07:35.000000000 -0400</div><div>***************</div><div>*** 53123,53129 ****</div><div>  <span class="Apple-tab-span" style="white-space:pre">		</span>widgets/qmainwindow.h \</div><div>  <span class="Apple-tab-span" style="white-space:pre">		</span>.moc/release-shared/moc_qstylesheetstyle_p.cpp \</div><div>  <span class="Apple-tab-span" style="white-space:pre">		</span>.pch/release-shared/QtGui.gch/c++</div><div>! <span class="Apple-tab-span" style="white-space:pre">	</span>$(CXX) -c -include .pch/release-shared/QtGui $(CXXFLAGS) -fno-gcse $(INCPATH) -o .obj/release-shared/qstylesheetstyle.o styles/qstylesheetstyle.cpp</div><div>  </div><div>  .obj/release-shared/qcdestyle.o: styles/qcdestyle.cpp styles/qcdestyle.h \</div><div>  <span class="Apple-tab-span" style="white-space:pre">		</span>../../include/QtGui/qmotifstyle.h \</div><div>--- 53123,53129 ----</div><div>  <span class="Apple-tab-span" style="white-space:pre">		</span>widgets/qmainwindow.h \</div><div>  <span class="Apple-tab-span" style="white-space:pre">		</span>.moc/release-shared/moc_qstylesheetstyle_p.cpp \</div><div>  <span class="Apple-tab-span" style="white-space:pre">		</span>.pch/release-shared/QtGui.gch/c++</div><div>! <span class="Apple-tab-span" style="white-space:pre">	</span>$(CXX) -c -include .pch/release-shared/QtGui $(CXXFLAGS) $(INCPATH) -o .obj/release-shared/qstylesheetstyle.o styles/qstylesheetstyle.cpp</div><div>  </div><div>  .obj/release-shared/qcdestyle.o: styles/qcdestyle.cpp styles/qcdestyle.h \</div><div>  <span class="Apple-tab-span" style="white-space:pre">		</span>../../include/QtGui/qmotifstyle.h \</div><div><br class="webkit-block-placeholder"></div></div><div><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Brad</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">-- </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Brad Howes</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Group 42</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">MIT Lincoln Laboratory • 244 Wood St. • Lexington, MA 02173</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Phone: 781.981.5292 • Fax: 781.981.3495 • Secretary: 781.981.7420</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span> </div><span></span></body></html>

Attachment: qt-4.3.1.patch
Description: Binary data

<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span></span></body></html>