[llvm] [bazel][mlir] Add missing dep for 747620d (PR #140830)
Pat Doyle via llvm-commits
llvm-commits at lists.llvm.org
Tue May 20 18:53:34 PDT 2025
https://github.com/patdoyle-google created https://github.com/llvm/llvm-project/pull/140830
fixes the following errors:
ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/6a1efeb401da192d3572f00e2f11245b/external/llvm-project/mlir/BUILD.bazel:3410:11: Compiling mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp failed: (Exit 1): clang failed: error executing CppCompile command (from target @@llvm-project//mlir:XeGPUTransforms) /usr/lib/llvm-18/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer ... (remaining 130 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/llvm-project/mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp:11:10: error: module llvm-project//mlir:XeGPUTransforms does not depend on a module exporting 'mlir/Dialect/Arith/Utils/Utils.h'
11 | #include "mlir/Dialect/Arith/Utils/Utils.h"
| ^
external/llvm-project/mlir/lib/Dialect/XeGPU/Transforms/XeGPUWgToSgDistribute.cpp:13:10: fatal error: 'mlir/Dialect/Index/IR/IndexDialect.h' file not found
13 | #include "mlir/Dialect/Index/IR/IndexDialect.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
>From 4631012e372cf8112e34683bd18d6db914b79225 Mon Sep 17 00:00:00 2001
From: Pat Doyle <patdoyle at google.com>
Date: Tue, 20 May 2025 18:37:38 -0700
Subject: [PATCH 1/2] [bazel][mlir] Add missing dep for 747620d
---
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel | 1 +
1 file changed, 1 insertion(+)
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 1cbc632952c4d..8b269c32b6833 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -3424,6 +3424,7 @@ cc_library(
":GPUDialect",
":GPUUtils",
":IR",
+ ":IndexDialect",
":InliningUtils",
":MemRefDialect",
":Pass",
>From 92da361d32868241be40482f7ae5ccc914fd02ee Mon Sep 17 00:00:00 2001
From: Pat Doyle <patdoyle at google.com>
Date: Tue, 20 May 2025 18:48:11 -0700
Subject: [PATCH 2/2] Update BUILD.bazel
---
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel | 1 +
1 file changed, 1 insertion(+)
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 8b269c32b6833..e7234827f4401 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -3419,6 +3419,7 @@ cc_library(
deps = [
":AffineUtils",
":Analysis",
+ ":ArithUtils",
":DialectUtils",
":FunctionInterfaces",
":GPUDialect",
More information about the llvm-commits
mailing list