Open emilio opened 5 years ago
I remember a similar issue (unrelated to sccache) on some Azure nodes where clang wanted to write temporary files to an inaccessible directory. IIRC we needed to add the -save-temps
option to fix that.
FYI we had hit a similar issue with MSVC and worked around it by just making sccache refuse to cache compilations that output to nul
on Windows: https://github.com/mozilla/sccache/blob/7e9daab24cb88802b2b97f37ae9d3816628bd90c/src/compiler/msvc.rs#L292
I was trying to reduce a test-case that doesn't compile with #545 + my-changes, but compiles with clang.
So I used creduce by comparing clang and sccache as follows:
However, it seems like sccache, when run in parallel, may end up trying to create a temporary file in
/dev/
, and crashes like:Workaround is using a different path from
/dev/null
of course, but it seems like this should work.