I am getting the following error in step 10 when trying to build tensorflow.
“(tensorflow-v1.10) C:\Users\Kristian\Development\tensorflow-build\tensorflow>bazel build — config=opt //tensorflow/tools/pip_package:build_pip_package
ERROR: C:/users/kristian/development/tensorflow-build/tensorflow/tensorflow/tools/pip_package/BUILD:123:1: no such package ‘@kafka//’: Traceback (most recent call last):
File “C:/users/kristian/development/tensorflow-build/tensorflow/third_party/repo.bzl”, line 99
_apply_patch(ctx, ctx.attr.patch_file)
File “C:/users/kristian/development/tensorflow-build/tensorflow/third_party/repo.bzl”, line 67, in _apply_patch
_execute_and_check_ret_code(ctx, cmd)
File “C:/users/kristian/development/tensorflow-build/tensorflow/third_party/repo.bzl”, line 52, in _execute_and_check_ret_code
fail(“Non-zero return code({1}) when …))
Non-zero return code(2) when executing ‘C:\Bin\msys64\usr\bin\bazel.exe -l -c patch -p1 -d C:/users/kristian/_bazel_kristian/jxcoqjkw/external/kafka -i C:/users/kristian/development/tensorflow-build/tensorflow/third_party/kafka/config.patch’:
Stdout:
Stderr: [bazel FATAL src/main/cpp/blaze.cc:1271] Unknown startup option: ‘-l’.
For more info, run ‘bazel help startup_options’.
and referenced by ‘//tensorflow/tools/pip_package:licenses’
ERROR: Analysis of target ‘//tensorflow/tools/pip_package:build_pip_package’ failed; build aborted: no such package ‘@kafka//’: Traceback (most recent call last):
File “C:/users/kristian/development/tensorflow-build/tensorflow/third_party/repo.bzl”, line 99
_apply_patch(ctx, ctx.attr.patch_file)
File “C:/users/kristian/development/tensorflow-build/tensorflow/third_party/repo.bzl”, line 67, in _apply_patch
_execute_and_check_ret_code(ctx, cmd)
File “C:/users/kristian/development/tensorflow-build/tensorflow/third_party/repo.bzl”, line 52, in _execute_and_check_ret_code
fail(“Non-zero return code({1}) when …))
Non-zero return code(2) when executing ‘C:\Bin\msys64\usr\bin\bazel.exe -l -c patch -p1 -d C:/users/kristian/_bazel_kristian/jxcoqjkw/external/kafka -i C:/users/kristian/development/tensorflow-build/tensorflow/third_party/kafka/config.patch’:
Stdout:
Stderr: [bazel FATAL src/main/cpp/blaze.cc:1271] Unknown startup option: ‘-l’.
For more info, run ‘bazel help startup_options’.
INFO: Elapsed time: 4,395s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (105 packages loaded)”
As far as I can see it’s something with Bazel that is not configured correctly, but as far as I can see I have done everything correct regarding installing Bazel. Hopefully you can help me.
Best regards,
Kristian