moc: too many input files
thorsten at staerk.de
thorsten at staerk.de
Fri Mar 24 11:52:57 CET 2006
Dear buildsystem,
I often get an unsermake error that I can work around. The error is:
kde-devel at scorpio:~/kdelibs4_snapshot/kdeui> unsermake
creating ../kdeui/kshortcutdialog_simple.moc
moc: Too many input files specified
Usage: moc [options] <header-file>
-o<file> Write output to file rather than stdout
-I<dir> Add dir to the include path for header files
-E Preprocess only; do not generate meta object code
-D<macro>[=<def>] Define macro, with optional definition
-U<macro> Undefine macro
-i Do not generate an #include statement
-p<path> Path prefix for included file
-f[<file>] Force #include, optional file name
-nw Do not display warnings
-v Display version of moc
Error creating ../kdeui/kshortcutdialog_simple.moc. Exit status 1.
OK, so I look what unsermake wants to do:
kde-devel at scorpio:~/kdelibs4_snapshot/kdeui> unsermake -n | head
echo 'creating ../kdeui/kshortcutdialog_simple.moc'
/home/kde-devel/qt-unstable/bin/moc -DQT_THREAD_SUPPORT -D_REENTRANT
-I/home/kde-devel/kdelibs4_snapshot/kdefx
-I/home/kde-devel/kdelibs4_snapshot/interfaces
-I/home/kde-devel/kdelibs4_snapshot/dcop
-I/home/kde-devel/kdelibs4_snapshot/libltdl
-I/home/kde-devel/kdelibs4_snapshot/kdefx -I../kdecore
-I/home/kde-devel/kdelibs4_snapshot/kdecore
-I/home/kde-devel/kdelibs4_snapshot/kdeui
-I/home/kde-devel/kdelibs4_snapshot/kio
-I/home/kde-devel/kdelibs4_snapshot/kio/kio
-I/home/kde-devel/kdelibs4_snapshot/kio/kfile
-I/home/kde-devel/kdelibs4_snapshot -I/home/kde-devel/qt-unstable/include
-I/home/kde-devel/qt-unstable/include/Qt
-I/home/kde-devel/qt-unstable/include/QtCore
-I/home/kde-devel/qt-unstable/include/QtGui
-I/home/kde-devel/qt-unstable/include/QtXml
-I/home/kde-devel/qt-unstable/include/Qt3Support -I/usr/X11R6/include
-I/home/kde-devel/kde-unstable/include
/home/kde-devel/kdelibs4_snapshot/kdeui/kshortcutdialog_simple.h
../kdeui/kshortcutdialog_simple.h -o ../kdeui/kshortcutdialog_simple.moc
...
OK, so we see, unsermake tries to use two identical input files instead of
one:
/home/kde-devel/kdelibs4_snapshot/kdeui/kshortcutdialog_simple.h and
../kdeui/kshortcutdialog_simple.h
I now issue this command manually with only one input file:
kde-devel at scorpio:~/kdelibs4_snapshot/kdeui>
/home/kde-devel/qt-unstable/bin/moc -DQT_THREAD_SUPPORT -D_REENTRANT
-I/home/kde-devel/kdelibs4_snapshot/kdefx
-I/home/kde-devel/kdelibs4_snapshot/interfaces
-I/home/kde-devel/kdelibs4_snapshot/dcop
-I/home/kde-devel/kdelibs4_snapshot/libltdl
-I/home/kde-devel/kdelibs4_snapshot/kdefx -I../kdecore
-I/home/kde-devel/kdelibs4_snapshot/kdecore
-I/home/kde-devel/kdelibs4_snapshot/kdeui
-I/home/kde-devel/kdelibs4_snapshot/kio
-I/home/kde-devel/kdelibs4_snapshot/kio/kio
-I/home/kde-devel/kdelibs4_snapshot/kio/kfile
-I/home/kde-devel/kdelibs4_snapshot -I/home/kde-devel/qt-unstable/include
-I/home/kde-devel/qt-unstable/include/Qt
-I/home/kde-devel/qt-unstable/include/QtCore
-I/home/kde-devel/qt-unstable/include/QtGui
-I/home/kde-devel/qt-unstable/include/QtXml
-I/home/kde-devel/qt-unstable/include/Qt3Support -I/usr/X11R6/include
-I/home/kde-devel/kde-unstable/include
/home/kde-devel/kdelibs4_snapshot/kdeui/kshortcutdialog_simple.h -o
../kdeui/kshortcutdialog_simple.moc
kde-devel at scorpio:~/kdelibs4_snapshot/kdeui>
and everything is okay again. Can't we do anything against unsermake
trying to do a moc with two identical input files ?
Thorsten
More information about the Kde-buildsystem
mailing list