Prev: Largeobject Access Controls (r2460)
Next: Range types
From: Andrew Dunstan on 13 Dec 2009 10:42 Magnus Hagander wrote: > Using > http://www.postgresql.org/ftp/misc/winflex/ > > on a 64-bit windows, but in 32-bit mode (this certainly used to work), > trying to build HEAD. > > first of all, it returns error code 128 when running "flex -V", which > means our script claims it doesn't work. Commenting out that check, it > crashes along the line of: > Running flex on src\backend\utils\misc\guc-file.l > 14 [main] flex 2372 _cygtls::handle_exceptions: Exception: > STATUS_ACCESS_VIOLATION > > Sometimes it doesn't crash, but do this instead: > Running flex on src\backend\parser\scan.l > c:\gnuwin32\bin\m4.exe:stdin:16769: ERROR: end of file in string > Project : error PRJ0002 : Error result 128 returned from 'C:\WINDOWS\SysWow64\cm > d.exe'. > > > If I run it a couple of times, it eventually completes. But then bombs > out because the generated files aren't complete. > > Anybody else seen this? Am I forgetting something typical? > Well, I have now reproduced the behaviour, so it's not just you. But I have not been able to set up a working Cygwin build environment, so I can't try to rebuild it right now. It sure looks like it's the exec that's failing. cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers(a)postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
From: Petr Jelinek on 13 Dec 2009 12:16 Magnus Hagander napsal(a): > On Sun, Dec 13, 2009 at 11:36, Dave Page <dpage(a)pgadmin.org> wrote: > >> On Sun, Dec 13, 2009 at 5:42 AM, Andrew Dunstan <andrew(a)dunslane.net> wrote: >> >>> Yes. I spent a few cents and a few hours wrestling with it. AFAICT your are >>> hosed on 64bit Windows. I can't get flex built and Cygwin is behaving very >>> oddly. There are indications that the problem could be fairly deep - see >>> <http://www.mail-archive.com/cygwin(a)cygwin.com/msg102463.html> >>> >> What Linda describes there is all normal behaviour for a 32 bit app on >> 64 bit Windows. Windows is providing a virtual 32 bit environment, >> where for the most part the 32 bit app doesn't realise it's running on >> 64 bit. Unfortunately there are always things that look a bit odd due >> to this, but normally I've found that the 32bit code runs fine, it >> just looks odd from Explorer or 64 bit apps because of the >> folder/registry redirection that happens behind the scenes. >> > > Yeah, none of that should have an effect on a tool like "flex", though... > I think the actual problem is the implementation of fork emulation which changed in 1.7. >>> I can try again with Cygwin 1.7. and see if that improves matters, but I bet >>> it doesn't. >>> Cygwin 1.7.0-52 (iirc) with flex works for me on x64 Vista. >> What about msys? Or is that not capable of building the newer versions of flex? >> > > IIRC we looked at that before, and that one is also limited to the > version before they started doing fork() (that was the problem with > the newer ones and gnuwin32, iirc) > No they have newest flex, but the whole thing is even more broken on 64bit then (old) cygwin version - it just exits without doing anything and does not even report any errors. -- Regards Petr Jelinek (PJMODOS)
From: Andrew Dunstan on 13 Dec 2009 14:35 Petr Jelinek wrote: > > Cygwin 1.7.0-52 (iirc) with flex works for me on x64 Vista. Can you let me have the flex.exe and cygwin1.dll that I can try on a virgin WinS2k3 64-bit box? It will probably need to be configured with --disable-nls. cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers(a)postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
From: Petr Jelinek on 13 Dec 2009 15:02 Andrew Dunstan napsal(a): > > > Petr Jelinek wrote: >> >> Cygwin 1.7.0-52 (iirc) with flex works for me on x64 Vista. > > > Can you let me have the flex.exe and cygwin1.dll that I can try on a > virgin WinS2k3 64-bit box? > > It will probably need to be configured with --disable-nls. This is the version I am using (probably not newest one or anything, but I used it for testing all of my patches for 8.5 and I tried it successfully today on git head). http://pjmodos.parba.cz/temp/cygflex.zip -- Regards Petr Jelinek (PJMODOS) -- Sent via pgsql-hackers mailing list (pgsql-hackers(a)postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
From: Andrew Dunstan on 13 Dec 2009 16:10
Petr Jelinek wrote: > Andrew Dunstan napsal(a): >> >> >> Petr Jelinek wrote: >>> >>> Cygwin 1.7.0-52 (iirc) with flex works for me on x64 Vista. >> >> >> Can you let me have the flex.exe and cygwin1.dll that I can try on a >> virgin WinS2k3 64-bit box? >> >> It will probably need to be configured with --disable-nls. > > This is the version I am using (probably not newest one or anything, > but I used it for testing all of my patches for 8.5 and I tried it > successfully today on git head). > http://pjmodos.parba.cz/temp/cygflex.zip Sadly this still gives me: flex: fatal internal error, exec failed on WinS2K3 64bit on EC2. cheers andrew -- Sent via pgsql-hackers mailing list (pgsql-hackers(a)postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers |