On 08/30/2011 09:50 PM, 权宗亮 wrote:
> Thank you everyone.
>
> Now, there is still one error:
>
> Build started: Project: postgres, Configuration: Release|Win32
> Running flex on src\backend\parser\scan.l
> VCBUILD : cygwin warning :
> MS-DOS style path detected: src\backend\parser\scan.l
> Preferred POSIX equivalent is: src/backend/parser/scan.l
> CYGWIN environment variable option "nodosfilewarning" turns off this
> warning.
> Consult the user's guide for more details about POSIX paths:
> http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
> flex: fatal internal error, exec failed
> Project : error PRJ0002: Error result 3328 returned from
> 'C:\Windows\system32\cmd.exe'.
> postgres - 1 error(s), 0 warning(s)
> The command exited with code 1.
>
>
You are probably not setting the M4 environment variable correctly. The
instructions state:
To run this version of flex, you will need to set the M4 environment variable to point to your installation of m4.
Youneed one of these in order to run both bison and flex, and it sometimes comes packaged with bison.
If you are using this in a buildfarm member, you can set that environment variable in its config file, in the
build_envstanza, something like:
M4 => 'c:\path\to\bin\m4.exe',
cheers
andrew