
Duncan Coutts:
On Thu, 2005-07-14 at 17:43 -0400, Matthew Cox wrote:
I was trying to get gtk2hs into darwinports. The build was going fine until it errored out with this failure:
./tools/c2hs/c2hsLocal +RTS -H50m -M80m -RTS -C-I/opt/local/include/ glib-2.0 -C-I/opt/local/lib/glib-2.0/include -C-DXTHREADS -C-I/opt/ local/include/gtk-2.0 -C-I/opt/local/lib/gtk-2.0/include -C-I/usr/ X11R6/include -C-I/opt/local/include/pango-1.0 -C-I/opt/local/ include/freetype2 -C-I/opt/local/include/atk-1.0 --cppopts='- include "gtk2hs-config.h"' --precomp=gtk/gtk.precomp gtk/gtk.h elapsed time: 0.02 (start) elapsed time: 0.02 (about to parse headder) c2hsLocal: Error in C header file.
/usr/include/stdio.h:258: (column 42) [FATAL]
Syntax error! The symbol `__asm' does not fit here.
make[2]: *** [gtk/gtk.precomp] Error 1
I know that the gtk2hs guys built a new parser/lexer, and it appears indeed to be a parse error. C
Yes, neither the old nor the new C lexers understand the __asm symbol.
This is something we obviously need to fix. I'll look into the gcc __asm feature as soon as I have a free moment. Any fix will appear in Gtk2Hs 0.9.8.1 and patches will be sent to the mainline c2hs.
Thanks, Duncan. Manuel