Hi,
I only just joined this list so please excuse aberrant behaviour.
I am also in the same situation as Matt, but I have more
information about it.
First, you can easily work around it by telling devstudio to
invoke flex through bash:
c:\cygwin\bin\bash -c flex ...
This is with 2.5.31-1, my previous version was 2.5.4-2.
Previous experience with DevStudio has suggested to me that it
invokes external commands via command.com, so I checked invoking flex
manually with identical arguments under bash and under command.com. The
result is that it always seems to work under bash, but under command.com it
can give a command-line summary, but not compile my script (I only have the
one script handy to test it under). So I think the problem is invocation
under command.com, not anything about DevStudio per se.
I'm attaching a cygcheck output.
I'm not sure whether flex should invoke under command.com? e.g.
is there a difference between invoking an isolated cygwin executable by its
full path, and invoking one which tries to access other executables, and
which may not have a PATH set up?
In any case, I have a simple work-around, so this is JFYI.
Ian Badcoe
I want to use flex in Visual Studio, but it won't run. It just says:
flex: fatal internal error, exec failed
It worked before I upgraded Cygwin a few days ago. I don't know what
version of flex I was using before, but this happens with version 2.5.31.
Thanks!
Matt Gregory
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Thu Sep 25 11:08:34 2003
Windows XP Professional Ver 5.1 Build 2600 Service Pack 1
Path: C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\program Files\Tcl\bin
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\system32\WBEM
c:\Program Files\Microsoft SQL Server\80\Tools\Binn\
C:\cygwin\usr\X11R6\bin
Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1015(ian) GID: 513(None)
513(None)
Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1015(ian) GID: 513(None)
513(None) 544(Administrators)
545(Users)1007(Debugger Users)
SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS
HOME = `C:\cygwin\home\ian'
MAKE_MODE = `unix'
PWD = `/home/ian'
USER = `ian'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\ian\Application Data'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `XP-410'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
CVSROOT = `:ext:[EMAIL PROTECTED]:/cvsroot/livingathome'
CVS_RSH = `ssh'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\ian'
LOGONSERVER = `\\XP-410'
MANPATH = `:/usr/ssl/man:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/home/ian'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.tcl'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 11 Stepping 1, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0b01'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\ian\LOCALS~1\Temp'
TERM = `cygwin'
TEXMF = `{/usr/share/lilypond/1.8.2,{/usr/share/lilypond/1.8.2,/usr/share/texmf}}'
TMP = `c:\DOCUME~1\ian\LOCALS~1\Temp'
USERDOMAIN = `XP-410'
USERNAME = `ian'
USERPROFILE = `C:\Documents and Settings\ian'
WINDIR = `C:\WINDOWS'
_ = `/usr/bin/cygcheck'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
(default) = `/cygdrive'
cygdrive flags = 0x0022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
(default) = `C:\cygwin'
flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
(default) = `C:\cygwin/bin'
flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
(default) = `C:\cygwin/lib'
flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
(default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
flags = 0x000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
a: fd N/AN/A
c: hd NTFS 15923Mb 80% CP CS UN PA FC C
d: cd CDFS 0Mb -2147483548%CS Audio CD
y: net NTFS8220Mb 55% CP CS UN PA FC C
z: net NTFS8220Mb 55% CP CS UN PA FC C
C:\cygwin