--remote_local_fallback
lead to undeclared inclusion
#16132
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Remote-Exec
Issues and PRs for the Execution (Remote) team
type: bug
Description of the bug:
As said in #15519, the default strategy for
--remote_local_fallback
islocal
, which will cause build failure and reportundeclared inclusion
. When remote_execution with clang is failed, Bazel will fallback to local strategy, find the old cache file, which is a dependency file hello.pic.d, and upload it to Buildfarm cache directly. Then Bazel looked into the .d file and find out one header file is missing.To solve this problem, we need to specify
--remote_local_fallback_strategy
tosandboxed
, which is said no-op and deprecated in the document.Also,#7480 leads to misunderstanding,
--spawn_strategy
cannot replace--remote_local_fallback_strategy
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
In this repo, I wrote a demo to reproduce the bug.
Which operating system are you running Bazel on?
linux
What is the output of
bazel info release
?5.2.0
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: