I am following the Yesod quick start guide and I am getting errors doing cabal install
and yesod devel
regarding the persistent-sqlite
module. I've already installed ghc-7.4.1 and haskell-platform-2012.2.0.0.
$ cabal install:
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 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 list:
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
If I comment that line out, __warn_memset_zero_len();
in /usr/include/bits/string3.h:82
, everything goes fine. Is there a proper solution, like telling ghc not to stop on a compilation warning?
-Werror
ghc-option that should be causing the problem, but I found a-Wall
instead. And the same for the yesod project I'm creating, calledmate
; mate.cabal didn't have any-Werror
. – rturrado