Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
opensp fails to compile
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
Klavs
Guru
Guru


Joined: 22 May 2002
Posts: 536
Location: Denmark

PostPosted: Mon Aug 25, 2003 12:43 pm    Post subject: opensp fails to compile Reply with quote

Hi guys,

I've just installed Gentoo on a PII-233mhz incl. KDE - and it all went fine using my three machines :)

Now I wanted to install kdevelop and it needs opensp for one.

However this fails to build. I've uncommented MAKEOPTS and removed distcc from FEATURES i /etc/make.conf - changed /etc/env.d/05gcc from GCC (and G++) = distcc back to the original gcc and closed and opened the bash. It uses G++, but it still fails and also insists that I'm doing a parallel make, although I shouldn't be :(

Any ideas what is up here?

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../generic -O3 -march=pentium2 -pipe -fomit-frame-pointer -c ArcEngine.cxx -MT ArcEngine.lo -MD -MP -MF .deps/ArcEngine.TPlo -fPIC -DPIC -o .libs/ArcEngine.lo
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../generic -O3 -march=pentium2 -pipe -fomit-frame-pointer -c Allocator.cxx -MT Allocator.lo -MD -MP -MF .deps/Allocator.TPlo -o Allocator.o >/dev/null 2>&1
mv -f .libs/Allocator.lo Allocator.lo
source='Attribute.cxx' object='Attribute.lo' libtool=yes \
depfile='.deps/Attribute.Plo' tmpdepfile='.deps/Attribute.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../generic -O3 -march=pentium2 -pipe -fomit-frame-pointer -c -o Attribute.lo `test -f Attribute.cxx || echo './'`Attribute.cxx
rm -f .libs/Attribute.lo
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../generic -O3 -march=pentium2 -pipe -fomit-frame-pointer -c Attribute.cxx -MT Attribute.lo -MD -MP -MF .deps/Attribute.TPlo -fPIC -DPIC -o .libs/Attribute.lo
g++: Internal error: Terminated (program cc1plus)
Please submit a full bug report.
See <URL:https://bugs.gentoo.org/> for instructions.
make[3]: *** [ArcEngine.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
{standard input}: Assembler messages:
{standard input}:2066: Warning: end of file not at end of a line; newline inserted
g++: Internal error: Terminated (program cc1plus)
Please submit a full bug report.
See <URL:https://bugs.gentoo.org/> for instructions.
make[3]: *** [Attribute.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/opensp-1.5-r1/work/OpenSP-1.5/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/opensp-1.5-r1/work/OpenSP-1.5/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/opensp-1.5-r1/work/OpenSP-1.5'
make: *** [all] Error 2

!!! ERROR: app-text/opensp-1.5-r1 failed.
!!! Function src_compile, Line 39, Exitcode 2
!!! parallel make failed
_________________
Best regards,

Klavs Klavsen
Denmark

Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.
Back to top
View user's profile Send private message
Klavs
Guru
Guru


Joined: 22 May 2002
Posts: 536
Location: Denmark

PostPosted: Tue Aug 26, 2003 9:46 am    Post subject: Reply with quote

I suddenly started getting Out of memory errors from GCC - making it fail just as it did before (when compiling only on localhost) - so I tried enabling distcc and making it compile only on a remote host with plenty of ram (this host has only 64mb ram and a swap-file of 128mb).

Now it fails with another weird message:

..(more of those undefined reference)..
<OpenSP::String<unsigned>*>::reserve1(unsigned)':
: undefined reference to `operator new(unsigned)'
StringSet.o(.gnu.linkonce.t._ZN6OpenSP6VectorIPNS_6StringIjEEE8reserve1Ej+0x6f): In function `OpenSP::Vector<OpenSP::String<unsigned>*>::reserve1(unsigned)':
: undefined reference to `operator delete(void*)'
StringSet.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
../lib/.libs/libosp.so: undefined reference to `typeinfo for std::bad_alloc'
../lib/.libs/libosp.so: undefined reference to `__cxa_pure_virtual'
../lib/.libs/libosp.so: undefined reference to `vtable for std::bad_alloc'
../lib/.libs/libosp.so: undefined reference to `__cxa_begin_catch'
../lib/.libs/libosp.so: undefined reference to `__dynamic_cast'
collect2: ld returned 1 exit status
distcc[28482] ERROR: compile on localhost failed
distcc[28481] ERROR: compile on localhost failed
make[3]: *** [onsgmls] Error 1
make[3]: Leaving directory `/var/tmp/portage/opensp-1.5-r1/work/OpenSP-1.5/nsgmls'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/opensp-1.5-r1/work/OpenSP-1.5/nsgmls'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/opensp-1.5-r1/work/OpenSP-1.5'
make: *** [all] Error 2

Any ideas, or am I just not going to get Gentoo running on this host? It has run RedHat and FreeBSD-5.0 before without any problems - so I can't see why it shouldn't run Gentoo :(
_________________
Best regards,

Klavs Klavsen
Denmark

Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.
Back to top
View user's profile Send private message
Klavs
Guru
Guru


Joined: 22 May 2002
Posts: 536
Location: Denmark

PostPosted: Tue Aug 26, 2003 10:22 am    Post subject: Reply with quote

I'm thinking the problem might stem from using distcc somehow?

I've installed from stage3, and then used distcc. It compiled KDE just fine, and also compiles kernels just fine (I tried running on them too).

Any ideas, I'm lost for ideas - and my girlfriend needs the box - so I'm gonna have to give up the idea of running Gentoo on it - and go over to Mandrake :(
_________________
Best regards,

Klavs Klavsen
Denmark

Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Aug 29, 2003 9:31 pm    Post subject: Reply with quote

Moved from Installing Gentoo
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Spudster
n00b
n00b


Joined: 05 Oct 2003
Posts: 3

PostPosted: Sat Oct 11, 2003 8:56 pm    Post subject: Has anyone found a fix for this? I have the same problem. Reply with quote

Any help would be greatly appreciated.

Thanks!
Back to top
View user's profile Send private message
Klavs
Guru
Guru


Joined: 22 May 2002
Posts: 536
Location: Denmark

PostPosted: Sun Oct 12, 2003 8:49 am    Post subject: Reply with quote

Well for me, it worked when I didn't use distcc at all - and made sure i had enough swap memory - otherwise the kernel would OOM kill the gcc processes at some point in time :(
_________________
Best regards,

Klavs Klavsen
Denmark

Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.
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