Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29750 - arts-1.1.4 failed to compile against the default gcc-3.2.3-r1
Summary: arts-1.1.4 failed to compile against the default gcc-3.2.3-r1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on: 28802 29558
Blocks:
  Show dependency tree
 
Reported: 2003-09-27 08:07 UTC by Greg Hellings
Modified: 2004-07-22 18:14 UTC (History)
2 users (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 Greg Hellings 2003-09-27 08:07:20 UTC
When I attempted to emerge arts-1.1.4 with gcc-3.2.3-r1 I receieved a compiler
error.  This is supposedly the new version of arts to which I am upgrading.

Reproducible: Always
Steps to Reproduce:
1.emerge rsync
2.emerge -U -D world
3.alternatively to the above: emerge arts

Actual Results:  
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../mcop -I/usr/kde/3.1/include
-I/usr/qt/3/include -I/usr/X11R6/include  -I../libltdl  -DQT_THREAD_SUPPORT 
-D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W
-Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE
-Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG -O2 -O2 -mcpu=i686 -pipe
-fno-exceptions -fno-check-new  -ftemplate-depth-99 -O0  -c -o namespace.o `test
-f 'namespace.cc' || echo './'`namespace.cc
/bin/sh ../libtool --silent --mode=link --tag=CXX g++  -Wnon-virtual-dtor
-Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG -DNO_DEBUG
-O2 -O2 -mcpu=i686 -pipe -fno-exceptions -fno-check-new  -ftemplate-depth-99 -O0
   -o mcopidl -L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.1/lib  mcopidl.o
yacc.o scanner.o namespace.o ../mcop/libmcop.la 
/usr/local/lib/./libstdc++.so: undefined reference to
`_Unwind_Resume_or_Rethrow@GCC_3.3'
collect2: ld returned 1 exit status
make[2]: *** [mcopidl] Error 1
make[2]: Leaving directory `/var/tmp/portage/arts-1.1.4/work/arts-1.1.4/mcopidl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/arts-1.1.4/work/arts-1.1.4'
make: *** [all] Error 2

!!! ERROR: kde-base/arts-1.1.4 failed.
!!! Function kde_src_compile, Line 137, Exitcode 2
!!! died running emake, kde_src_compile:make



Expected Results:  
arts-1.1.4, kdelibs-3.1.4, kdebase-3.1.4 would all compile to update my machine.

I have worked around this problem with gcc-3.3 and g++-3.3, which I have on my
machine as an alternate compiler to the default Gentoo compiler 3.2.3-r1.  By
calling "env CC=gcc-3.3 CXX=g++-3.3 CPP=cpp-3.3 CPPXX=cpp-3.3 emerge -U -D
world" the process of updating arts was completed successfully.


hellings@localhost rand $ emerge info
Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r6)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
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"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ libwww
mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv
zlib alsa gdbm berkdb slang readline arts svga java guile X sdl gpm tcpd pam ssl
perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla cdr"
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2003-09-27 12:15:55 UTC
Just worked fine for me with very nearly the same setup.  I'm using -O3
in my CFLAGS, but I can't see that mattering much.

What does gcc-config -l give you on your system?  I bet there's something
wonky
with your gcc setup.
Comment 2 Greg Hellings 2003-09-27 12:31:20 UTC
Here's the output that you requested:

localhost src # gcc-config -l
[1] i686-pc-linux-gnu-3.2.3
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2003-09-27 12:45:37 UTC
You said you had gcc 3.3 on your machine but gcc-config doesn't know about
it.
That seems bad to me.  Did you just install gcc 3.3 "by hand" or something?

What does qpkg -i | grep gcc spit out?
Comment 4 Greg Hellings 2003-09-27 13:55:36 UTC
There is no qpkg on my machine.  And yes, I did install gcc-3.3 "by hand"
as you called it.  I downloaded the source straight from gnu and compiled
and installed it by myself.  I told 3.3 to install with program-suffix=-3.3.
 It is the 3.3 that did work, and the portage-installed 3.2.3-r1 that failed
in the compile.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2003-09-27 14:28:00 UTC
emerge gentoolkit to get qpkg.  I recommend you install gentoolkit on all
your
Gentoo systems as it makes reporting bugs much easier.

