gpt4 book ai didi

haskell - Mac、XCode 4、自制 Haskell : Can't install utf8-light?

转载 作者:行者123 更新时间:2023-12-02 18:33:55 26 4
gpt4 key购买 nike

我不明白以下错误消息,但我知道我之前已经在 Linux 上安装了 utf8-light ,没有出现任何问题。有人可以阐明出了什么问题吗?这是 LLVM 问题、GHC 7 问题还是 utf8-light 问题?

$ cabal install utf8-light
Resolving dependencies...
Configuring utf8-light-0.4...
Preprocessing library utf8-light-0.4...
Building utf8-light-0.4...
[1 of 1] Compiling Codec.Binary.UTF8.Light ( src/Codec/Binary/UTF8/Light.hs, dist/build/Codec/Binary/UTF8/Light.o )
SpecConstr
Function `$j_s2oG{v} [lid]'
has five call patterns, but the limit is 3
Use -fspec-constr-count=n to set the bound
Use -dppr-debug to see specialisations
In file included from /usr/local/Cellar/ghc/7.0.3/lib/ghc-7.0.3/include/Stg.h:230,

from /var/folders/1+/1+3Ih2g9EriMfl8UHRtdQU+++TM/-Tmp-/ghc39083_0/ghc39083_0.hc:3:0:


/usr/local/Cellar/ghc/7.0.3/lib/ghc-7.0.3/include/stg/Regs.h:177:0:
sorry, unimplemented: LLVM cannot handle register variable ‘R1’, report a bug
cabal: Error: some packages failed to install:
utf8-light-0.4 failed during the building phase. The exception was:
ExitFailure 1

最佳答案

由于这是 Mac 上 LLVM 的问题,因此您有几个选择:

  • 安装 GHC 7.0.3(它修复了此问题,IIRC),
  • 等到下周新版本的 Haskell 平台发布时
  • 通过 GHC 的其他后端之一进行编译,例如 -fasm 或 -fvia-C

例如

$ cabal install utf8-string --ghc-options=-fasm

应该强制使用 native 代码生成器。

关于haskell - Mac、XCode 4、自制 Haskell : Can't install utf8-light?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5568729/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com