2014-02-20 21 views
5

的信息素质我怀疑这是无论是与ghccabal-install问题:惊天动地安装失去了构建输出

经常拿这样的形式建立信息:

Resolving dependencies... 
    Configuring ltk-0.8.0.6... 
    Building ltk-0.8.0.6... 
    Preprocessing library ltk-0.8.0.6... 
    [ 1 of 12] Compiling Graphics.UI.Frame.Panes (src/Graphics/UI/Frame/Panes.hs, dist/build/Graphics/UI/Frame/Panes.o) 
    [ 2 of 12] Compiling Graphics.UI.Editor.Parameters (src/Graphics/UI/Editor/Parameters.hs, dist/build/Graphics/UI/Editor/Parameters.o) 
    [ 3 of 12] Compiling Control.Event (src/Control/Event.hs, dist/build/Control/Event.o) 
    [ 4 of 12] Compiling MyMissing  (src/MyMissing.hs, dist/build/MyMissing.o) 
    [ 5 of 12] Compiling Graphics.UI.Editor.Basics (src/Graphics/UI/Editor/Basics.hs, dist/build/Graphics/UI/Editor/Basics.o) 
    [ 6 of 12] Compiling Graphics.UI.Editor.MakeEditor (src/Graphics/UI/Editor/MakeEditor.hs, dist/build/Graphics/UI/Editor/MakeEditor.o) 
    [ 7 of 12] Compiling Text.PrinterParser (src/Text/PrinterParser.hs, dist/build/Text/PrinterParser.o) 

然而,现在我得到这种类型的构建输出的:

Configuring binary-shared-0.8.3... 
Configuring cairo-0.12.5.1... 
Building binary-shared-0.8.3... 
Building cairo-0.12.5.1... 
Installed binary-shared-0.8.3 
Configuring ghc-paths-0.1.0.9... 
Building ghc-paths-0.1.0.9... 
Installed ghc-paths-0.1.0.9 
Configuring glib-0.12.5.0... 

正如你所看到的,cabal-installghc,无论是导致亲瑕疵,现在似乎正在引发不良的幻影。根据我的cabal配置,我运行在默认的详细级别为1.是否有一些配置选项可能导致此特定行为?换句话说,我怎样才能恢复原来的行为?版本1.18.0.2

+0

偶然你现在在使用cabal沙箱吗?您打印的输出来自安装*软件包*,而您的原始输出来自软件包中的building * modules *。它看起来像最小的输出片段是从软件包的初始安装到沙盒,在完成之后,您应该看到您期望的输出。 –

+0

@JohnL,不,我不在沙箱里。例如,我刚刚安装了'hoogle',并且没有模块编译输出,如安装'hoogle'时预期的那样。无论我是否在沙箱中,都会发生此行为。 – eazar001

+0

@JohnL,即如果我要再次安装'leksah',从所需的'verbose'输出,它将不会显示如上所示的'rich'输出。我不知道是什么导致了这种副作用。 – eazar001

回答

5

感谢@Michael Snoyman指出配置jobs参数或明确地将其作为-j标志传递将会将与构建输出有关的许多信息重定向到文本文件。更多信息可用here.