Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 27342

Summary: opensp does not compile with distcc
Product: Gentoo Linux Reporter: klavs klavsen <kl>
Component: New packagesAssignee: Alastair Tse (RETIRED) <liquidx>
Status: VERIFIED NEEDINFO    
Severity: normal CC: lisa
Priority: High    
Version: 1.4   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description klavs klavsen 2003-08-25 23:39:31 UTC
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 (didn't use to). 
 
 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:http://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:http://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
Comment 1 klavs klavsen 2003-08-26 03:16:45 UTC
I've now tried to compile opensp on my desktop machine (which has kdevelop-0.3.0alpha4 - which appereantly does NOT require opensp - but alpha5 does - weird?) - anyways opensp compiles fine there, so I'm thinking the problem has to do with distcc somehow?

I can compile my kernel, and kde-3.1.3 compiled just fine using distcc, so I'm a bit lost as to what is up here.

Also, I started the install from stage3.
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2003-08-28 06:24:19 UTC
which compiler version were you using with the box that had problems? it looks like gcc-3.3 ? can you post the output of emerge info ? 
Comment 3 klavs klavsen 2003-08-28 06:47:13 UTC
output of emerge info (through ssh to the host, I had to boot on the grp-cd - to get the network pcmcia to work tulip_cb card - won't work on my own kernel - don't know why - I can only make the tulip_cb driver by installing pcmcia-cs-drivers - but I thought tulip_cb was part of the kernel - just can't get it activated/compiled with gentoo-sources-2.4.20-r6):
( I have ofcourse chrooted to my /mnt/gentoo and started sshd there).

Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-xfs_pre2 i686 Pentium II (Deschutes)
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts svga java sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gtk qt motif opengl X kde alsa -gnome"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium2 -pipe -fomit-frame-pointer"
CXXFLAGS="-O3 -march=pentium2 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache sandbox buildpkg distcc"
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2003-08-29 10:20:39 UTC
it looks like the compiler bug rather than a problem with opensp. that is why i initially guessed you were using 3.3 (a buggy compiler). but it seems you are using 3.2.3.

does that happen on all your machines or just one of them? can you try using some different optimisations to see if it'll help? like using -O2 or -O1 instead of -O3
Comment 5 klavs klavsen 2003-08-30 04:28:35 UTC
I tried both -02 and -01, and with -03 - and now it fails here :

: 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_end_catch'
../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 `std::bad_alloc::~bad_alloc [in-charge]()'
../lib/.libs/libosp.so: undefined reference to `__dynamic_cast'
collect2: ld returned 1 exit status
distcc[3891] ERROR: compile on localhost failed
distcc[3890] 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'
Comment 6 klavs klavsen 2003-09-01 11:45:54 UTC
I got opensp to compile when completely(!) disabling distcc. Not even distcc with localhost worked. So opensp should automagically disable distcc - and openjade too (none of them work in my experience with distcc :( )
Comment 7 Alastair Tse (RETIRED) gentoo-dev 2003-09-02 12:54:38 UTC
i don't have any problems with opensp and distcc. would it be that g++ is a little dodgy on the remote side?

adding lisa in case she has some insight into this
Comment 8 klavs klavsen 2003-09-02 22:20:11 UTC
Well the remote sides are both Gentoo, with gcc-3.2.2 installed.
Comment 9 Alastair Tse (RETIRED) gentoo-dev 2003-09-09 10:17:19 UTC
what version of distcc are you using?
Comment 10 Alastair Tse (RETIRED) gentoo-dev 2003-10-30 01:32:06 UTC
needinfo
Comment 11 klavs klavsen 2003-10-30 01:34:42 UTC
Well, I was using an older version (the newest at the time), but the machine
is not being used anymore, and Debian has been installed on it (I needed
something to work :)

So unfortunately I can't give you more info.
Comment 12 Matteo Sasso 2004-07-24 02:08:10 UTC
I had the same error message (assembler yadda yadda) on a k6-2 using -march and -Os. It went away by switching to -O2. I'm using gcc-3.3.2; 3.3.3 is out but I don't have time to update (unfortunatelly the CPU tends to overheat so I must supervise every CPU-intensive process).