
I'm having an awful time trying to install Leksah in Arch. I tried other times before, I never suceeded. When trying with cabal, eventually I figured I had to install gtk2hs-buildtools. 'cabal install gtk2hs-buildtools' gives an error like this: " [ 7 of 41] Compiling C2HSConfig ( c2hs/toplevel/C2HSConfig.hs, dist/build/gtk2hsC2hs/gtk2hsC2hs-tmp/C2HSConfig.o ) c2hs/toplevel/C2HSConfig.hs:110:1: Unacceptable result type in foreign declaration: CInt When checking declaration: foreign import ccall safe "static bitfield_direction" bitfield_direction :: CInt " Installing from the AUR, after ignoring some upper bound dependencies, I eventually came to the same kind of problem compiling haskell-gio: " [ 2 of 24] Compiling System.GIO.Types ( dist/build/System/GIO/Types.hs, dist/build/System/GIO/Types.o ) System/GIO/Types.chs:1025:1: Unacceptable result type in foreign declaration: CULong When checking declaration: foreign import ccall unsafe "static g_output_stream_get_type" g_output_stream_get_type :: CULong " Is there a sane way to install it without going through all this trouble? Thanks, Eric

I don't know much about this first-hand, but from what I've heard Leksah isn't usually kept much up to date with it's dependencies. Probably your problem comes from this dependency [1]: ghc (≥6.10.1 & <7.5) Note that in [extra] you find ghc 7.6.1. This is just a guess, though. Alessandro [1] http://hackage.haskell.org/package/leksah

On Tue, Oct 30, 2012 at 7:00 PM, Alessandro Pezzoni
I don't know much about this first-hand, but from what I've heard Leksah isn't usually kept much up to date with it's dependencies. Probably your problem comes from this dependency [1]: ghc (≥6.10.1 & <7.5)
Note that in [extra] you find ghc 7.6.1. This is just a guess, though.
Alessandro
Indeed, Leksah is problematic. As for the particular issue you see with building gtk2hs-buildtools you can have a look at the patches at https://github.com/archhaskell/habs/tree/master/patches. /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus

Thanks Magnus. I suggest you commit those patches upstream as well because
they are relevant to anyone on GHC 7.6 and beyond.
On Wed, Oct 31, 2012 at 6:29 PM, Magnus Therning
On Tue, Oct 30, 2012 at 7:00 PM, Alessandro Pezzoni
wrote: I don't know much about this first-hand, but from what I've heard Leksah isn't usually kept much up to date with it's dependencies. Probably your problem comes from this dependency [1]: ghc (≥6.10.1 & <7.5)
Note that in [extra] you find ghc 7.6.1. This is just a guess, though.
Alessandro
Indeed, Leksah is problematic. As for the particular issue you see with building gtk2hs-buildtools you can have a look at the patches at https://github.com/archhaskell/habs/tree/master/patches.
/M
-- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus
_______________________________________________ arch-haskell mailing list arch-haskell@haskell.org http://www.haskell.org/mailman/listinfo/arch-haskell

On Wed, Oct 31, 2012 at 8:31 AM, Mike Ledger
Thanks Magnus. I suggest you commit those patches upstream as well because they are relevant to anyone on GHC 7.6 and beyond.
These are "stolen" from the package in [extra] (or wherever it is) and the communication suggests they were developed together with upstream. I'll leave it to the Arch devs to communicate it. /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus
participants (4)
-
Alessandro Pezzoni
-
Eric Velten de Melo
-
Magnus Therning
-
Mike Ledger