Improving link time building llvm

Just FYI, we discovered that GNU binutils 2.17 has a nasty bug in the
linker that causes excessive link time when building llvm. We switched
to using cvs binutils and our link times went from minutes to seconds.

I didn't see anything about this on the web pages. It might be good
information to add to the Getting Started guide.

                                              -Dave

Just FYI, we discovered that GNU binutils 2.17 has a nasty bug in the
linker that causes excessive link time when building llvm. We switched
to using cvs binutils and our link times went from minutes to seconds.

Is there a binutils snapshot that can be used instead ?

Aaron

I would assume that any recent snapshot would have the fix. I don't
know exactly when they went in.

The "Linux binutils" apparently has the fix. I believe most Linux
distributions supply that version.

                                        -Dave

Here is the bug:
http://sourceware.org/bugzilla/show_bug.cgi?id=3111

It was fixed in 2.17.50.0.4

Cheers,
Rafael

Just to clarify, 2.17.50.0.4 is the "Linux binutils" which won't help those
not working on Linux or not using the "Linux binutils." The "Linux binutils"
is essentially a pre-release version of the next GNU binutils and as such
it can sometimes include less than optimal patches.

Again, FYI.

                                           -Dave

Excellent, thanks for the info. I added it to the end of:
http://llvm.org/docs/GettingStarted.html#brokengcc

-Chris

Just so people aren't more confused, while eventually most Linux
distributions will supply this version, I suspect that many are
currently on Linux binutils 2.17, the release version, and have not
moved up the 2.17.50.0.* pre-release chain. At the very least, Gentoo,
typically thought of as a bleeding edge distribution, has those
versions very forcibly _not_ installed, so it might benefit people to
explicitly try and grab the latest pre-release version for their
distro.

-Chandler

PS: Having cruised around some websites, Debian testing and unstable
have good versions of binutils, but stable predates it (i think, weird
versioning); Ubuntu should be fine, they're usually not on Debian
stable; and FC7 I _think_ is safe, but really unsure here, could find
very little information. Perhaps best just to try and verify on your
system.