Re: Errors generating compiler/parser/Parser.hs with Happy 1.16 under mingw

2007-07-22 Thread Peter Tanski
On Jul 22, 2007, at 7:59 AM, Ian Lynagh wrote: On Sun, Jul 22, 2007 at 02:35:14AM -0400, Peter Tanski wrote: I am using the file: gcc-core-3.4.5-20060117-1.tar.gz from the Mingw download page on SourceForge, at . I get the same behaviour with this gcc as I got with the other two gcc's (exce

Re: Errors generating compiler/parser/Parser.hs with Happy 1.16 under mingw

2007-07-22 Thread Ian Lynagh
On Sun, Jul 22, 2007 at 02:35:14AM -0400, Peter Tanski wrote: > > I am using the file: > gcc-core-3.4.5-20060117-1.tar.gz > from the Mingw download page on SourceForge, at sourceforge.net/project/showfiles.php?group_id=2435>. I get the same behaviour with this gcc as I got with the other two gcc

Re: Errors generating compiler/parser/Parser.hs with Happy 1.16 under mingw

2007-07-21 Thread Peter Tanski
On Jul 21, 2007, at 7:19 PM, Ian Lynagh wrote: On Sat, Jul 21, 2007 at 07:08:27PM -0400, Peter Tanski wrote: That seems to be what it is: the preprocessor for gcc 3.4.5 (Mingw special) inserts a space: cat TstFile.pp #define INCLUDE #include INCLUDE "HsVersions.h" gcc -E -u -P TstFile.pp

Re: Errors generating compiler/parser/Parser.hs with Happy 1.16 under mingw

2007-07-21 Thread Ian Lynagh
On Sat, Jul 21, 2007 at 07:08:27PM -0400, Peter Tanski wrote: > > That seems to be what it is: the preprocessor for gcc 3.4.5 (Mingw > special) inserts a space: > > cat TstFile.pp > > #define INCLUDE #include > INCLUDE "HsVersions.h" > > > gcc -E -u -P TstFile.pp > #include "HsVersions.h > ^

Re: Errors generating compiler/parser/Parser.hs with Happy 1.16 under mingw

2007-07-21 Thread Peter Tanski
On Jul 21, 2007, at 6:24 PM, Ian Lynagh wrote: On Thu, Jul 19, 2007 at 08:57:36PM -0400, Peter Tanski wrote: Sorry, I forgot to attach the original Parser.hs file. Here it is: Looks like the problem is before this point. You have a space before #include "HsVersions.h" when there shouldn't b

Re: Errors generating compiler/parser/Parser.hs with Happy 1.16 under mingw

2007-07-21 Thread Ian Lynagh
On Thu, Jul 19, 2007 at 08:57:36PM -0400, Peter Tanski wrote: > > Sorry, I forgot to attach the original Parser.hs file. Here it is: Looks like the problem is before this point. You have a space before #include "HsVersions.h" when there shouldn't be one. In my log this file is built with: c:/mi

Re: Errors generating compiler/parser/Parser.hs with Happy 1.16 under mingw

2007-07-19 Thread Peter Tanski
On Jul 19, 2007, at 4:59 PM, Ian Lynagh wrote: On Thu, Jul 19, 2007 at 04:17:28PM -0400, Peter Tanski wrote: With no changes to the build system affecting Happy, I am getting errors from compiler/parser/Parser.hs when using the Windows binary of Happy 1.16. First, there is a parse error for t

Re: Errors generating compiler/parser/Parser.hs with Happy 1.16 under mingw

2007-07-19 Thread Ian Lynagh
On Thu, Jul 19, 2007 at 04:17:28PM -0400, Peter Tanski wrote: > With no changes to the build system affecting Happy, I am getting > errors from compiler/parser/Parser.hs when using the Windows binary > of Happy 1.16. First, there is a parse error for the CPP #include > statement on line 6 (g

Errors generating compiler/parser/Parser.hs with Happy 1.16 under mingw

2007-07-19 Thread Peter Tanski
With no changes to the build system affecting Happy, I am getting errors from compiler/parser/Parser.hs when using the Windows binary of Happy 1.16. First, there is a parse error for the CPP #include statement on line 6 (ghc is given the option -cpp, of course). After moving the statement