Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge kdevelop 3.1.1 fails with an error [SOLVED]
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
SirRichard
n00b
n00b


Joined: 10 Oct 2004
Posts: 13
Location: Stockelsdorf, Germany

PostPosted: Tue Oct 19, 2004 2:47 am    Post subject: emerge kdevelop 3.1.1 fails with an error [SOLVED] Reply with quote

Hello,

I get reproducable errors when emerging kdevelop (3.1.1):

Code:

make[4]: Entering directory `/var/tmp/portage/kdevelop-3.1.1/work/kdevelop-3.1.1/languages/ada'
/bin/sh ../../libtool --silent --mode=link --tag=CXX i686-pc-linux-gnu-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 -O3 -march=athlon-mp -mtune=athlon-mp -pipe -ftracer -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 -Wl,--enable-new-dtags -Wl,--sort-common -s -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+0x2ee): unresolvable relocation against symbol `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@@GLIBCXX_3.4'
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/../../../../i686-pc-linux-gnu/bin/ld: final link failed: Nonrepresentablesection on output
collect2: ld returned 1 exit status
make[4]: *** [libkdevadasupport.la] Error 1
make[4]: Leaving directory `/var/tmp/portage/kdevelop-3.1.1/work/kdevelop-3.1.1/languages/ada'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/kdevelop-3.1.1/work/kdevelop-3.1.1/languages/ada'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdevelop-3.1.1/work/kdevelop-3.1.1/languages'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kdevelop-3.1.1/work/kdevelop-3.1.1'
make: *** [all] Error 2


I have never seen such an error message. Seems there is something really broken, but no other emerged package failed till now. Google didn't really help. As far as I can see it is an error related to my gcc/g++ (which is 3.4.2-r2, the latest in portage) because the error was related to the STL basic_string.

Any ideas?

my glibc is 2.3.4.20041006
my gcc is 3.4.2-r2
my kde is 3.3.1


Last edited by SirRichard on Tue Oct 19, 2004 4:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
nbkolchin
Apprentice
Apprentice


Joined: 07 Feb 2004
Posts: 290
Location: Russia, Saint-Petersburg

PostPosted: Tue Oct 19, 2004 3:02 am    Post subject: Reply with quote

1) In theory, this error can be caused by packages compiled with older gcc.

2) binutils version?
3) can you post your CFLAGS from make.conf?

Nickolay
Back to top
View user's profile Send private message
SirRichard
n00b
n00b


Joined: 10 Oct 2004
Posts: 13
Location: Stockelsdorf, Germany

PostPosted: Tue Oct 19, 2004 10:43 am    Post subject: Reply with quote

here the contents of my /etc/make.conf:

Code:

CFLAGS="-O3 -march=athlon-mp -mtune=athlon-mp -pipe -ftracer "
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
ACCEPT_KEYWORDS="~x86"
MAKEOPTS="-j4"
USE="nptl alsa mysql innodb imap maildir"


I get the same result with another system with exactly the same flags (change only athlon-mp to pentium3).

I rebuilt my whole system a week ago with this flags (emerge -e world), so I do not think it can be some binary compiled with an older gcc, but who knows..

My binutils:
Code:

*  sys-devel/binutils
      Latest version available: 2.15.92.0.2-r1
      Latest version installed: 2.15.92.0.2-r1
Back to top
View user's profile Send private message
nbkolchin
Apprentice
Apprentice


Joined: 07 Feb 2004
Posts: 290
Location: Russia, Saint-Petersburg

PostPosted: Tue Oct 19, 2004 2:34 pm    Post subject: Reply with quote

Ok.. I had installed kdevelop with no problem on same configuration.

-fvisibility-inlines-hidden <-- may cause problem

Or it can cause problems with combination with your LDFLAGS.

Nickolay
Back to top
View user's profile Send private message
SirRichard
n00b
n00b


Joined: 10 Oct 2004
Posts: 13
Location: Stockelsdorf, Germany

PostPosted: Tue Oct 19, 2004 4:20 pm    Post subject: Reply with quote

Yes, that's it!! -fvisibility-inlines-hidden causes the error!! I tried an emerge without this flag in CXXFLAGS and now it works. This happens when you use flags from unreleased C compilers (4.0 in this case)... :oops:

I'll not use it again till gcc 4.0 is released and stable.

Nevertheless, it's a little bit strange that no other package fails with this error when using that flag. Only luck? Who cares, it works now :D
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