Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Error trying to emerge kdevelop [SOLVED]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
dre2004
n00b
n00b
User avatar
Posts: 31
Joined: Thu Aug 11, 2005 12:09 pm
Location: Sydney, Australia
Contact:
Contact dre2004
Website

Error trying to emerge kdevelop [SOLVED]

  • Quote

Post by dre2004 » Sat May 27, 2006 11:01 pm

I'm getting the following when trying to emerge kdevelop

Code: Select all

/bin/sh ../../libtool --silent --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../lib/interfaces -I../../lib/interfaces/extensions -I../../lib/util -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=k8 -O2 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o addtooldlg.lo addtooldlg.cpp
addtooldlg.cpp:28:33: kdevapplicationtree.h: No such file or directory
make[3]: *** [addtooldlg.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/kdevelop-3.2.1-r1/work/kdevelop-3.2.1/parts/tools'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdevelop-3.2.1-r1/work/kdevelop-3.2.1/parts'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdevelop-3.2.1-r1/work/kdevelop-3.2.1'
make: *** [all] Error 2

!!! ERROR: dev-util/kdevelop-3.2.1-r1 failed.
Call stack:
  ebuild.sh, line 1531:   Called dyn_compile
  ebuild.sh, line 931:   Called src_compile
  kdevelop-3.2.1-r1.ebuild, line 56:   Called kde_src_compile
  kde.eclass, line 123:   Called kde_src_compile 'all'
  kde.eclass, line 252:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 248:   Called die

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.
as per the error here is a listing of /var/tmp/portage/kdevelop-3.2.1-r1/work/kdevelop-3.2.1/parts/tools

Code: Select all

Makefile        addtooldlg.moc        kdevpart_tools.rc  toolsconfig.h          toolsconfigwidgetbase.h
Makefile.am     addtooldlg.ui         kdevtools.desktop  toolsconfig.lo         toolsconfigwidgetbase.moc
Makefile.in     addtooldlg.ui.h       tools_part.cpp     toolsconfig.moc        toolsconfigwidgetbase.ui
README.dox      kapplicationtree.cpp  tools_part.h       toolsconfigwidget.cpp
addtooldlg.cpp  kapplicationtree.h    tools_part.lo      toolsconfigwidget.h
addtooldlg.h    kapplicationtree.lo   tools_part.moc     toolsconfigwidget.lo
addtooldlg.loT  kapplicationtree.moc  toolsconfig.cpp    toolsconfigwidget.moc
is this a bug in the ebuild or am I missing something?
Last edited by dre2004 on Tue May 30, 2006 8:03 am, edited 1 time in total.
-------------------------------
http://www.dretech.com.au
Top
cyblord
Guru
Guru
Posts: 424
Joined: Mon May 22, 2006 2:28 am

  • Quote

Post by cyblord » Sun May 28, 2006 2:56 am

Hmm... I emerged kdevelop a few days ago just fine.

try updating your portage tree first, and then emerge kdevelop again.

Code: Select all

emerge --sync
Top
dre2004
n00b
n00b
User avatar
Posts: 31
Joined: Thu Aug 11, 2005 12:09 pm
Location: Sydney, Australia
Contact:
Contact dre2004
Website

  • Quote

Post by dre2004 » Sun May 28, 2006 6:16 am

Yep I did do that just before emerging. I actually just finished doing emerge -- update world before trying to emerge kdevelop
-------------------------------
http://www.dretech.com.au
Top
dre2004
n00b
n00b
User avatar
Posts: 31
Joined: Thu Aug 11, 2005 12:09 pm
Location: Sydney, Australia
Contact:
Contact dre2004
Website

  • Quote

Post by dre2004 » Sun May 28, 2006 10:11 am

I've just done another emerge --sync and emerge --update world --deep and then tried to emerge kdevelop again but still getting the same error.
-------------------------------
http://www.dretech.com.au
Top
vlsoft
n00b
n00b
User avatar
Posts: 6
Joined: Mon May 23, 2005 10:27 am

  • Quote

Post by vlsoft » Sun May 28, 2006 12:02 pm

dre2004 wrote:I've just done another emerge --sync and emerge --update world --deep and then tried to emerge kdevelop again but still getting the same error.
Same error for me too, I have nothing more to say... Or maybe one more thing; I just finished installing KDE 3.5.2 and QT 4.1.2 (if I remember the version numbers right). KDE 3.4 removed, but I still have the older QT installed.
Top
vlsoft
n00b
n00b
User avatar
Posts: 6
Joined: Mon May 23, 2005 10:27 am

  • Quote

Post by vlsoft » Sun May 28, 2006 1:52 pm

Okay, it seems I had found the problem.
Do this after the emerge failure:

Step 1)
cd /var/tmp/portage/kdevelop-3.2.1-r1/work/kdevelop-3.2.1/parts/tools/
nano addtooldlg.cpp

