首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >"cabal install happy“导致内存溢出。(GHC 7.8.2)

"cabal install happy“导致内存溢出。(GHC 7.8.2)
EN

Stack Overflow用户
提问于 2014-04-18 00:42:01
回答 1查看 272关注 0票数 6

在过去的几天里,我一直在为正确安装而感到高兴,虽然我发现让cabal install happy不仅仅是错误(通过使用apt-get安装happy-1.19并将/opt/happy/1.19.3/bin添加到PATH中)是一件具有挑战性的事情,但现在它通过源代码运行,直到它到达ProduceCode (15/18),似乎进入了一个无限循环。它会累积内存,直到我按下Ctrl+C或在整个系统变得无响应时关闭电源。

我想我记得这不是GHC-HEAD的问题,但我不想使用head,因为它似乎每隔几天就更新一次,需要我不断地重新构建我的软件包,除非有一个我不知道的从head迁移到head+1的诀窍。

代码语言:javascript
复制
$ ghc -v
Glasgow Haskell Compiler, Version 7.8.2, stage 2 booted by GHC version 7.4.1
Using binary package database: /opt/ghc/7.8.2/lib/ghc-7.8.2/package.conf.d/package.cache
Using binary package database: /home/house/.ghc/x86_64-linux-7.8.2/package.conf.d/package.cache
package oeis-0.3.5-26e4c8a4e89d20dbd9e2d89ad4774bd0 is unusable due to missing or recursive dependencies:
HTTP-4000.2.12-2793df5d0fb675f1a42bc04cfdf74851
hiding package Cabal-1.18.1.3 to avoid conflict with later version Cabal-1.20.0
hiding package Cabal-1.19.2 to avoid conflict with later version Cabal-1.20.0
wired-in package ghc-prim mapped to ghc-prim-0.3.1.0-948744e1f99cc8bcc7c7d3ba60c7c2d8
wired-in package integer-gmp mapped to integer-gmp-0.5.1.0-dc47f6b546fc171f67a7f7d311684a99
wired-in package base mapped to base-4.7.0.0-018311399e3b6350d5be3a16b144df9b
wired-in package rts mapped to builtin_rts
wired-in package template-haskell mapped to template-haskell-2.9.0.0-dcc8c210fb02937e104bc1784d7b0f06
wired-in package dph-seq not found.
wired-in package dph-par not found.
Hsc static flags: 
*** Deleting temp files:
Deleting: 
*** Deleting temp dirs:
Deleting: 
ghc: no input files
Usage: For basic information, try the `--help' option.

$ cabal --version 
cabal-install version 1.20.0.0
using version 1.20.0 of the Cabal library 
EN

回答 1

Stack Overflow用户

发布于 2016-03-20 03:32:42

来自评论的社区Wiki答案:

对我来说,它适用于-O-O2 -fno-spec-constr,但当我尝试使用-O2构建时,我在ghc达到4 4gb内存后终止了它

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23138855

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档