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

List:       kde-devel
Subject:    Re: KDE and Gcc 3.0
From:       Till Krech <till () snafu ! de>
Date:       2001-06-19 16:54:37
[Download RAW message or body]

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.
Now, arts works and (at least) plays the startup sound. kdebase compiled 
without any problems though there were some interesting warnings, e.g.: 
netpref.cpp:24: warning: passing `double' for argument 2 of
 `QVBoxLayout::QVBoxLayout(QWidget*, int, int, const char*)'
In koffice there were three problems with std::fabs, std::cos and std::sin.
I just commented out the std:: (although I'm not shure if this is correct) 
and everything compiled and seems to run without problems.

Compile time is slower, I would say 150-200 % of GCC 2.95.1

The problems, I have encontered seem to be rather trivial. I would recommend 
to fix the parts which do not compile properly so that they compile on GCC 
2.95.1 and GCC 3.0, if needed, with #ifdefs.

At least some of the users will compile kde themselves and perhaps also with 
the new gcc, not knowing that there may be problems.

And last but not least. Why not help the gcc developers to improve their code 
by using their new compiler.

greetings, Till

> Greetings
> Nils
 
>> 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