NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: qt4-libs sparc64 compiling stop.



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Oct 16, 2009, at 7:20 PM, Caloro Maurizio wrote:

i need to Compile on me Blade 100 "qt4-libs" but it breaking in following folder. "Qt4-libs" are compiling from actual pkgsrc

/usr/pkgsrc/x11/qt4-libs/work/qt-x11-opensource-src-/4.5.2/src/ 3rdparty/webkit/WebCore


NetBSD blade. 5.0 NetBSD 5.0 (GENERIC) #0: Mon Apr 27 08:13:38 UTC 2009 builds%b4.netbsd.org@localhost:/home/builds/ab/netbsd-5-0-RELEASE/ sparc64/200904260229Z-obj/home/builds/ab/netbsd-5-0-RELEASE/src/sys/ arch/sparc64/compile/GENERIC sparc64

blade# make
libtool --silent --mode=compile c++ -c -O2 -I/usr/pkg/include -I/usr/ X11R7/include -I/usr/include -I/usr/X11R7/include/freetype2 -I/usr/ pkg/include -I/usr/X11R7/include -I/usr/include -I/usr/X11R7/include/ freetype2 -fno-exceptions -Wreturn-type -fno-strict-aliasing -I/usr/ X11R7/include -D_REENTRANT -fPIC -DQT_SHARED -DBUILDING_QT__=1 - DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII - DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 - DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 - DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 - DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 - DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 - DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=0 - DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 - DWTF_CHANGES=1 -DBUILDING_QT__ -DXP_UNIX -DSQLITE_CORE - DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_OMIT_COMPLETE -DQT_NO_DEBUG - DQT_G UI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE - D_LARGEFILE_SOURCE -I../../../../mkspecs/netbsd-g++ -I. - I../../../../include/QtCore -I../../../../include/QtNetwork - I../../../../include/QtGui -I../../../../include -Istorage -I../ WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/release-shared - I. -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../ JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../ JavaScriptCore/debugger -I../JavaScriptCore/parser -I../ JavaScriptCore/runtime -I/usr/pkgsrc/x11/qt4-libs/work/qt-x11- opensource-src-4.5.2/src/3rdparty/webkit/WebCore/../JavaScriptCore/ bindings -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../ JavaScriptCore/wtf -Itmp -I../JavaScriptCore -I../JavaScriptCore/ parser -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../ JavaScriptCore/wtf/unicode -I../JavaScriptCore/interpreter -I../ JavaScriptCore/jit -I../JavaScriptCore/profiler -I../JavaScriptCore/wrec -I../JavaScriptCore/API -I../../webkit -I../ JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/bytecode -I../ JavaScriptCore/assembler -I../JavaScriptCore/pcre -I/usr/pkgsrc/x11/ qt4-libs/work/qt-x11-opensource-src-4.5.2/src/3rdparty/webkit/ WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/qt -Iplatform/ network/qt -Iplatform/graphics/filters -Iplatform/graphics/ transforms -Iplatform/graphics/qt -Isvg/graphics/qt -Iloader -Ipage/ qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -Ibridge/qt -I. - IForwardingHeaders -I../../webkit -Iplatform -Iplatform/animation - Iplatform/network -Iplatform/graphics -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iplatform/sql -Iplatform/text -Iloader - Iloader/appcache -Iloader/archive -Iloader/icon -Icss -Idom -Ipage - Ipage/animation -Ibridge -Iediting -Irendering -Irendering/style - Ihistory -Iinspector -Ixml -Ihtml -Iwml -Ibindings/js -Isvg - Iplatform/image-decoders -Iplugins -Ibridge -Ibridge/c -Ibridge/qt -Ig enerated -I../../sqlite -I/usr/X11R7/include -I.moc/release-shared - I/usr/pkg/include -o .obj/release-shared/HashTable.lo ../ JavaScriptCore/wtf/HashTable.cpp ../JavaScriptCore/wtf/Threading.h: In function 'void WTF::atomicIncrement(volatile int*)': ../JavaScriptCore/wtf/Threading.h:199: error: cannot convert 'volatile int*' to 'volatile _Atomic_word*' for argument '1' to 'void __gnu_cxx::__atomic_add(volatile _Atomic_word*, int)' ../JavaScriptCore/wtf/Threading.h: In function 'int WTF::atomicDecrement(volatile int*)': ../JavaScriptCore/wtf/Threading.h:200: error: cannot convert 'volatile int*' to 'volatile _Atomic_word*' for argument '1' to '_Atomic_word __gnu_cxx::__exchange_and_add(volatile _Atomic_word*, int)'
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/x11/qt4-libs/work/qt-x11-opensource- src-4.5.2/src/3rdparty/webkit/WebCore

That's trivial to fix - look at the code in JavaScriptCore/wtf/ Threading.h and change the class which encapsulates the _atomic_* calls to use _Atomic_word instead of int. But, if what you're trying to build KDE4 you will run into something much more annoying later on - - automoc4 will fail to find some includes which aren't installed anywhere, and that's not sparc64-specific either, I've seen it on macppc and i386 too. Didn't figure out how to fix that yet.

have fun
Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBStkTpMpnzkX8Yg2nAQKtRwgAlu4v/ODYVPlo+Lwj2IeChfbM9MlkVXJN
sLIrM7Gl3bzNbJQhjXhcxMumFIO3XqIDhHH/7KRK8k/qK4+FwHaxyKkRsFi97JG5
rgIdhjMfqaTYxksPcmm1uDrtQsqtOtAdFWhr7HTmfz4bTC5j98lZ8F1fcR5NfMZm
dwqG5yM1t9vE4yzID96ICzbSMeBLooX8a6wvmR8Wrk5PL0qfhAWgXvjWetNWjXSB
YabQL2/T/H3caugN4ZmwZxNbEo9rQyzARQq6l03G8uvpFz4mXk4FMn/JMc9Tw2YX
TXUIB0FJhbOiF52ab4ooDhtNgiEmtRSP6/BEVOLJtqMYZ+OfOKOljA==
=ga2L
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index | Old Index