Step 2)
Delete the 28th line (or comment it out with // ) saying:
#include "kdevapplicationtree.h"

Step 3)
Save the file.
cd /var/tmp/portage/kdevelop-3.2.1-r1/work/kdevelop-3.2.1/
make

See as KDevelop compiles.

So what was the problem?
Check the file called kapplicationtree.h (same dir as addtooldlg.cpp), it contains this just after the big comment containing GNU LGPL stuff:
#ifndef __KDevApplicationTree_h__
#define __KDevApplicationTree_h__

So I think someone had renamed kdevapplicationtree.h (and others) to simply kapplicationtree.h, successfully wrote the necessary include to addtooldlg.cpp, but forgot to remove the include which included the old and now non-existent kdevapplicationtree.h .
it's time for a bug fix for kdevelop :)
But I won't report this on bugs.gentoo.org; I'm just an end-user :)
Top
vlsoft
n00b
n00b
User avatar
Posts: 6
Joined: Mon May 23, 2005 10:27 am

  • Quote

Post by vlsoft » Sun May 28, 2006 2:51 pm

I've done a quick patch for this...

Save as a file named like this: /usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch

Code: Select all

--- kdevelop-3.2.1.orig/parts/tools/addtooldlg.ui       2006-05-28 16:19:43.000000000 +0200
+++ kdevelop-3.2.1/parts/tools/addtooldlg.ui    2006-05-28 16:22:52.000000000 +0200
@@ -241,6 +241,5 @@
     <includehint>kurlrequester.h</includehint>
     <includehint>klineedit.h</includehint>
     <includehint>kpushbutton.h</includehint>
-    <includehint>kdevapplicationtree.h</includehint>
 </includehints>
 </UI>

Then edit the ebuild /usr/portage/dev-util/kdevelop/kdevelop-3.2.1-r1.ebuild

Code: Select all

