summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kanevskiy <kad@linux.intel.com>2017-08-30 15:42:01 +0300
committerAlexander Kanevskiy <kad@linux.intel.com>2017-08-30 15:46:17 +0300
commitdbea96c6d382e8a0821b88a6883c5ad771d314da (patch)
treef47e84ac75c5d7212aad2bb192f2670d98bc5588
parent2b9a8dbdf5c3b6ad9c4db60acd81ca344f0032de (diff)
Document set of host dependencies for bazel-build
-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: