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
This is blocking TensorFlow from migrating to Bazel 0.23.2
This also happens on mac: https://paste.googleplex.com/5258293977022464
I mailed a fix: https://github.com/tensorflow/tensorflow/pull/26949
Wonderful! Thank you so much!
Most helpful comment
I mailed a fix: https://github.com/tensorflow/tensorflow/pull/26949