Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65813 - Kdevelop 3.1.0 compilation fails due to gcc 3.4.2
Summary: Kdevelop 3.1.0 compilation fails due to gcc 3.4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High blocker
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-29 08:00 UTC by Eduardo Juan
Modified: 2004-10-05 09:17 UTC (History)
1 user (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 Eduardo Juan 2004-09-29 08:00:42 UTC
On emerge kdevelop 3.1.0, this is the error:
****************************************************
AdaStoreWalker.cpp:8834: warning: unused parameter 'factory'
/bin/sh ../../libtool --silent --mode=link --tag=CXX g++ -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 -O2 -mtune=athlon-xp -march=athlon-xp -fomit-frame-pointer -ftracer -pipe -fno-crossjumping -fprefetch-loop-arrays -fstrict-aliasing -fvisibility-inlines-hidden -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 -fexceptions -Wl,-O1 -o libkdevadasupport.la -rpath /usr/lib/kde3 -lfl -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.3/lib -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/kde/3.3/lib -R /usr/qt/3/lib -R /usr/X11R6/lib adasupportpart.lo problemreporter.lo backgroundparser.lo addclass.lo ada_utils.lo adasupport.lo AdaLexer.lo AdaParser.lo AdaTreeParserSuper.lo AdaStoreWalker.lo addclassdlg.lo configproblemreporter.lo ../../lib/libkdevelop.la ../../lib/antlr/src/libantlr.la
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../i686-pc-linux-gnu/bin/ld: ../../lib/antlr/src/.libs/libantlr.a(TokenStreamSelector.o)(.text+0x33b): unresolvable relocation against symbol `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@@GLIBCXX_3.4'
collect2: ld returned 1 exit status
make[4]: ** [libkdevadasupport.la] Erro 1
make[4]: Leaving directory `/var/tmp/portage/kdevelop-3.1.0/work/kdevelop-3.1.0/languages/ada'
make[3]: ** [all-recursive] Erro 1
make[3]: Leaving directory `/var/tmp/portage/kdevelop-3.1.0/work/kdevelop-3.1.0/languages/ada'
make[2]: ** [all-recursive] Erro 1
make[2]: Leaving directory `/var/tmp/portage/kdevelop-3.1.0/work/kdevelop-3.1.0/languages'
make[1]: ** [all-recursive] Erro 1
make[1]: Leaving directory `/var/tmp/portage/kdevelop-3.1.0/work/kdevelop-3.1.0'
make: ** [all] Erro 2

!!! ERROR: dev-util/kdevelop-3.1.0 failed.
!!! Function kde_src_compile, Line 142, Exitcode 2
!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, NOT this status message.
**********************************************************

I tried to change COMPILE FLAGS (those than i compiled my bootstrap 2.6 so i don't think is a COMPLILEFLAGS problem) to:

CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=athlon-xp -march=athlon-xp -fomit-frame-pointer -ftracer -pipe -fno-crossjumping -fprefetch-loop-arrays -fstrict-aliasing"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
LDFLAGS="-Wl,-O1

And gave me the same error Crying or Very sad

Anyone got the same problem?? Or just can help me find out??

Tnx for everyone interest!!

Reproducible: Always
Steps to Reproduce:
1.CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=athlon-xp -march=athlon-xp -fomit-frame-pointer -ftracer -pipe -fno-crossjumping -fprefetch-loop-arrays -fstrict-aliasing" &&
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden" &&
LDFLAGS="-Wl,-O1

2.USE='-java'
3.emerge kdevelop


Actual Results:  
compilation fails:

/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../i686-pc-linux-gnu/bin/ld:
../../lib/antlr/src/.libs/libantlr.a(TokenStreamSelector.o)(.text+0x33b):
unresolvable relocation against symbol `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::~basic_string()@@GLIBCXX_3.4'
collect2: ld returned 1 exit status

Expected Results:  
compilation ok

emerge:
*******************************
Portage 2.0.51_rc6 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0,
2.6.8-gentoo-r4 i686)
=================================================================
System uname: 2.6.8-gentoo-r4 i686 AMD Athlon(tm) XP 2400+
Gentoo Base System version 1.5.3
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers: sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mtune=athlon-xp -march=athlon-xp -pipe -fomit-frame-pointer
-ftracer -fprefetch-loop-arrays -fno-crossjumping-finline-functions -fgcse
-maccumulate-outgoing-args -fmove-all-movables -freduce-all-givs -fstrict-aliasing"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=athlon-xp -march=athlon-xp -pipe -fomit-frame-pointer
-ftracer -fprefetch-loop-arrays -fno-crossjumping -finline-functions -fgcse
-maccumulate-outgoing-args -fmove-all-movables -freduce-all-givs
-fstrict-aliasing -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks sandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo
http://csociety-ftp.ecn.purdue.edu/pub/gentoo/
ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/bmg-main"
SYNC="rsync://rsync1.fi.gentoo.org/gentoo-portage"
USE="X aalib alsa arts avi berkdb bitmap-fonts cdr crypt cups dga directfb dvd
dvdr encode esd evo expat fbcon firefox flash foomaticdb gb gcc gdbm ggi gif
glib glibc gnome gphoto2 gpm gtk gtk2 gtkhtml imlib innodb ipv6 jpeg kde
kdevelop lcms libg++ libwww libxslt mad mikmod motif mozaccess-builtin mozctl
mozilla moznoxft mozxmlterm mpeg msn mysql ncurses nls nptl odbc oggvorbis
opengl oscar oss pam pda pdflib perl plotutils png python qt quicktime readline
samba sdl slang slp snmp sock5 spell sse ssl svga tcltk tcpd tetex thunderbird
tiff truetype usb valgrind wxwindows x86 xface xml xml2 xmms xorg xprint xv
yahoo zlib"
*******************************

gnu libc:
**********************************
GNU C Library 20040808 release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.2 (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5).
Compiled on a Linux 2.6.8 system on 2004-09-26.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
**********************************
Comment 1 tklauser 2004-10-04 03:30:20 UTC
Try it with more moderate CFLAGS like e.g.

CFLAGS="-O2 -march=athlon-xp" (BTW -march implies -mtune so you can leave that out)

and check if it compiles then.
Comment 2 Eduardo Juan 2004-10-05 09:17:33 UTC
Thank you very much!!

Yes you are right...with less flags (-O2 -march=atholon-xp -pipe -fomit-frame-pointer) get compiled with no errors.

Sorry for this post, the next time i will try before posting..;)

Regards,

ejuan