Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6199 - kdevelop-2.1.2 emerge fails
Summary: kdevelop-2.1.2 emerge fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Dan Armak (RETIRED)
URL:
Whiteboard:
Keywords:
: 6627 6768 6784 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-08-08 08:42 UTC by Mechanic
Modified: 2003-02-04 19:42 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mechanic 2002-08-08 08:42:35 UTC
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
Comment 1 Mechanic 2002-08-08 12:45:06 UTC
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"
Comment 2 Dan Armak (RETIRED) gentoo-dev 2002-08-11 16:08:57 UTC
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... 
Comment 3 Dan Lund 2002-08-13 01:11:05 UTC
Yes, that worked for me.. I had the same issue and I changed my MAKEOPTS flag to
-j1 and it compiled perfectly.
Comment 4 Dan Armak (RETIRED) gentoo-dev 2002-08-19 11:45:38 UTC
Good. Mechanic, can you test this? 
Comment 5 Hannes Mehnert (RETIRED) gentoo-dev 2002-08-19 17:46:13 UTC
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. 
Comment 6 Dan Armak (RETIRED) gentoo-dev 2002-08-22 18:15:17 UTC
OK, then I'll enforce -j1 in the ebuild. 
Comment 7 Dan Armak (RETIRED) gentoo-dev 2002-08-22 18:31:31 UTC
*** Bug 6627 has been marked as a duplicate of this bug. ***
Comment 8 Dan Armak (RETIRED) gentoo-dev 2002-08-29 08:34:32 UTC
*** Bug 6768 has been marked as a duplicate of this bug. ***
Comment 9 Dan Armak (RETIRED) gentoo-dev 2002-08-31 14:36:16 UTC
*** Bug 6784 has been marked as a duplicate of this bug. ***