When I build our application on Fedora Core 5 using gcc/ld the main library of
our (quite large) application links in about 10s on an older 1.7GHz Pentium
4/Xeon system. When I build the same app on my new PCs that have gcc 4.1.1 on
them, compiling is much faster, but linking is appallingly slow, about 2:30 for
the same binary. Factoring 3x speed difference in hardware, this is around 18x
slower!!!

I have seen at least one other report of extremely slow linking:
http://www.gatago.com/gnu/g++/help/19351814.html

I looked at the suggestions above: 
1. this is local linking, on the local filesystem
2. I did "top" and ld is consuming 100% cpu throughout.

This happens on two separate modern PCs that have had Fedora 5 + yum update (to
gcc 4.1.1) done on them.

Any help in trying to diagnose this is welcome. Note that every other operation
I can think of on these PCs is very fast -- it is only this one operation, ld,
that is extremely slow.


-- 
           Summary: ld 4.1.1 runs EXTREMLY slow compared to 4.0
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: baisa at brad-aisa dot com
 GCC build triplet: i386-redhat-linux
  GCC host triplet: i386-redhat-linux
GCC target triplet: i386-redhat-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28967

Reply via email to