I tried deleting the problematic directory (
chromium/src/chrome/browser/resources/media_router/extension/src) and running the following again:
git checkout refs/tags/69.0.3497.100
gclient sync --no-history --with_branch_heads --disable-syntax-validation --jobs 16
The folder and its contents were restored, and the process was able to continue. Then another similar failure occurred, exactly the same problem but with a different folder. I deleted that folder and ran the commands above again, with the same result. Ultimately, I had to repeat this procedure for all of the following 18 folders:
chromium/src/chrome/browser/resources/media_router/extension/src
chromium/src/native_client
chromium/src/media/cdm/api
chromium/src/third_party/breakpad/breakpad
chromium/src/third_party/dom_distiller_js/dist
chromium/src/third_party/icu
chromium/src/third_party/libFuzzer/src
chromium/src/third_party/libjpeg_turbo
chromium/src/third_party/googletest/src
chromium/src/third_party/depot_tools
chromium/src/third_party/leveldatabase/src
chromium/src/third_party/libprotobuf-mutator/src
chromium/src/third_party/libsrt
chromium/src/third_party/libyuv
chromium/src/third_party/catapult
chromium/src/third_party/quic_trace/src
chromium/src/tools/swarming_client
chromium/src/third_party/webgl/srcAfter that, the sync continued and eventually appeared to complete successfully. Why was this process necessary?
Anyway, hopefully now the build will actually work.