After configuring tensorflow i run :
$ bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
and I get :
WARNING: /home/f390/tensorflow/tensorflow/core/BUILD:1634:1: in includes attribute of cc_library rule //tensorflow/core:framework_headers_lib: '../../external/nsync/public' resolves to 'external/nsync/public' not below the relative path of its package 'tensorflow/core'. This will be an error in the future. Since this rule was created by the macro 'cc_header_only_library', the error might have been caused by the macro implementation in /home/f390/tensorflow/tensorflow/tensorflow.bzl:911:30 WARNING: /home/f390/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately. WARNING: /home/f390/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately. INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (0 packages loaded). INFO: Found 1 target... ERROR: /home/f390/.cache/bazel/_bazel_f390/1eade5de15db7071cc11285c76340430/external/protobuf_archive/BUILD:263:1: C++ compilation of rule '@protobuf_archive//:js_embed' failed (Exit 127) /usr/bin/env: 'python\r': No such file or directory Target //tensorflow/tools/pip_package:build_pip_package failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 7.493s, Critical Path: 0.18s FAILED: Build did NOT complete successfully
How to fix this error?