Repository navigation
Added remaining changes to make it run on MSYS - #246
Conversation
|
@peterbud : I added some work-in-progress windows code to 217a260 But there is still a lot of confusion about paths ( So I don't think we can say that the Windows ccache version works just yet ? The MSYS(2) installer is found here: http://www.msys2.org/ Toolchain is found here: https://mingw-w64.org/doku.php The old Cygwin and MinGW are now ancient and busted, so I think we'll drop those. But the MSYS2 (on Windows) or MinGW-w64/Wine (on Linux) are quite useful still... |
|
@afbjorklund : we are not there yet, you are right. I have a working version of ccache which works on MSYS2/MINGW 64-bit, and addressing many of the path issues. I'm not full satisfied with everything. What would be your suggestion to unify our efforts? Also as I have promised will create an Appveyor script to have a proper CI solution without Wine. |
|
@peterbud : I put the code changes I had done up on a "windows" branch, do you have a similar one ? The MSYS target and build should already be addressed ("travis"), but it doesn't actually run anything We had an earlier effort to start a Appveyor build (#69), but it was never completed - lack of interest |
| cat <<EOF >dir1/src/test.c | ||
| #include <stdarg.h> | ||
| #include <test.h> | ||
| #include "test.h" |
There was a problem hiding this comment.
Just so I understand, why is this needed? Isn't test.h included via the -I directive, not via .?
There was a problem hiding this comment.
WIll have to retry it on windows, see what the issue might have been (forgot)
There was a problem hiding this comment.
Doesn't seem to be needed anymore, if it ever was...
|
Passed the tests locally: $ make test
unittest/run.exe
PASSED: 493 assertions, 99 tests, 10 suites
CC='gcc' /bin/sh ../test/run
Compiler: gcc (/usr/bin/gcc)
Compiler version: gcc (GCC) 7.3.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-6.1]
Skipped test suite serialize_diagnostics [--serialize-diagnostics not supported by compiler]
Running test suite debug_prefix_map..
Skipped test suite masquerading [symlinks not supported on MSYS_NT-6.1]
Running test suite hardlink.
Running test suite direct........................................
Running test suite basedir.....
Running test suite 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
|
|
@jrosdahl: this should be good to go (I think?), sorry I missed to follow up on that review commit... As stated, this fixes the tests on MSYS2/MSYS (Cygwin mode), not on MSYS2/MinGW (Windows mode) |
|
Just to state the obvious: This is working for me as well on MSYS2 perfectly! |
|
Hi, I have a related PR #311 I checked out your branch, and the tests pass for me on latest msys2 both without and with the bundled zlib. Some notes about the changes:
|
|
Symlinks is not a big deal, we only use them for the optional "masquerading" feature... Might as well leave them out, for both ? |
|
Yeah if it doesn't hurt the functionality then it's no loss. |
|
See #170 for details |
* Skip test that require symlinks, on Windows/Cygwin * Don't use symlinks for lockfiles on Cygwin * Seems like objdump has issues on Windows/Cygwin * Make it possible to run suite in isolation
Installed
msys2-x86_64-20161025.exe, withgccandmake(usingpacman).After some fixes, it runs in Unix mode (Cygwin). Windows mode (MinGW) left to do.
Most issues were related to symlinks.
Closes #170