Kdevplatform compile error

Robin Atwood robin at binro.org
Sun Feb 27 16:57:57 GMT 2011


On Sunday 27 February 2011, Andreas Pakulat wrote:
> On 26.02.11 12:37:34, Robin Atwood wrote:
> > I am trying to build kdevplatform 1.2.0 against KDE 4.6.0 and get:
> Can you generate the pre-processed output of that file (run make VERBOSE=1,
> copy the compiler invocation and then add -I. Then you'll find the
> preprocessed file in
> interfaces/CMakeFiles/kdevplatforminterfaces.dir/foregroundlock.o). I guess
> your compiler is not able to understand the code to which
> PTHREAD_MUTEX_INITIALIZER expands.

Andreas
Thanks for the advice but it cannot create foregroundlock.o. (?)

kdevplatform-1.2.0_build # /usr/bin/i686-pc-linux-gnu-g++  -
DMAKE_KDEVPLATFORMINTERFACES_LIB -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -
D_BSD_SOURCE -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -
DKDE_DEPRECATED_WARNINGS -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=49 -
DKDE_DEFAULT_DEBUG_AREA=9502  -DQT_NO_DEBUG -DNDEBUG -O2 -march=pentium4 -
fomit-frame-pointer -pipe  -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -
Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-
exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Werror=return-type -
Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-
inlines-hidden -fPIC -I/var/tmp/portage/dev-
util/kdevplatform-1.2.0/work/kdevplatform-1.2.0_build/interfaces -
I/var/tmp/portage/dev-
util/kdevplatform-1.2.0/work/kdevplatform-1.2.0/interfaces -
I/var/tmp/portage/dev-util/kdevplatform-1.2.0/work/kdevplatform-1.2.0 -
I/var/tmp/portage/dev-util/kdevplatform-1.2.0/work/kdevplatform-1.2.0_build -
I/usr/include/KDE -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtXml -
I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtUiTools -
I/usr/include/qt4/QtTest -I/usr/include/qt4/QtSvg -I/usr/include/qt4/QtSql -
I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtScript -
I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork -
I/usr/include/qt4/QtMultimedia -I/usr/include/qt4/QtDesigner -
I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtDBus -
I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -
I/usr/include/qt4/QtCore -I/usr/include/qt4/Qt -
I/usr/share/qt4/mkspecs/default -I/usr/include/qt4   -D_GNU_SOURCE -
D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -std=c++0x -o 
CMakeFiles/kdevplatforminterfaces.dir/foregroundlock.o -I. -c 
/var/tmp/portage/dev-
util/kdevplatform-1.2.0/work/kdevplatform-1.2.0/interfaces/foregroundlock.cpp
Assembler messages:
Fatal error: can't create 
CMakeFiles/kdevplatforminterfaces.dir/foregroundlock.o: No such file or 
directory
/var/tmp/portage/dev-
util/kdevplatform-1.2.0/work/kdevplatform-1.2.0/interfaces/foregroundlock.cpp: 
In constructor ‘SimplePThreadMutex::SimplePThreadMutex()’:
/var/tmp/portage/dev-
util/kdevplatform-1.2.0/work/kdevplatform-1.2.0/interfaces/foregroundlock.cpp:38: 
error: expected primary-expression before ‘{’ token
/var/tmp/portage/dev-
util/kdevplatform-1.2.0/work/kdevplatform-1.2.0/interfaces/foregroundlock.cpp:38: 
error: expected `;' before ‘{’ token
/var/tmp/portage/dev-
util/kdevplatform-1.2.0/work/kdevplatform-1.2.0/interfaces/foregroundlock.cpp:41: 
error: expected `}' at end of input
/var/tmp/portage/dev-
util/kdevplatform-1.2.0/work/kdevplatform-1.2.0/interfaces/foregroundlock.cpp: 
In member function ‘void SimplePThreadMutex::lock()’:
/var/tmp/portage/dev-
util/kdevplatform-1.2.0/work/kdevplatform-1.2.0/interfaces/foregroundlock.cpp:46: 
warning: unused variable ‘result’
/var/tmp/portage/dev-
util/kdevplatform-1.2.0/work/kdevplatform-1.2.0/interfaces/foregroundlock.cpp: 
In member function ‘void SimplePThreadMutex::unlock()’:
/var/tmp/portage/dev-
util/kdevplatform-1.2.0/work/kdevplatform-1.2.0/interfaces/foregroundlock.cpp:50: 
warning: unused variable ‘result’

Cheers
-Robin
-- 
----------------------------------------------------------------------
Robin Atwood.

"Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst"
         from "Mandalay" by Rudyard Kipling
----------------------------------------------------------------------








-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20110227/7a49cd6a/attachment.html>


More information about the KDevelop mailing list