[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KDE and Gcc 3.0
From:       Stefan Westerfeld <stefan () space ! twc ! de>
Date:       2001-06-20 10:33:02
[Download RAW message or body]

   Hi!

On Tue, Jun 19, 2001 at 06:54:37PM +0200, Till Krech wrote:
> On Tuesday, 19. June 2001 09:29, Nils Holland wrote:
> > On Tuesday 19 June 2001 00:28, Stefan Westerfeld wrote:
> > > Well, my view of this is that the way gcc3 breaks aRts (by miscompiling
> > > code using virtual inheritance) makes it extremely unlikely that working
> > > around the issue by changing the aRts code is a good idea (it might even
> > > be completely impossible). It's also a regression against previous
> > > versions of GCC (i.e. 2.95.2 compiles virtual inheritance just fine). The
> > > bug is reported to the gcc developers, as
> > >
> > >   c++/3145: virtual inheritance still creates wrong code
> > >
> > > and I hope that it will get fixed there soon.
> >
> > Yes, I just put GCC 3 on my test machine and aRts really won't work
> > properly. Most other parts of KDE do (more or less). If it comes to
> > compilation times - well, I was away most of the time it compiled, so I
> > cannot say much yet ;-) However, I won't put GCC 3 on my workstation until
> > it has shown me that it is able to compile the whole KDE stuff. Seems that
> > we'll have to wait for the next maintenence release of GCC 3 (which will
> > come soon, according to the announcement I got from the gcc-announce list),
> > which will *hopefully* deal with the virtual inheritance bug (and probably
> > some other known bugs as well).
> >
> 
> Hi, I can't comfirm that arts doesn't work. I compiled nearly everything with 
> GCC 3. There was one problem in kdelibs/arts/flow/convert.cc with two 
> assembler statements which didn't properly compile. I just modified one line 
> in this file so that the non assembler versions of the functions 
> convert_stereo_2float_i16le and convert_stereo_2float_i16be were used.

Well, I added a workaround for the convert thing now.

> Now, arts works and (at least) plays the startup sound.

It segfaults on start here. KDE can play startup sounds without artsd using
external players.

stefan@stefan:~/gcc3-script$ gdb /tmp/arts/bin/artsd
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(no debugging symbols found)...
(gdb) r
Starting program: /tmp/arts/bin/artsd 
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
[New Thread 1024 (LWP 8025)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 8025)]
0x40048095 in _ZN4Arts18SoundServerV2_skelC2Ev ()
   from /tmp/arts/lib/libsoundserver_idl.so.0
(gdb) bt
#0  0x40048095 in _ZN4Arts18SoundServerV2_skelC2Ev ()
   from /tmp/arts/lib/libsoundserver_idl.so.0
#1  0x8053cb7 in _ZN4Arts18SoundServerV2_implC1Ev ()
#2  0x8061f1b in _ZN26SoundServerV2_impl_Factory14createInstanceEv ()
#3  0x403d59f5 in _ZN4Arts13ObjectManager6createESs ()
   from /tmp/arts/lib/libmcop.so.0
#4  0x400433f3 in _ZN4Arts18SoundServerV2_base7_createERKSs ()
   from /tmp/arts/lib/libsoundserver_idl.so.0
#5  0x400484d0 in _ZN4Arts13SoundServerV28_CreatorEv ()
   from /tmp/arts/lib/libsoundserver_idl.so.0
#6  0x403d6666 in _ZN4Arts13ObjectManager18addGlobalReferenceENS_6ObjectESs ()
   from /tmp/arts/lib/libmcop.so.0
#7  0x805c102 in _Z17publishReferencesN4Arts13SoundServerV2ENS_12AudioManagerEb ()
#8  0x805ceb0 in main ()
#9  0x4019d38b in __libc_start_main () from /lib/libc.so.6
[...]
stefan@stefan:~/gcc3-script$ c++filt _ZN4Arts18SoundServerV2_skelC2Ev
Arts::SoundServerV2_skel::SoundServerV2_skel()

   Cu... Stefan
-- 
  -* Stefan Westerfeld, stefan@space.twc.de (PGP!), Hamburg/Germany
     KDE Developer, project infos at http://space.twc.de/~stefan/kde *-         
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic