Error compiling kdelibs4_snapshot on AMD64

Thiago Macieira thiago at kde.org
Fri May 19 09:56:33 BST 2006


Dirk Mueller wrote:
>> AFAIU, the problem on AMD-64 is a compiler bug, so can't we bug people
>> to upgrade their compilers?
>
>Haha, good one.

I meant upgrade from 4.0.1 to 4.0.2 or 4.0.3, if those work well enough.

>> Is there a 4.0.x release that works?
>
>There are 6 outstanding visibility bugs in gcc 4.2 (SVN) even, so it
> depends on which level of "brokeness" you want to work around.

Do you have an idea what those problems are? And the problems that 4.0.x 
has? It would be interesting to know, so as to know what we should avoid.

What I can say is that visibility improves library size and symbols a lot.

Here's a comparison on one specific case:
compiled with -Os -fvisibility=hidden -fvisibility-inlines-hidden:
 190508  libdbus-qt4-1.so.1.0.0*
$ nm -D .libs/libdbus-qt4-1.so | wc -l
572
$ objdump -h .libs/libdbus-qt4-1.so | grep \\.dyns
  1 .dynsym       00002480  00001994  00001994  00001994  2**2
  2 .dynstr       0000490f  00003e14  00003e14  00003e14  2**0

Without those flags (only -Os):
 313964  libdbus-qt4-1.so.1.0.0*
$ nm -D .libs/libdbus-qt4-1.so | wc -l
1846
$ objdump -h .libs/libdbus-qt4-1.so | grep \\.dyns
  1 .dynsym       00007420  00002db0  00002db0  00002db0  2**2
  2 .dynstr       0001339d  0000a1d0  0000a1d0  0000a1d0  2**0

There is a reduction of almost 40% in size.
-- 
Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
  thiago.macieira (AT) trolltech.com     Trolltech AS
    GPG: 0x6EF45358                   |  Sandakerveien 116,
    E067 918B B660 DBD1 105C          |  NO-0402
    966C 33F5 F005 6EF4 5358          |  Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060519/50da2204/attachment.sig>


More information about the kde-core-devel mailing list