
I have seen the dreaded "ExitFailure 1" many times when a package fails to install (under Linux or Windows), and I wonder why something more helpful cannot be printed? Sometimes one gets a variant of this where the message is "this system is not compatible with this package," but the user must study the foo.cabal file to determine what is missing. Also, it seems that the only way to determine if a package will install under Windows is to try and hope for the best (often getting "ExitFailure 1" if it fails). Wouldn't it make more sense to tag packages with the OS and other dependencies and fail with a helpful message like "Windows not supported" if appropriate? It appears that some packages (like lens-4.1) have version dependencies that cannot be satisfied (at least not on my Linux and Windows boxes), so it appears that the Hackage hosting process suffers from a variant of the well-known "dll hell" problem. I tried the new (Cabal 1.18.0) sandbox feature but this did not help in my case. Any comments on these issues would be appreciated. Thanks, Dominick

Hi Dominick,
An "ExitFailure 1" is definitely not helpful and we should generally try to
figure out what went wrong and print something more specific. One example
where this happens if I recall correctly is if GHC runs out of RAM and
exits, something that we could detect.
I think the best way forward right now is to file bugs for concrete cases
where the error reporting is bad. Include what (you think) went wrong and
what kind of error information would have been useful to you.
The bug tracker is at https://github.com/haskell/cabal/issues
On Mon, Mar 24, 2014 at 3:40 PM, Dominick Samperi
I have seen the dreaded "ExitFailure 1" many times when a package fails to install (under Linux or Windows), and I wonder why something more helpful cannot be printed? Sometimes one gets a variant of this where the message is "this system is not compatible with this package," but the user must study the foo.cabal file to determine what is missing.
Also, it seems that the only way to determine if a package will install under Windows is to try and hope for the best (often getting "ExitFailure 1" if it fails). Wouldn't it make more sense to tag packages with the OS and other dependencies and fail with a helpful message like "Windows not supported" if appropriate?
It appears that some packages (like lens-4.1) have version dependencies that cannot be satisfied (at least not on my Linux and Windows boxes), so it appears that the Hackage hosting process suffers from a variant of the well-known "dll hell" problem.
I tried the new (Cabal 1.18.0) sandbox feature but this did not help in my case.
Any comments on these issues would be appreciated.
Thanks, Dominick _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Mon, 24 Mar 2014 15:40:17 +0100, Dominick Samperi
I have seen the dreaded "ExitFailure 1" many times when a package fails to install (under Linux or Windows), and I wonder why something more helpful cannot be printed? Sometimes one gets a variant of this where the message is "this system is not compatible with this package," but the user must study the foo.cabal file to determine what is missing.
Also, it seems that the only way to determine if a package will install under Windows is to try and hope for the best (often getting "ExitFailure 1" if it fails). Wouldn't it make more sense to tag packages with the OS and other dependencies and fail with a helpful message like "Windows not supported" if appropriate?
A faster way to discover if a package can be installed on Windows: cabal install lens-4.1 --dry-run If the package depends on the package unix, it's not Windows compatible. This is of course not always sufficient, e.g. if you need to install non-Haskell software first. Regards, Henk-Jan van Tuyl -- Folding@home What if you could share your unused computer power to help find a cure? In just 5 minutes you can join the world's biggest networked computer and get us closer sooner. Watch the video. http://folding.stanford.edu/ http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming --
participants (3)
-
Dominick Samperi
-
Henk-Jan van Tuyl
-
Johan Tibell