Re: [Gtk2hs-devel] GHC 7.6.1 can not build the latest version of haskell glib

2012-09-25 Thread Thomas Dziedzic
It seems that someone had a similar issue here:
http://sourceforge.net/mailarchive/forum.php?thread_name=CAJ727GgyNthppKbduLxvA8mqusTK%2Bh7gotzCg2a5G4wcme%3DYUg%40mail.gmail.comforum_name=gtk2hs-users

Also, upstream says that the type of the dynamic wrapper should be of
type ft - IO (FunPtr ft) for any foreign type ft

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel


Re: [Gtk2hs-devel] GHC 7.6.1 can not build the latest version of haskell glib

2012-09-16 Thread wagnerdm
I think this is a regression in GHC. Bug report here:  
http://hackage.haskell.org/trac/ghc/ticket/7243

Let's see what HQ has to say about it.

~d

Quoting Thomas Dziedzic gos...@gmail.com:

 Hi,

 I reported my full problem here:
 http://hackage.haskell.org/trac/gtk2hs/ticket/1272

 The commands I run are:
 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
   --prefix=/usr --docdir=/usr/share/doc/haskell-glib \
   --libsubdir=\$compiler/site-local/\$pkgid

 runhaskell Setup build

 and the output is:

 Building glib-0.12.3.1...
 Preprocessing library glib-0.12.3.1...
 [ 1 of 21] Compiling System.Glib.Attributes (
 System/Glib/Attributes.hs, dist/build/System/Glib/Attributes.o )
 [ 2 of 21] Compiling System.Glib.Flags ( System/Glib/Flags.hs,
 dist/build/System/Glib/Flags.o )
 [ 3 of 21] Compiling System.Glib.FFI  ( System/Glib/FFI.hs,
 dist/build/System/Glib/FFI.o )
 [ 4 of 21] Compiling System.Glib.Types (
 dist/build/System/Glib/Types.hs, dist/build/System/Glib/Types.o )
 [ 5 of 21] Compiling System.Glib.GString (
 dist/build/System/Glib/GString.hs, dist/build/System/Glib/GString.o )
 [ 6 of 21] Compiling System.Glib.GList (
 dist/build/System/Glib/GList.hs, dist/build/System/Glib/GList.o )
 [ 7 of 21] Compiling System.Glib.GType (
 dist/build/System/Glib/GType.hs, dist/build/System/Glib/GType.o )
 [ 8 of 21] Compiling System.Glib.GValue (
 dist/build/System/Glib/GValue.hs, dist/build/System/Glib/GValue.o )
 [ 9 of 21] Compiling System.Glib.GParameter (
 dist/build/System/Glib/GParameter.hs,
 dist/build/System/Glib/GParameter.o )
 [10 of 21] Compiling System.Glib.GTypeConstants (
 dist/build/System/Glib/GTypeConstants.hs,
 dist/build/System/Glib/GTypeConstants.o )
 [11 of 21] Compiling System.Glib.UTFString ( System/Glib/UTFString.hs,
 dist/build/System/Glib/UTFString.o )
 [12 of 21] Compiling System.Glib.GObject (
 dist/build/System/Glib/GObject.hs, dist/build/System/Glib/GObject.o )

 System/Glib/GObject.chs:130:1:
 Unacceptable result type in foreign declaration:
   IO (FunPtr (Ptr () - IO ()))
 When checking declaration:
   foreign import ccall safe wrapper mkDestroyNotifyPtr
 :: IO () - IO DestroyNotify


 The link to a workaround that fixes this problem is at
 https://github.com/vodik/gtk2hs-patched-ghc-7.6.1/commit/74ba88a10f578323e861f352cac09e722419be1c

 note that this patch is only a workaround for the error and not a proper fix.
 It only exists to demonstrate what ghc is expecting.

 I have attempted to fix this error but I just do not understand enough
 about the code to be able to successfully debug this.

 Thanks for any help!

 --
 Got visibility?
 Most devs has no idea what their production app looks like.
 Find out how fast your code is with AppDynamics Lite.
 http://ad.doubleclick.net/clk;262219671;13503038;y?
 http://info.appdynamics.com/FreeJavaPerformanceDownload.html
 ___
 Gtk2hs-devel mailing list
 Gtk2hs-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel




