-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get building on MinGW-64 #23
Comments
I started working on this tonight. You can follow my progress here: https://github.com/DavidEGrayson/mingw-packages-deg/tree/master/mingw-w64-ucg (The way I try out interesting C/C++ software is that I make an MSYS2 package for it.) |
I got ucg to compile, link, and run on MSYS2 as a MinGW-w64 program but it seems to be buggy: it only finds matches in the top-level directory. |
Hi @DavidEGrayson , |
Thanks for the reply! I might dig into this later, and I suspect I will find that there are issues with Gnulib's fts implementation on mingw-w64 that are causing these problems. I had similar problems a year ago when I tried to get recursive grep working:
|
Yeah, the problem I was talking about where ucg doesn't search in any directories except the top-level one was caused by st_ino always being zero. In my MSYS2 package, I now apply a patch to Gnulib's fts-cycle.c so it ignores nodes with By the way, maybe UniversalCodeGrep should behave like grep does and show a warning when such cycles are detected. You can see if a cycle happened by checking if the I can now run
I looked at your branch ( https://github.com/gvansickle/ucg/tree/feature/ISSUE23-BuildOnMINGW64 ) and I don't see any changes that might make those tests pass. |
The st_ino thing is going to break ArgParse::is_same_file() too. |
Currently there are issues with at least the argp lib.
The text was updated successfully, but these errors were encountered: