[C2hs] C2HS Failure on stdio.h on Mac OS X 10.4
duncan.coutts at worc.ox.ac.uk
Sun Jul 17 15:33:05 EDT 2005
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: *** [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
Actually it'd be useful if you could supply us with the preprocessed
header file that c2hs is trying to parse.
If you re-run the above command with the extra flag "--keep" and then
find the gtk.i file that is left in the build root directory. If you
could post this file somewhere that'd be great (it'll be about 1Mb). If
it's not possible to post it somewhere then just email it to me.
More information about the C2hs