Error compiling kdelibs4_snapshot on AMD64

Thiago Macieira thiago at
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:
$ nm -D .libs/ | wc -l
$ objdump -h .libs/ | grep \\.dyns
  1 .dynsym       00002480  00001994  00001994  00001994  2**2
  2 .dynstr       0000490f  00003e14  00003e14  00003e14  2**0

Without those flags (only -Os):
$ nm -D .libs/ | wc -l
$ objdump -h .libs/ | 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) - thiago (AT)
  thiago.macieira (AT)     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: <>

More information about the kde-core-devel mailing list