Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDevelop crashes, and won't emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
RobB_NZ
n00b
n00b


Joined: 24 Jan 2004
Posts: 8
Location: New Zealand

PostPosted: Fri Apr 21, 2006 5:43 am    Post subject: KDevelop crashes, and won't emerge Reply with quote

Hi,

I've got a really broken KDevelop here. I can open a project, edit files, and compile successfully, but if I close a project, or exit from KDevelop, it crashes with a SIGSEGV.

I've seen this sort of problem before, which tended to be with libraries or dependencies rather than KDevelop itself. Since I've been using gcc 4.0.3 for a while, I figured that it might be a broken library or something. "revdep-rebuild" and "emerge -upD --new-use world" showed nothing. Anyway, I thought I might as well rebuild kdevelop to ensure that it was using the correct libraries etc.

This fails, with the following errors:
Code:
/bin/sh ../../libtool --silent --tag=CXX --mode=link i686-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -march=k8 -O3 -msse -msse2 -msse3 -m3dnow -mmmx -mfpmath=sse,387 -pipe -ftracer -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION    -o libkdevcatalog.la -rpath /usr/lib -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -L/usr/kde/3.5/lib -L/usr/qt/3/lib -L/usr/X11R6/lib    -L/usr/kde/3.5/lib  tag.lo catalog.lo -ldb -lkdecore -lqt-mt  -lz -lpng -lz -lm -lXext -lX11  -lSM -lICE -lpthread
.libs/catalog.o: In function `Catalog::open(QString const&)':
catalog.cpp:(.text+0x7a): undefined reference to `db_create_4001'
catalog.cpp:(.text+0xe7): undefined reference to `db_strerror_4001'
catalog.cpp:(.text+0x1af): undefined reference to `db_strerror_4001'
catalog.cpp:(.text+0x1ee): undefined reference to `db_strerror_4001'
.libs/catalog.o: In function `Catalog::addIndex(QCString const&)':
catalog.cpp:(.text+0x1b20): undefined reference to `db_create_4001'
catalog.cpp:(.text+0x1b94): undefined reference to `db_strerror_4001'
catalog.cpp:(.text+0x1ee9): undefined reference to `db_strerror_4001'
catalog.cpp:(.text+0x1f72): undefined reference to `db_strerror_4001'
.libs/catalog.o: In function `Catalog::query(QValueList<QPair<QCString, QVariant> > const&)':
catalog.cpp:(.text+0x2367): undefined reference to `db_strerror_4001'
catalog.cpp:(.text+0x2433): undefined reference to `db_strerror_4001'
.libs/catalog.o:catalog.cpp:(.text+0x27a0): more undefined references to `db_strerror_4001' follow
collect2: ld returned 1 exit status
make[3]: *** [libkdevcatalog.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdevelop-3.3.2/work/kdevelop-3.3.2/lib/catalog'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdevelop-3.3.2/work/kdevelop-3.3.2/lib'
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 1532:   Called dyn_compile
  ebuild.sh, line 929:   Called src_compile
  kdevelop-3.3.2.ebuild, line 56:   Called kde_src_compile
  kde.eclass, line 113:   Called kde_src_compile 'all'
  kde.eclass, line 230:   Called kde_src_compile 'myconf' 'configure' 'make'
  kde.eclass, line 226:   Called die

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if relevant.

Has anyone seen this sort of behaviour lately?

I've rebuilt db, qt, kdebase, kdelibs, kdesdk, gdb, valgrind, and ctags, all with gcc-3.4.6, to see if there's a dependencies problem but it doesn't seem to have made any difference.

This message is a sort of preliminary thing, to see if someone can save me the effort of figuring it out myself :). I'm sure I'll get to the bottom of it eventually. My emerge --info is below, note that there are a *lot* of USE flags and fairly aggressive CFLAGS, this is my "playing about" machine so I try out lots of different things (and I'm not at all surprised when things break occasionally!)
Code:
val rfbrown # emerge --info
Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo-r2 i686)
=================================================================
System uname: 2.6.16-gentoo-r2 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Gentoo Base System version 1.12.0_pre17
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -msse -msse2 -msse3 -m3dnow -mmmx -mfpmath=sse,387 -pipe -ftracer -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -O3 -msse -msse2 -msse3 -m3dnow -mmmx -mfpmath=sse,387 -pipe -ftracer -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.isp.net.au/pub/gentoo/"
LINGUAS="en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext X Xaw3d a52 aac aalib alsa apache2 apm arts artswrappersuid audiofile avi bash-completion berkdb bitmap-fonts bonobo bzlib calendar cdparanoia cdr cfq-ts cli cpudetection crypt ctype cups curl curlwrappers dba dri dts dv dvd dvdr dvdread eds emboss encode esd evo expat f77 fam ffmpeg fftw flac flash foomaticdb fortran ftp gcj gd gdbm gif gimp gimpprint glut gnome gpm gstreamer gtk gtk2 gtkhtml guile hal iconv imagemagick imlib ipv6 isdnlog jack java javascript jikes jpeg kde kdeenablefinal kqemu ladcca lcms ldap lesstif libcaca libg++ libwww linguas_ko lm_sensors mad mbox mikmod ming mmap mmx mmxext mng monkey motif mozilla mozsvg mp3 mpeg mysql ncurses nicksched nls nocd nptl nptlonly nsplugin nvidia odbc ogg oggvorbis openal opengl oss pam pcntl pcre pda pdf pdflib perl php pic pie plotutils plugin png portaudio posix ppds pppd python qt quicktime readline real reflection sasl scanner sdl session sharedmem shorten slang sndfile snmp soap sockets sox speex spell spl sse sse2 sse3 ssl svg swat sysfs sysvipc tcltk tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts udev unicode updated-v4l usb uudeview v4l v4l2 vcd videos vorbis win32 win32codecs wmf wxwindows x264 xanim xface xine xml xml2 xmlrpc xmms xpm xprint xsl xv xvid xvmc zlib zvbi elibc_glibc input_devices_mouse,keyboard kernel_linux linguas_en_GB userland_GNU video_cards_nv"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
knue
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2004
Posts: 139

