Typing 'emerge kdevelop' I get such output -> In file included from ctagsdialog_impl.moc.cpp:11: ctagsdialog_impl.h:20: ctagsdialog.h: No such file or directory fcntl: Bad file descriptor fcntl: Bad file descriptor fcntl: Bad file descriptor fcntl: Bad file descriptor i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kde/3/include -I/usr/qt/3/include -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -mcpu=i686 -O3 -pipe -fno-exceptions -fno-check-new -ftemplate-depth-99 -c -o ctagsdialog_impl.o `test -f ctagsdialog_impl.cpp || echo './'`ctagsdialog_impl.cpp In file included from ctagsdialog_impl.moc.cpp:11: ctagsdialog_impl.h:23: parse error before `{' ctagsdialog_impl.h:33: parse error before `*' ctagsdialog_impl.h:34: destructors must be member functions ctagsdialog_impl.h:35: `tagType' was not declared in this scope ctagsdialog_impl.h:35: parse error before `)' ctagsdialog_impl.h:39: parse error before `public' ctagsdialog_impl.h:46: `tagType' was not declared in this scope ctagsdialog_impl.h:46: parse error before `,' ctagsdialog_impl.h:47: syntax error before `:' ctagsdialog_impl.moc.cpp:23: invalid use of undefined type `class searchTagsDialogImpl' ctagsdialog_impl.h:22: forward declaration of `class searchTagsDialogImpl' ctagsdialog_impl.moc.cpp:27: structure `searchTagsDialogImpl' not yet defined ctagsdialog_impl.moc.cpp:27: assignment (not initialization) in declaration ctagsdialog_impl.moc.cpp:32: invalid use of undefined type `class searchTagsDialogImpl' ctagsdialog_impl.h:22: forward declaration of `class searchTagsDialogImpl' ctagsdialog_impl.moc.cpp:40: invalid use of undefined type `class searchTagsDialogImpl' ctagsdialog_impl.h:22: forward declaration of `class searchTagsDialogImpl' ctagsdialog_impl.moc.cpp:51: invalid use of undefined type `class searchTagsDialogImpl' ctagsdialog_impl.h:22: forward declaration of `class searchTagsDialogImpl' ctagsdialog_impl.moc.cpp: In method `class QMetaObject * searchTagsDialogImpl::staticMetaObject()': ctagsdialog_impl.moc.cpp:52: `metaObj' undeclared (first use this function) ctagsdialog_impl.moc.cpp:52: (Each undeclared identifier is reported only once ctagsdialog_impl.moc.cpp:52: for each function it appears in.) ctagsdialog_impl.moc.cpp:54: `searchTagsDialog' undeclared (first use this function) ctagsdialog_impl.moc.cpp:54: parse error before `::' ctagsdialog_impl.moc.cpp:106: warning: control reaches end of non-void function `searchTagsDialogImpl::staticMetaObject()' ctagsdialog_impl.moc.cpp: At top level: ctagsdialog_impl.moc.cpp:109: invalid use of undefined type `class searchTagsDialogImpl' ctagsdialog_impl.h:22: forward declaration of `class searchTagsDialogImpl' ctagsdialog_impl.moc.cpp: In method `void * searchTagsDialogImpl::qt_cast(const char *)': ctagsdialog_impl.moc.cpp:110: parse error before `)' ctagsdialog_impl.moc.cpp:111: parse error before `::' ctagsdialog_impl.moc.cpp:112: confused by earlier errors, bailing out make[3]: *** [ctagsdialog_impl.moc.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/kdevelop-2.1.2/work/kdevelop-2.1.2_for_KDE_3.0/kdevelop/ctags' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdevelop-2.1.2/work/kdevelop-2.1.2_for_KDE_3.0/kdevelop' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdevelop-2.1.2/work/kdevelop-2.1.2_for_KDE_3.0' make: *** [all] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function kde_src_compile, Line -5181, Exitcode 2 !!! died running emake, kde_src_compile:make ******************************************************* Brief search on Gentoo forums, revealed that I am not alone to stumble upon this problem. Here is link: http://forums.gentoo.org/viewtopic.php?t=11055
Additional research showed, that same package, compiled standalone goes pretty good. Even, manual compile in /var/tmp/portage after error in emerge, seems to pass this error, and compile very well. If it could be of any use, here is my make.conf file (comments removed): USE="-gnome" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=i686 -O3 -pipe" CXXFLAGS="-mcpu=i686 -O3 -pipe"
The bugs.kde.org entry linked from the forum post suggests this is the fault of multithreaded make (make -j2). That is the gentoo default setting (MAKEOPTS="-j2" in make.globals). It tallies well with your report. Please try putting MAKEOPTS="-j1" in make.conf and running emerge kdevelop. Errors caused by using make -j2 have been reported before (in kde apps in general), I'm going to inquire if this is really necessary on non-smp systems...
Yes, that worked for me.. I had the same issue and I changed my MAKEOPTS flag to -j1 and it compiled perfectly.
Good. Mechanic, can you test this?
same problem and solution for kdevelop-2.1.3, with MAKEOPTS="-j2" it doesn't compile with same error, with MAKEOPTS="-j1" everything works fine.
OK, then I'll enforce -j1 in the ebuild.
*** Bug 6627 has been marked as a duplicate of this bug. ***
*** Bug 6768 has been marked as a duplicate of this bug. ***
*** Bug 6784 has been marked as a duplicate of this bug. ***