Bazel: TensorFlow java library doesn't build with Bazel 0.23.2

Created on 20 Mar 2019  路  4Comments  路  Source: bazelbuild/bazel

To reproduce:

git clone https://github.com/tensorflow/tensorflow.git
cd tensorflow
yes "" | ./configure
bazel build --config=opt tensorflow/java:tensorflow

You'll get the following error message:

ERROR: /usr/local/google/home/pcloudy/workspace/tensorflow/tensorflow/java/BUILD:20:1: Building tensorflow/java/libtensorflow.jar (27 source files, 1 source jar) and running annotation processors (OperatorProcessor) failed (Exit 1)
warning: Supported source version 'RELEASE_5' from annotation processor 'org.tensorflow.processor.OperatorProcessor' less than -source '1.7'
error: warnings found and -Werror specified
Target //tensorflow/java:tensorflow failed to build

Bazel 0.19.2 is able to build the same target.

@cushon @iirina

P2 team-Rules-Java bug

Most helpful comment

All 4 comments

This is blocking TensorFlow from migrating to Bazel 0.23.2

Wonderful! Thank you so much!

Was this page helpful?
0 / 5 - 0 ratings