PostPosted: Fri Apr 21, 2006 12:29 pm    Post subject: Reply with quote

same problem here
Back to top
View user's profile Send private message
isdes
n00b
n00b


Joined: 03 Sep 2005
Posts: 19
Location: Kielce, Poland

PostPosted: Fri Apr 21, 2006 5:48 pm    Post subject: Reply with quote

Exactly the same problem.

I believe it has something to do with my changing optimization flag in CFLAGS. I have been using -O2 and now there is -Os. I tried to reemerge db with new flags but it didn't help. I've also made an attempt to return to -O2 - still no success.

Code:

# emerge --info
Portage 2.1_pre7-r5 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.15-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre17
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/env.d"
CXXFLAGS="-Os -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.gentoo.no http://gentoo.prz.rzeszow.pl http://gentoo.po.opole.pl ftp://gentoo.po.opole.pl "
LINGUAS="pl en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-coffee"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X alsa arts avi bash-completion berkdb bitmap-fonts bzip2 cairo cli crypt cups dri eds emboss encode eps flac foomaticdb fortran gif glitz gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java jikes jpeg kde kdeenablefinal lame libwww lm_sensors lzw lzw-tiff mitshm motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl pam pcre pdflib perl png pppd python qt quicktime readline reflection sdl session slang spell spl ssl svg tcpd threads tiff truetype truetype-fonts type1-fonts usb vorbis xinerama xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_pl linguas_en userland_GNU video_cards_fglrx video_cards_ati video_cards_radeon"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS
Back to top
View user's profile Send private message
knue
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2004
Posts: 139

PostPosted: Fri Apr 21, 2006 7:25 pm    Post subject: Reply with quote

I don't think this has to do with cflags. This is a gentoo bug. Somebody there who can write a bug report?
Back to top
View user's profile Send private message
isdes
n00b
n00b


Joined: 03 Sep 2005
Posts: 19
Location: Kielce, Poland

PostPosted: Fri Apr 21, 2006 7:50 pm    Post subject: Reply with quote

I've managed to find a solution. Kdevelop was linked against the newest version of sys-libs/db (that is 4.2.52_p4) instead of version 4.1.25_p2 which lacks the required symbols: db_create_4001 etc.

Unmerging db-4.2.52_p4 does the trick. After emerging kdevelop it is possible to emerge newer db, but I think there will be problems with kdevelop updates. This should be fixed in ebuild. I made a bug report: Bug 130765
Back to top
View user's profile Send private message
RobB_NZ
n00b
n00b


Joined: 24 Jan 2004
Posts: 8
Location: New Zealand

PostPosted: Sat Apr 22, 2006 6:13 am    Post subject: Reply with quote

How odd, I searched bugzilla but obviously not with the right search terms. Go to https://bugs.gentoo.org/show_bug.cgi?id=128897 for a workaround that worked for me.

With regard to the crashing, a backtrace from gdb shows that it's crashing when it tries to close the Doxygen part, and sure enough if I manually edit a .kdevelop file to include the following:
Code:

  <general>
    .
    .
    .
    <ignoreparts>
      <part>kdevdoxygen</part>
    </ignoreparts>
  </general>

then it doesn't crash when working with this project. I'm not sure whether I'll use this as a workaround or try to find the root cause, I'm kinda busy right now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum