Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
master
-
None
Description
I've recently seen a few integrations failing in sccache, with no error from the compiler it's driving. Present data taken from a macOS run may or may not be representative of the ones I've seen before (I only looked in this much detail after I'd seen similar things enough times to decide it was worth reporting):
agent:2021/07/16 10:56:51 build.go:391: [406/2940] sccache /usr/bin/clang++ ... -o src/corelib/CMakeFiles/Core.dir/serialization/qxmlutils.cpp.o -c src/corelib/serialization/qxmlutils.cpp agent:2021/07/16 10:56:51 build.go:391: FAILED: src/corelib/CMakeFiles/Core.dir/serialization/qxmlutils.cpp.o agent:2021/07/16 10:56:51 build.go:391: sccache /usr/bin/clang++ ... -o src/corelib/CMakeFiles/Core.dir/serialization/qxmlutils.cpp.o -c src/corelib/serialization/qxmlutils.cpp agent:2021/07/16 10:56:51 build.go:391: sccache: error: failed to execute compile agent:2021/07/16 10:56:51 build.go:391: sccache: caused by: Failed to send data to or receive data from server agent:2021/07/16 10:56:51 build.go:391: sccache: caused by: Failed to read response header agent:2021/07/16 10:56:51 build.go:391: sccache: caused by: failed to fill whole buffer
and later
agent:2021/07/16 10:56:59 build.go:391: sccache: warning: The server looks like it shut down unexpectedly, compiling locally instead agent:2021/07/16 10:56:59 build.go:391: ninja: build stopped: subcommand failed. agent:2021/07/16 10:56:59 build.go:442: Process finished with error: exit status 1
with no evidence of a non-sccache'd
/usr/bin/clang++ ... -c src/corelib/serialization/qxmlutils.cpp
run in between, as might have been anticipated given "compiling locally instead".
The second sccache /usr/bin/clang++ command-line is identical to the first (aside from the 406/2940 prefix); there is no hint of a "run locally" option being passed.
So it seems like sccache doesn't really attempt a local compile when it fails to talk to its server, with the result that any such failure leads to the build failing, instead of merely not gaining the benefit of sccache
Attachments
Issue Links
- is duplicated by
-
QTBUG-97270 Sccache fatal error in building qtwebengine on macOS
- Closed
- resulted in
-
COIN-813 Add minio telegraf metrics to sccache server
- Closed