src_unpack() {
        kde_src_unpack
        cd ${S}

        epatch ${FILESDIR}/${P}-gcc4.patch

        # See bug #86780 and kde bug 98852.
        epatch "${FILESDIR}/${P}-makefiles.patch"

        # VLsoft patch
        epatch "${FILESDIR}/${P}-vlsoft.patch"
Notice! I've added only the last 2 lines!

Don't forget to run standing in the /usr/portage/dev-util/kdevelop/ dir. this too:
ebuild kdevelop-3.2.1-r1.ebuild digest

Now "emerge kdevelop", it should work.
Top
dre2004
n00b
n00b
User avatar
Posts: 31
Joined: Thu Aug 11, 2005 12:09 pm
Location: Sydney, Australia
Contact:
Contact dre2004
Website

  • Quote

Post by dre2004 » Mon May 29, 2006 8:18 am

I tried that and got the following error

Code: Select all

 * Failed Patch: kdevelop-3.2.1-vlsoft.patch !
 *  ( /usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch )
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/kdevelop-3.2.1-r1/temp/kdevelop-3.2.1-vlsoft.patch-12341.out


!!! ERROR: dev-util/kdevelop-3.2.1-r1 failed.
Call stack:
  ebuild.sh, line 1531:   Called dyn_unpack
  ebuild.sh, line 703:   Called src_unpack
  kdevelop-3.2.1-r1.ebuild, line 34:   Called epatch '/usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch'
  eutils.eclass, line 339:   Called die

!!! Failed Patch: kdevelop-3.2.1-vlsoft.patch!
!!! If you need support, post the topmost build error, and the call stack if relevant.
here is the output of /var/tmp/portage/kdevelop-3.2.1-r1/temp/kdevelop-3.2.1-vlsoft.patch-12341.out

Code: Select all

roxor kdevelop # cat /var/tmp/portage/kdevelop-3.2.1-r1/temp/kdevelop-3.2.1-vlsoft.patch-11957.out
***** kdevelop-3.2.1-vlsoft.patch *****

=======================================

PATCH COMMAND:  patch -p0 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch

=======================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- kdevelop-3.2.1.orig/parts/tools/addtooldlg.ui       2006-05-28 16:19:43.000000000 +0200
|+++ kdevelop-3.2.1/parts/tools/addtooldlg.ui    2006-05-28 16:22:52.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
=======================================

PATCH COMMAND:  patch -p1 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch

=======================================
patching file parts/tools/addtooldlg.ui
Hunk #1 FAILED at 241.
1 out of 1 hunk FAILED -- saving rejects to file parts/tools/addtooldlg.ui.rej
=======================================

PATCH COMMAND:  patch -p2 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch

=======================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- kdevelop-3.2.1.orig/parts/tools/addtooldlg.ui       2006-05-28 16:19:43.000000000 +0200
|+++ kdevelop-3.2.1/parts/tools/addtooldlg.ui    2006-05-28 16:22:52.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
=======================================

PATCH COMMAND:  patch -p3 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch

=======================================
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- kdevelop-3.2.1.orig/parts/tools/addtooldlg.ui       2006-05-28 16:19:43.000000000 +0200
|+++ kdevelop-3.2.1/parts/tools/addtooldlg.ui    2006-05-28 16:22:52.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored
=======================================

PATCH COMMAND:  patch -p4 -g0 -E --no-backup-if-mismatch < /usr/portage/dev-util/kdevelop/files/kdevelop-3.2.1-vlsoft.patch

=======================================
missing header for unified diff at line 3 of patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- kdevelop-3.2.1.orig/parts/tools/addtooldlg.ui       2006-05-28 16:19:43.000000000 +0200
|+++ kdevelop-3.2.1/parts/tools/addtooldlg.ui    2006-05-28 16:22:52.000000000 +0200
--------------------------
No file to patch.  Skipping patch.
1 out of 1 hunk ignored

-------------------------------
http://www.dretech.com.au
Top
vlsoft
n00b
n00b
User avatar
Posts: 6
Joined: Mon May 23, 2005 10:27 am

  • Quote

Post by vlsoft » Mon May 29, 2006 12:45 pm

Okay, it's obvious, that the problem is with the patch. Did I screwed up the file's path in the beginning of the patch file? But it works on my gentoo box...

I think the really interesting part is this:

Code: Select all

=======================================
patching file parts/tools/addtooldlg.ui
Hunk #1 FAILED at 241.
1 out of 1 hunk FAILED -- saving rejects to file parts/tools/addtooldlg.ui.rej
======================================= 
Check out the contents of this file "parts/tools/addtooldlg.ui.rej"

I don't like to paste patches on web pages, because they get somewhat distorted (as it happened here too, I assume).
I put up the patch on a small web server, try to download it from there:
https://ai4.inf.elte.hu/gentoo/kdevelop ... soft.patch

ps.: Have you tried out the manual compiling I recommended in the post just before the patch stuff? I know that will not make it work in the gentoo way, but hey; it can give a result so as it compiles or not...
Top
dre2004
n00b
n00b
User avatar
Posts: 31
Joined: Thu Aug 11, 2005 12:09 pm
Location: Sydney, Australia
Contact:
Contact dre2004
Website

  • Quote

Post by dre2004 » Tue May 30, 2006 8:03 am

That did it. I thought it might have been that because when I copy and pasted the test into a file the alignment went a bit off.

Cheers
-------------------------------
http://www.dretech.com.au
Top
phoric
n00b
n00b
User avatar
Posts: 54
Joined: Sun Mar 07, 2004 1:16 am
Location: Seattle, WA

  • Quote

Post by phoric » Fri Jun 16, 2006 11:16 pm

I had the same issue.. this fix worked for me also.

Thanks,
phoric
Top
dajja
n00b
n00b
User avatar
Posts: 15
Joined: Thu May 11, 2006 7:54 am
Location: Sweden
Contact:
Contact dajja
Website

  • Quote

Post by dajja » Thu Jun 29, 2006 10:34 pm

Thx vlsoft! The compile passed addtooldlg.cpp finally :D
Top
random.chance
n00b
n00b
Posts: 8
Joined: Sun Jun 18, 2006 9:26 pm
Location: Stillwater, Oklahoma

  • Quote

Post by random.chance » Mon Jul 03, 2006 6:32 pm

Worked for me too!! Thanks Vlsoft!!!
Top
socr0819
n00b
n00b
User avatar
Posts: 15
Joined: Thu Jul 01, 2004 3:28 pm
Location: raleigh, nc

thanks!

  • Quote

Post by socr0819 » Tue Jul 04, 2006 4:18 am

this worked for me as well. thanks a lot!
Top
trizz
n00b
n00b
User avatar
Posts: 52
Joined: Tue Jan 04, 2005 1:19 pm

  • Quote

Post by trizz » Tue Aug 15, 2006 1:10 pm

Mine fails but with a different error...

Code: Select all

grep: /usr/lib/gcc/i386-pc-linux-gnu/3.4.6/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc/i386-pc-linux-gnu/3.4.6/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc/i386-pc-linux-gnu/3.4.6/libstdc++.la' is not a valid libtool archive
make[4]: *** [libcvsserviceintegrator.la] Error 1
make[4]: Leaving directory `/var/tmp/portage/kdevelop-3.3.2/work/kdevelop-3.3.2/vcs/cvsservice/integrator'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdevelop-3.3.2/work/kdevelop-3.3.2/vcs/cvsservice'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdevelop-3.3.2/work/kdevelop-3.3.2/vcs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdevelop-3.3.2/work/kdevelop-3.3.2'
make: *** [all] Error 2

!!! ERROR: dev-util/kdevelop-3.3.2 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  kdevelop-3.3.2.ebuild, line 57:   Called kde_src_compile
  kde.eclass, line 164:   Called kde_src_compile 'all'
  kde.eclass, line 323:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 319:   Called die

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.
Any ideas? This is the only ppackage that fails on updates, I've tried to go to a newer version too and that fails as well.
Top
Post Reply

15 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic