【发布时间】:2020-03-13 19:51:29
【问题描述】:
当我安装 glib 时,这是我得到的错误。我认为我的问题与“遗留后备”部分有关,但我无法解决。
ghc 版本:8.6.5
阴谋集团版本:3.0.0.0
$ cabal install glib
Resolving dependencies...
Build profile: -w ghc-8.6.5 -O1
In order, the following will be built (use -v for more details):
- glib-0.13.8.0 (lib:glib) (requires build)
Starting glib-0.13.8.0 (all, legacy fallback)
Building glib-0.13.8.0 (all, legacy fallback)
Failed to build glib-0.13.8.0.
Build log (
/home/dagon/.cabal/logs/ghc-8.6.5/glib-0.13.8.0-83f4ff904d65860d6da22747d08c5e962bdbbd1be59c0e6934c51b56a26d7fa7.log
):
[1 of 1] Compiling Main ( /tmp/cabal-install.-14521/dist-newstyle/tmp/src-14521/glib-0.13.8.0/dist/setup/setup.hs, /tmp/cabal-install.-14521/dist-newstyle/tmp/src-14521/glib-0.13.8.0/dist/setup/Main.o )
Linking /tmp/cabal-install.-14521/dist-newstyle/tmp/src-14521/glib-0.13.8.0/dist/setup/setup ...
Configuring glib-0.13.8.0...
Preprocessing library for glib-0.13.8.0..
c2hs/c/CAST.hs:(1017,5)-(1069,22): Non-exhaustive patterns in function put_
cabal: Failed to build glib-0.13.8.0. See the build log above for details.
【问题讨论】:
-
我无法重现这一点:glib-0.13.8.0 与 GHC 8.6.5 对我来说构建得很好。也许您的系统库不兼容?!您可能想在
glib的问题跟踪器上报告此问题。