> > Sometime I'm getting weird error in latest gtk2hs-buildtools: > > > > /usr/bin/gtk2hsC2hs --include=dist/build > > --include=/usr/lib64/ghc-7.0.4/base-4.3.1.0 > > --include=/usr/lib64/glib-0.12.3/ghc-7.0.4 > > --include=/usr/lib64/gtk-0.12.3/ghc-7.0.4 --cpp=/usr/bin/gcc --cppopts=-E > > --cppopts=-Idist/build/autogen --cppopts=-Idist/build > > --cppopts=-I/usr/include/libglade-2.0 --cppopts=-I/usr/include/gtk-2.0 > > --cppopts=-I/usr/include/libxml2 --cppopts=-I/usr/lib64/gtk-2.0/include > > --cppopts=-I/usr/include/atk-1.0 --cppopts=-I/usr/include/cairo > > --cppopts=-I/usr/include/gdk-pixbuf-2.0 --cppopts=-I/usr/include/pango-1.0 > > --cppopts=-I/usr/include/glib-2.0 --cppopts=-I/usr/lib64/glib-2.0/include > > --cppopts=-I/usr/include/pixman-1 --cppopts=-I/usr/include/freetype2 > > --cppopts=-I/usr/include/libpng15 --cppopts=-I/usr/include/libdrm > > --output-dir=dist/build/Graphics/UI/Gtk/Glade/ --output=Types.hs > > --precomp=dist/build/precompchs.bin glade/glade.h > > ./Graphics/UI/Gtk/Glade/Types.chs > > > > gtk2hsC2hs: UName: root name supply used after saving > > > > If it run the command manually _twice_ it succeeds. > > > > What could it be? > > More observations: removing 'dist/build/precompchs.bin' allows the issue > pop-up consistently: > > $ /usr/bin/gtk2hsC2hs ... --precomp=dist/build/precompchs.bin glade/glade.h > ./Graphics/UI/Gtk/Glade/Types.chs > <OK> > $ rm dist/build/precompchs.bin > $/usr/bin/gtk2hsC2hs ... --precomp=dist/build/precompchs.bin glade/glade.h > ./Graphics/UI/Gtk/Glade/Types.chs > gtk2hsC2hs: UName: root name supply used after saving > $ /usr/bin/gtk2hsC2hs ... --precomp=dist/build/precompchs.bin glade/glade.h > ./Graphics/UI/Gtk/Glade/Types.chs > <OK> > $ rm dist/build/precompchs.bin > $ /usr/bin/gtk2hsC2hs ... --precomp=dist/build/precompchs.bin glade/glade.h > ./Graphics/UI/Gtk/Glade/Types.chs > gtk2hsC2hs: UName: root name supply used after saving
One more observation: it looks like a problem in recent libglade file header. I have disabled creation of precomp file: Main.hs: -- putBinFileWithDict preCompFile (WithNameSupply cheader) and have dumped something called header: Main.hs:process: (header, strippedCHSMod, warnmsgs) <- genHeader chsMod Usually header is an empty list. But now it contains (already serialized!) garbage: "#if __GLASGOW_HASKELL__>=704" "\n" "struct " "C2HS_COND_SENTRY_1" ";\n" "#else\n" "#endif\n" Does it look valid? What should I provide? -- Sergei
signature.asc
Description: PGP signature
------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel