You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: unittest hangs on Cygwin, test should support MSYS2 #170
help wantedThe ccache maintainers need your helpissue: bugDoes not work as intended/documentedissue: portabilityCaused by OS or platform differences when building or running ccache
changed the title [-]Windows: quicktest hangs on Cygwin, test should support MSYS2[/-][+]Windows: unittest hangs on Cygwin, test should support MSYS2[/+]on Jul 21, 2019
It was not possible to build from git, since it complained about the %% construct for some reason ("junk")
The reason is that the git by default will use CRLF instead of LF for all source files, and the MSYS2 version of gperf unfortunately is not handling inputs with CRLFs properly. Once you save the gperf files as *nix files (using simple LF and NOT CRLF, ie using unix2dos or similar) one can build ccache.
However the unitest indeed hangs - I have tried on WIn10 with latest MSYS2. I recall that earlier versions were nicely running all tests.
So this is the latest I have managed to run using MSYS2: PASSED: 3563 assertions, 112 tests, 12 suites
$ sh ../test/run
Compiler: gcc (/usr/bin/gcc)
Compiler version: gcc (GCC) 9.1.0
CUDA compiler: not available
Running test suite base................................................................
Running test suite nocpp2................................................................
Running test suite cpp1.
Skipped test suite multi_arch [multiple -arch options not supported on MSYS_NT-10.0-18362]
Skipped test suite serialize_diagnostics [--serialize-diagnostics not supported by compiler]
Skipped test suite sanitize_blacklist [-fsanitize-blacklist not supported by compiler]
Running test suite debug_prefix_map.
Running test suite split_dwarf....
Running test suite masquerading.
Running test suite hardlink....
Skipped test suite fileclone [file system doesn't support file cloning]
Running test suite direct..........................................
Running test suite direct_gcc.....
Running test suite depend......
Running test suite basedir.....
Running test suite no_compression...
Running test suite readonly...
Running test suite readonly_direct..
Running test suite cleanup..........
Running test suite pch.....................
Running test suite upgrade.
Running test suite input_charset.
Skipped test suite nvcc [nvcc is not available]
Skipped test suite nvcc_direct [nvcc is not available]
Skipped test suite nvcc_ldir [nvcc is not available]
Skipped test suite nvcc_nocpp2 [nvcc is not available]
PASSED
help wantedThe ccache maintainers need your helpissue: bugDoes not work as intended/documentedissue: portabilityCaused by OS or platform differences when building or running ccache
Activity
afbjorklund commentedon Apr 2, 2017
Also, we probably need to create an "official" Windows test build (using Appveyor).
As was suggested in:
Not possible to test all of these issues with Travis, also need to run them on Windows.
afbjorklund commentedon Apr 29, 2018
Fixed on
3.4-maintandmaster(7951573)Oops: the "lockfile" fix was still missing there...
afbjorklund commentedon Jul 21, 2019
I suppose this should be rebased, and then tried on a real Windows computer.
Using MSYS2: https://www.msys2.org/
Have access to Windows 7, but would be nice if it could be tested on Windows 10.
Run this:
./misc/build.sh unittestYou might have to install the needed packages for the mandatory zstd support:
pacman -Sy && pacman -S libzstd-develafbjorklund commentedon Jul 21, 2019
I removed the "windows" label, because this is not really
_WIN32but POSIX.afbjorklund commentedon Jul 21, 2019
Tested again, on Windows 7 MSYS2. Still the same issues (unittest hangs), plus a new gperf problem...
It was not possible to build from git, since it complained about the
%%construct for some reason ("junk")Building from ccache-3.7.2.tar.gz hangs forever, due to the assumption that symlinks work everywhere.
[-]Windows: quicktest hangs on Cygwin, test should support MSYS2[/-][+]Windows: unittest hangs on Cygwin, test should support MSYS2[/+]afbjorklund commentedon Jul 21, 2019
Apparently there is a gperf fix in #443
afbjorklund commentedon Jul 21, 2019
Checking for symlink support in configure would probably be better than using platform macros...
But the fixes in #246 should be able to make it run. Looks like the file-based locks are broken, though ?
Maybe there should be a special "symlink" define ?
Then we could verify the functionality, also on Linux
peterbud commentedon Jul 21, 2019
The reason is that the git by default will use CRLF instead of LF for all source files, and the MSYS2 version of gperf unfortunately is not handling inputs with CRLFs properly. Once you save the gperf files as *nix files (using simple LF and NOT CRLF, ie using
unix2dosor similar) one can buildccache.However the unitest indeed hangs - I have tried on WIn10 with latest MSYS2. I recall that earlier versions were nicely running all tests.
afbjorklund commentedon Jul 21, 2019
Oh, that line ending thing can probably be done by the sed/perl post processing as well then.
peterbud commentedon Jul 21, 2019
So this is the latest I have managed to run using MSYS2:
PASSED: 3563 assertions, 112 tests, 12 suitesafbjorklund commentedon Jul 28, 2019
Confirmed that the new
masterruns the tests OK, on Windows 7 MSYS2.When building from git, the current workaround is doing:
dos2unix src/*.gperfCan do a small PR, in order to remove any
'\r'characters...Kreijstal commentedon Mar 10, 2024
#1412 this happened again on master branch, by this I mean the MSYS2 enviroment, (not the MINGW/UCRT) one