Bazel

From ArchWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Bazel is an open-source tool that allows for the automated building and testing of software.

Bazel Arch Linux

Install the bazel package.

There are AUR packages for Bazel on Arch Linux:

  • bazel-gitAUR: Build Bazel from the official Git repository.

JDK 16 issues

Running Bazel with JDK 16 as the default system Java might produce the following error:

FATAL: bazel crashed due to an internal error. Printing stack trace:
java.lang.NoClassDefFoundError: Could not initialize class com.google.devtools.build.lib.unsafe.StringUnsafe

This can be worked around by setting a different Java to run with, for instance, jdk11-openjdk. To do this, use a ~/.bazelrc like so:

startup --server_javabase=/usr/lib/jvm/java-11-openjdk

See also