--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel


Re: [Gtk2hs-devel] GHC 7.6.1 can not build the latest version of haskell glib

2012-09-14 Thread wagnerdm
Thanks for the heads up. I'll take a look over the weekend.
~d

Quoting Thomas Dziedzic gos...@gmail.com:

 Hi,

 I reported my full problem here:
 http://hackage.haskell.org/trac/gtk2hs/ticket/1272

 The commands I run are:
 runhaskell Setup configure -O -p --enable-split-objs --enable-shared \
   --prefix=/usr --docdir=/usr/share/doc/haskell-glib \
   --libsubdir=\$compiler/site-local/\$pkgid

 runhaskell Setup build

 and the output is:

 Building glib-0.12.3.1...
 Preprocessing library glib-0.12.3.1...
 [ 1 of 21] Compiling System.Glib.Attributes (
 System/Glib/Attributes.hs, dist/build/System/Glib/Attributes.o )
 [ 2 of 21] Compiling System.Glib.Flags ( System/Glib/Flags.hs,
 dist/build/System/Glib/Flags.o )
 [ 3 of 21] Compiling System.Glib.FFI  ( System/Glib/FFI.hs,
 dist/build/System/Glib/FFI.o )
 [ 4 of 21] Compiling System.Glib.Types (
 dist/build/System/Glib/Types.hs, dist/build/System/Glib/Types.o )
 [ 5 of 21] Compiling System.Glib.GString (
 dist/build/System/Glib/GString.hs, dist/build/System/Glib/GString.o )
 [ 6 of 21] Compiling System.Glib.GList (
 dist/build/System/Glib/GList.hs, dist/build/System/Glib/GList.o )
 [ 7 of 21] Compiling System.Glib.GType (
 dist/build/System/Glib/GType.hs, dist/build/System/Glib/GType.o )
 [ 8 of 21] Compiling System.Glib.GValue (
 dist/build/System/Glib/GValue.hs, dist/build/System/Glib/GValue.o )
 [ 9 of 21] Compiling System.Glib.GParameter (
 dist/build/System/Glib/GParameter.hs,
 dist/build/System/Glib/GParameter.o )
 [10 of 21] Compiling System.Glib.GTypeConstants (
 dist/build/System/Glib/GTypeConstants.hs,
 dist/build/System/Glib/GTypeConstants.o )
 [11 of 21] Compiling System.Glib.UTFString ( System/Glib/UTFString.hs,
 dist/build/System/Glib/UTFString.o )
 [12 of 21] Compiling System.Glib.GObject (
 dist/build/System/Glib/GObject.hs, dist/build/System/Glib/GObject.o )

 System/Glib/GObject.chs:130:1:
 Unacceptable result type in foreign declaration:
   IO (FunPtr (Ptr () - IO ()))
 When checking declaration:
   foreign import ccall safe wrapper mkDestroyNotifyPtr
 :: IO () - IO DestroyNotify


 The link to a workaround that fixes this problem is at
 https://github.com/vodik/gtk2hs-patched-ghc-7.6.1/commit/74ba88a10f578323e861f352cac09e722419be1c

 note that this patch is only a workaround for the error and not a proper fix.
 It only exists to demonstrate what ghc is expecting.

 I have attempted to fix this error but I just do not understand enough
 about the code to be able to successfully debug this.

 Thanks for any help!

 --
 Got visibility?
 Most devs has no idea what their production app looks like.
 Find out how fast your code is with AppDynamics Lite.
 http://ad.doubleclick.net/clk;262219671;13503038;y?
 http://info.appdynamics.com/FreeJavaPerformanceDownload.html
 ___
 Gtk2hs-devel mailing list
 Gtk2hs-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel





--
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
___
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel