Skip to content

very slow linking of executables with ld.bfd < 2.27

While building profiled executables with 8.2.1rc2 I've noticed the link times seem to have significantly regressed.

I don't have a minimal test case.

Testing on cabal head source tree

cabal --version
>cabal-install version 2.1.0.0
>compiled using version 2.1.0.0 of the Cabal library 
cabal new-configure --enable-profiling --enable-newer --with-ghc=/opt/ghc-8.2.1/bin/ghc
cabal build cabal-install

# hit Ctrl-C during linking
time cabal build cabal-install

gives real 1m54.833s user 1m52.936s sys 0m1.620s

doing the same with 8.0.2 links in less than a second

Trac metadata
Trac field Value
Version 8.2.1-rc2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Edited by Douglas Wilson
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information