I believe your gcc 3.3 install has overwritten some of the files that your
gcc 3.2.3 install is using.  If you really want to have both gcc 3.2.3 and
3.3
installed on this machine you should merge both versions from portage.

For the problem with arts - I think if you remerge gcc 3.2.3 it will probably
work fine.
Comment 6 Joshua Kinard gentoo-dev 2003-10-02 02:31:23 UTC
This bug is very similar to Bug #28802 as far as the error message goe, and
could technically be a duplicate.  However, this bug has a bit more information,
so I'll make it a dependency doe now.

Also, my reading of Comment #4 implies that by naming the gcc 3.3 compiler
executable as "gcc-3.3" apparently resolved the issue, so I'll add Bug #29558
as a dependency as well as it is relelvant to the situation.
Comment 7 Joshua Kinard gentoo-dev 2003-10-02 11:00:49 UTC
Greg: Have you tried remerging gcc-3.2.3 to see if it solves your issue?
 If you want gcc-3.3.x, I recommend using the one available in portage so
they get all the paths right and remove any old 3.2.3 files.
Comment 8 Greg Hellings 2003-10-02 20:59:05 UTC
I have not tried yet.  I compiled the portage gcc-3.3.1-r3 and that has been
fine since then.  I will return to you with the details of using gcc-2.3.2-r1
once it has been reinstalled on top of my machine instead of the gcc-3.3.1-r3.
 Expect word in a day or so.
Comment 9 Greg Hellings 2003-10-03 23:24:07 UTC
Sorry, same error with gcc-3.2.3-r1 reemerged.


!!! ERROR: kde-base/arts-1.1.4 failed.
!!! Function kde_src_compile, Line 137, Exitcode 2
!!! died running emake, kde_src_compile:make

Comment 10 Joshua Kinard gentoo-dev 2003-10-04 16:39:32 UTC
Have a look at Bug #28802, and see my latest comment for a link that looks
to possibly describe the problem.  See if this is the case and post back
either here, or on Bug #28802
Comment 11 Greg Hellings 2003-10-06 07:12:45 UTC
I read the comment you linked to on but 28802, but it was a little unclear
as to exactly how to check for the problem.  That individual message linked
me to two others, and I tried the advice that they gave, then recompiled,
and found that there was still an unsuccessful build, with the same error
as before.  If there is a more specific file or symlink I should look for
and where I should look for it, I could do that.  There was no file or symlink
of the specified name, although there were ones with very similar names,
differing in some of the numbers tacked onto the end.  Let me know further.
Comment 12 Joshua Kinard gentoo-dev 2003-10-23 00:29:49 UTC
gcc-3.3.2 is in portage now, give that a shot.  According to the GCC people,
3.2.3 is no longer actively maintained, so you might want to switch to 3.3.
Comment 13 Anton Birkel 2004-02-08 22:13:32 UTC
arts 1.1.5 also fails against 3.2.3-r3 gcc (my deafult gcc)

g++: Internal error: Terminated (program cc1plus)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[3]: *** [gslschedule.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/arts-1.1.5/work/arts-1.1.5/flow'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/arts-1.1.5/work/arts-1.1.5/flow'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/arts-1.1.5/work/arts-1.1.5'
make: *** [all] Error 2
 
!!! ERROR: kde-base/arts-1.1.5 failed.
!!! Function kde_src_compile, Line 127, Exitcode 2
!!! died running emake, kde_src_compile:make
Comment 14 Alexander Gabert (RETIRED) gentoo-dev 2004-03-05 02:31:23 UTC
can you find the libstdc++ library used and see if it is still the one from the 3.2.3 ebuilds?

i am afraid that the 3.3 installed gcc put in a C++ library that may be not compatible to the lower gcc version.

thanks for your help,

Alex
Comment 15 Alexander Gabert (RETIRED) gentoo-dev 2004-07-08 13:44:39 UTC
whats the status here, anybody of you still alive?

TIA,

Alex
Comment 16 Greg Hellings 2004-07-08 15:03:31 UTC
I'm still alive, but I'm now not using arts/kde and i have gcc-3.3.3-r6.  Sorry.
Comment 17 Caleb Tennis (RETIRED) gentoo-dev 2004-07-22 18:14:52 UTC
closing as invalid.