gpt4 book ai didi

haskell - 'yesod devel' 期间构建失败

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

我正在关注 Yesod quick start guide我在执行 cabal install 时遇到错误和 yesod devel关于persistent-sqlite模块。我已经安装了 ghc-7.4.1 和 haskell-platform-2012.2.0.0。

$阴谋安装:

Loading package persistent-sqlite-0.9.0.2 ... linking ... ghc: /home/roberto/.cabal/lib/persistent-sqlite-0.9.0.2/ghc-7.4.1/HSpersistent-sqlite-0.9.0.2.o: unknown symbol `__warn_memset_zero_len'

ghc: unable to load package `persistent-sqlite-0.9.0.2'

cabal: Error: some packages failed to install: mate-0.0.0 failed during the building phase. The exception was: ExitFailure 1



$ yesod 开发:

ghc: /home/roberto/.cabal/lib/persistent-sqlite-0.9.0.2/ghc-7.4.1/HSpersistent-sqlite-0.9.0.2.o: unknown symbol `__warn_memset_zero_len'

ghc: unable to load package `persistent-sqlite-0.9.0.2' Build failure, pausing...



$ ghc-pkg 列表:
persistent-sqlite-0.9.0.2
yesod-platform-1.0.5

$ cabal install persistent-sqlite --reinstall

In function ‘memset’,

inlined from ‘exprDup’ at cbits/sqlite3.c:68471:0: 

/usr/include/bits/string3.h:82:0: warning: call to ‘__warn_memset_zero_len’ declared with attribute warning: memset used with constant zero length parameter; this could be due to transposed parameters



如果我把那一行注释掉, __warn_memset_zero_len();/usr/include/bits/string3.h:82 ,一切顺利。有没有合适的解决方案,比如告诉 ghc 不要停止编译警告?

最佳答案

运行时出现未知符号错误 yesod devel通常是由于未能在 exposed-modules 中包含模块造成的或 other-modules在你的应用程序的 cabal 文件中。

关于haskell - 'yesod devel' 期间构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11485555/

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