1 |
Hi list, |
2 |
|
3 |
While trying to build x11-libs/qt port I got following error: |
4 |
|
5 |
---->8---->8---- |
6 |
g++ -c -O2 -pipe -mtune=nocona -march=nocona -ggdb -fno-stack-protector -I/usr/include/mysql -I/usr/include/postgresql/pgsql -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -pipe -mtune=nocona -march=nocona -ggdb -fno-stack-protector -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_44_API_QSQLQUERY_FINISH -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_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include/QtCore -I../../include -I../../include/QtGui -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/include -I.uic/release-shared -o .obj/release-shared/qdatetimeedit.o widgets/qdatetimeedit.cpp |
7 |
../../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': |
8 |
../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:118: error: inconsistent operand constraints in an `asm' |
9 |
../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:118: error: inconsistent operand constraints in an `asm' |
10 |
../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:118: error: inconsistent operand constraints in an `asm' |
11 |
../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:118: error: inconsistent operand constraints in an `asm' |
12 |
make[1]: *** [.obj/release-shared/qstylesheetstyle.o] Error 1 |
13 |
make[1]: *** Waiting for unfinished jobs.... |
14 |
make[1]: Leaving directory `/var/tmp/portage/x11-libs/qt-4.3.3/work/qt-x11-opensource-src-4.3.3/src/gui' |
15 |
make: *** [sub-gui-all-ordered] Error 2 |
16 |
----8<----8<---- |
17 |
|
18 |
Following is an excerpt from "qatomic_x86_64.h" : |
19 |
|
20 |
----8<----[ qatomic_x86_64.h ]---->8---- |
21 |
113 inline void *q_atomic_set_ptr(volatile void *ptr, void *newval) |
22 |
114 { |
23 |
115 asm volatile("xchgq %0,%1" |
24 |
116 : "=r" (newval), "+m" (*reinterpret_cast<volatile long *>(ptr)) |
25 |
117 : "0" (newval) |
26 |
118 : "memory"); |
27 |
119 return newval; |
28 |
120 } |
29 |
----8<----[ qatomic_x86_64.h ]---->8---- |
30 |
|
31 |
Although I'm not sure, but is it due to running 3.4 series compiler, hmm...? |
32 |
|
33 |
I've uploaded the complete build log there: |
34 |
http://wahjava.googlepages.com/build.qt4.log.gz (gzipped log, 27740 |
35 |
bytes) |
36 |
|
37 |
If any other information is desired, please mention. |
38 |
|
39 |
TIA |
40 |
-- |
41 |
Ashish Shukla आशीष शुक्ल http://wahjava.wordpress.com/ |
42 |
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- -- |