为什么GHC需要很长时间才能链接? [英] Why does GHC take so long to link?

查看:100
本文介绍了为什么GHC需要很长时间才能链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 > cabal update 
> cabal install cabal-install
.......
[编译配置。 Client.Install(Distribution / Client / Install.hs,dist / build / cabal / cabal -tmp / Distribution / Client / Install.o)
编译Main(Main.hs,dist / build / cabal / cabal-tmp / Main.o)
链接dist / build / cabal / cabal ..





真诚!

解决方案

很可能它是链接器本身。来自binutils的标准 ld 已知很慢。如果您想加快速度(并且在边缘生活),请尝试安装 Gold连接。在Ubuntu上(我假设Debian),那就是:
$ b $ pre $ sudo apt-get install binutils-gold

我一直在家庭系统上使用它一段时间,现在还没有问题。


>cabal update
>cabal install cabal-install
.......
[43 of 44] Compiling Distribution.Client.Install ( Distribution/Client/Install.hs, dist/build/cabal/cabal-tmp/Distribution/Client/Install.o )
[44 of 44] Compiling Main             ( Main.hs, dist/build/cabal/cabal-tmp/Main.o )
Linking dist/build/cabal/cabal ..

then i will wait for a VERY long time for it to finish linking.

Sincerely!

解决方案

Very likely it's the linker itself. The standard ld from binutils is known to be slow. If you want to speed things up (and live a bit on the edge), try installing the Gold linker. On Ubuntu (and I assume Debian), that would be:

sudo apt-get install binutils-gold

I've been using it on my home system for a while now, no issues yet.

这篇关于为什么GHC需要很长时间才能链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