Fwd: Error instaling Happstack on Windows - cabal bug?

Trying to install on Windows, i am having a strange problem (may actually be some cabal bug?), More specifically trying to install happstack-util [13 of 19] Compiling Happstack.Crypto.MD5 ( src\Happstack\Crypto\MD5.hs, dist\bu ild\Happstack\Crypto\MD5.o ) cabal: Error: some packages failed to install: happstack-util-0.5.0 failed during the building phase. The exception was: ExitFailure (-1073741819) A Windows prompt shows problems (Application not properly initialized) with a "perl.exe" program. Does cabal use perl (that's completely unexpected for me)? I did install perl and put it on the path and that didn't solve it (maybe there is a configuration parameter to point to perl's executable?).... Thanks, Flavio

On 5 May 2010 08:29, Flavio Botelho
A Windows prompt shows problems (Application not properly initialized) with a "perl.exe" program. Does cabal use perl (that's completely unexpected for me)?
GHC does if you use -fvia-C (which is not the default even on Windows AFAIK). -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

Hi all A cursory look at Happstack.Crypto.MD5 shows it uses -fvia-c: {-# LANGUAGE BangPatterns #-} {-# OPTIONS_GHC -funbox-strict-fields -fvia-c -optc-funroll-all-loops -optc-O3 #-} -- -- Module : Happstack.Crypto.MD5 -- License : BSD3 ........ GHC (on Windows) comes with perl so it shouldn't need installing again. As an expedience, one could try removing the OPTIONS_GHC pragma to see if it compiles at least (there may be other modules that use fvia-c too). Best wishes Stephen

Stephen Tetley
Hi all
A cursory look at Happstack.Crypto.MD5 shows it uses -fvia-c:
{-# LANGUAGE BangPatterns #-} {-# OPTIONS_GHC -funbox-strict-fields -fvia-c -optc-funroll-all-loops -optc-O3 #-}
I would hazard a guess that this is at an attempt to improve performance (I wouldn't know if it actually does or not though). -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

Manually removing -fvia-c solved it.
Thanks
On Wed, May 5, 2010 at 7:11 AM, Ivan Lazar Miljenovic
Stephen Tetley
writes: Hi all
A cursory look at Happstack.Crypto.MD5 shows it uses -fvia-c:
{-# LANGUAGE BangPatterns #-} {-# OPTIONS_GHC -funbox-strict-fields -fvia-c -optc-funroll-all-loops -optc-O3 #-}
I would hazard a guess that this is at an attempt to improve performance (I wouldn't know if it actually does or not though).
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (4)
-
Flavio Botelho
-
Ivan Lazar Miljenovic
-
Ivan Miljenovic
-
Stephen Tetley