torch-mlir icon indicating copy to clipboard operation
torch-mlir copied to clipboard

ERROR: missing input file '@@+_repo_rules3+torch-mlir//:include/torch-mlir-dialects/Dialect/TMTensor/Transforms/PassDetail.h

Open ceruleangu opened this issue 4 weeks ago • 1 comments

When running bazel build on the latest commit on main, I am hitting file not found error: missing input file '@@+_repo_rules3+torch-mlir//:include/torch-mlir-dialects/Dialect/TMTensor/Transforms/PassDetail.h' full log:

$ bazel build @torch-mlir//:TorchMLIRInitAll --incompatible_disallow_empty_glob=False
...
ERROR: /scratch/zijingg/bazel-cache/53723a73a08f82573494b023062610fb/external/+_repo_rules3+torch-mlir/BUILD.bazel:804:11: Symlinking virtual headers for @@+_repo_rules3+torch-mlir//:TorchMLIRTMTensorPasses failed: missing input file '@@+_repo_rules3+torch-mlir//:include/torch-mlir-dialects/Dialect/TMTensor/Transforms/PassDetail.h'
ERROR: /scratch/zijingg/bazel-cache/53723a73a08f82573494b023062610fb/external/+_repo_rules3+torch-mlir/BUILD.bazel:804:11: Symlinking virtual headers for @@+_repo_rules3+torch-mlir//:TorchMLIRTMTensorPasses failed: 1 input file(s) do not exist
Target @@+_repo_rules3+torch-mlir//:TorchMLIRInitAll failed to build
Use --verbose_failures to see the command lines of failed build steps.
ERROR: /scratch/zijingg/bazel-cache/53723a73a08f82573494b023062610fb/external/+_repo_rules3+torch-mlir/BUILD.bazel:804:11 Symlinking virtual headers for @@+_repo_rules3+torch-mlir//:TorchMLIRTMTensorPasses failed: 1 input file(s) do not exist
INFO: Elapsed time: 24.387s, Critical Path: 0.89s
INFO: 152 processes: 326 action cache hit, 152 internal.
ERROR: Build did NOT complete successfully

Looks like this commit removed the PassDetail.h. Maybe @hanhanW could you please help take a look? What could be wrong with my set up? Thanks!

ceruleangu avatar Dec 02 '25 06:12 ceruleangu

Have you tried removing all those files from BUILD.bazel?

hanhanW avatar Dec 05 '25 04:12 hanhanW