我在关注Yesod quick start guide,并且我在persistent-sqlite
模块中出现了错误cabal install
和yesod devel
。我已经安装了ghc-7.4.1和haskell-platform-2012.2.0.0。'yesod devel'中的构建失败
$小集团安装:
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
$耶索德devel的:
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
$小集团安装持久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不要停止编译警告?
我有一个看的持久源码包在$ HOME/.cabal /包.cabal文件,查找应引起问题'-Werror' GHC选项,但我发现一个相反,“壁”。对于我创建的yesod项目也是如此,称为'mate'; mate.cabal没有任何'-Werror'。 – rturrado 2012-07-18 17:33:14