我在關注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