I'm happy with Msys2 in general, but have a
strange problem when I use flex in a GNU-makefile.
E.g. in libpcap, there is a rule to generate scanner.c:
   make -f Makefile.MSVC scanner.c -n
   flex -P pcap_ --header-file=NUL -o scanner.c scanner.l

I see from Process Explorer (no '-n'), that sh is spawning
several flex programs. See the attachment. After ^C out of
the above make command, there is still several sh zombies
remaining!

Looks like msys-2.0.dll::setprogramname is hanging?

To fix it, I had to revert to this hack. Made this script
in f:\MingW32\msys32\usr\bin:

   #!/bin/sh
   exec 'f:/util/WinFlex/win_flex.exe' "$@"

and moved f:\MingW32\msys32\usr\bin\flex out of that
dir. This win_flex works just fine and executes in < 1 sec.

Any pointers?

I'm on Win-10.


--
--gv

------------------------------------------------------------------------------
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to