summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKubernetes Submit Queue <k8s-merge-robot@users.noreply.github.com>2017-09-08 15:06:17 -0700
committerGitHub <noreply@github.com>2017-09-08 15:06:17 -0700
commite32465b14fce33cce6708a73b2f57dc6cd7432a8 (patch)
treef463fd5c1037c7083d44680686ea3b3f6fa3457d
parent6924d21cb26280a689be9ff7bc36d848866b633a (diff)
parentdbea96c6d382e8a0821b88a6883c5ad771d314da (diff)
Merge pull request #1004 from kad/bazel-deps
Automatic merge from submit-queue Document set of host dependencies for bazel-build Covers set of packages for commonly used distributions for kubernetes/kubernetes#51623
-rw-r--r--contributors/devel/bazel.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/contributors/devel/bazel.md b/contributors/devel/bazel.md
index fc99d775..cbc2f9a0 100644
--- a/contributors/devel/bazel.md
+++ b/contributors/devel/bazel.md
@@ -37,6 +37,16 @@ Additionally, Go build tags are not supported. This means that builds on macOS m
[Binaries produced by Bazel are not statically linked](https://github.com/bazelbuild/rules_go/issues/161),
and they are not currently tagged with version information.
+[Bazel does not validate build environment](https://github.com/kubernetes/kubernetes/issues/51623), thus make sure that needed
+tools and development packages are installed in the system. Bazel builds require presense of `make`, `gcc`, `g++`, `glibc and libstdc++ development headers` and `glibc static development libraries`. Please check your distribution for exact names of the packages. Examples for some commonly used distributions are below:
+
+| Dependency | Debian/Ubuntu | CentOS | OpenSuSE |
+|:---------------------:|-------------------------------|--------------------------------|-----------------------------------------|
+| Build essentials | `apt install build-essential` | `yum groupinstall development` | `zypper install -t pattern devel_C_C++` |
+| GCC C++ | `apt install g++` | `yum install gcc-c++` | `zypper install gcc-c++` |
+| GNU Libc static files | `apt install libc6-dev` | `yum install glibc-static` | `zypper install glibc-devel-static` |
+
+
## Updating `BUILD` files
To update `BUILD` files, run: