{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4963","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4963/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4963/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4963/events","html_url":"https://github.com/tensorflow/tensorflow/issues/4963","id":182987680,"number":4963,"title":"protoc failed: error executing command","user":{"login":"AndreasMadsen","id":505333,"avatar_url":"https://avatars.githubusercontent.com/u/505333?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasMadsen","html_url":"https://github.com/AndreasMadsen","followers_url":"https://api.github.com/users/AndreasMadsen/followers","following_url":"https://api.github.com/users/AndreasMadsen/following{/other_user}","gists_url":"https://api.github.com/users/AndreasMadsen/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasMadsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasMadsen/subscriptions","organizations_url":"https://api.github.com/users/AndreasMadsen/orgs","repos_url":"https://api.github.com/users/AndreasMadsen/repos","events_url":"https://api.github.com/users/AndreasMadsen/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasMadsen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/breaking%20build","name":"breaking build","color":"39925b"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-14T08:05:00Z","updated_at":"2016-10-15T07:49:41Z","closed_at":"2016-10-15T02:20:41Z","body":"### What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?\r\n\r\nNone\r\n\r\n### Environment info\r\nOperating System:\r\n\r\n```\r\nuname -a\r\nLinux n-62-18-47 2.6.32-573.22.1.el6.x86_64 #1 SMP Tue Mar 22 17:15:28 CDT 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\n\r\nInstalled version of CUDA and cuDNN: CUDA: 8.0, cuDNN 5.0\r\n(please attach the output of `ls -l /path/to/cuda/lib/libcud*`):\r\n\r\n```\r\nls -l /appl/cuda/8.0/lib64/libcud*\r\n-rw-r--r-- 1 sebo root 560184 Sep  1 14:31 /appl/cuda/8.0/lib64/libcudadevrt.a\r\nlrwxrwxrwx 1 sebo root     16 Sep  1 14:31 /appl/cuda/8.0/lib64/libcudart.so -> libcudart.so.8.0\r\nlrwxrwxrwx 1 sebo root     19 Sep  1 14:31 /appl/cuda/8.0/lib64/libcudart.so.8.0 -> libcudart.so.8.0.27\r\n-rwxr-xr-x 1 sebo root 394472 Sep  1 14:31 /appl/cuda/8.0/lib64/libcudart.so.8.0.27\r\n-rw-r--r-- 1 sebo root 737516 Sep  1 14:31 /appl/cuda/8.0/lib64/libcudart_static.a\r\n```\r\n\r\nIf installed from source, provide \r\n\r\n1. The commit hash (`git rev-parse HEAD`): 8d1198374477e9c7e01893103233da984f302924\r\n2. The output of `bazel version`\r\n\r\n```\r\nbazel --batch version\r\nINFO: Reading 'startup' options from /zhome/ff/2/77654/.bazelrc: --batch --output_user_root=/work1/s123598/.bazel\r\nBuild label: 0.3.2-2016-10-13 (@2891ec5)\r\nBuild target: bazel-out/local-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar\r\nBuild time: Thu Oct 13 15:05:25 2016 (1476371125)\r\nBuild timestamp: 1476371125\r\nBuild timestamp as int: 1476371125\r\n```\r\n\r\n### If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)\r\n\r\n```\r\n# install tensorflow\r\ngit clone https://github.com/tensorflow/tensorflow\r\ncd tensorflow\r\n# set configuration parameters\r\nexport PYTHON_BIN_PATH=`which python3`\r\nexport TF_NEED_GCP=0\r\nexport TF_NEED_HDFS=0\r\nexport TF_NEED_CUDA=1\r\nexport GCC_HOST_COMPILER_PATH=`which gcc`\r\nexport TF_CUDA_VERSION=8.0\r\nexport CUDA_TOOLKIT_PATH=/appl/cuda/8.0/\r\nexport TF_CUDNN_VERSION=5\r\nexport CUDNN_INSTALL_PATH=/appl/cudnn/v5.0-prod\r\nexport TF_CUDA_COMPUTE_CAPABILITIES=\"3.5,5.2\"\r\n\r\ncat > $HOME/.bazelrc <<EOF\r\n# --batch: always run in batch mode, since there are some firewall issues.\r\n# --output_user_root: HOME is NFS (filesystem), this will not work with bazel, use WORKDIR instead\r\nstartup --batch --output_user_root=$WORKDIR/.bazel\r\nEOF\r\n\r\n# one python configuration can't be set directly use yes to accept automatically\r\nyes \"\" | CC=gcc CXX=g++ ./configure\r\n\r\n# build tensorflow\r\nCC=gcc CXX=g++ bazel build --copt=\"-w\" --ignore_unsupported_sandboxing --spawn_strategy=standalone --verbose_failures \\\r\n-c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package\r\n```\r\n\r\n### What other attempted solutions have you tried?\r\n\r\nJust getting here took some time. I had to compile bazel, pcre, swig. Put bazel in batch model and get a workdirectory that wasn't NFS. But this I have no idea how to fix.\r\n\r\n### Logs or other output that would be helpful\r\n\r\nfull log: https://gist.github.com/AndreasMadsen/474389dc54efe948e9887eafb78679ef\r\n\r\n```\r\nINFO: From ProtoCompile tensorflow/core/example/example.pb.h [for host]:\r\nbazel-out/host/genfiles/external/protobuf/src: warning: directory does not exist.\r\nERROR: /zhome/ff/2/77654/tensorflow/tensorflow/core/debug/BUILD:33:1: null failed: protoc failed: error executing command\r\n  (cd /work1/s123598/.bazel/48591a606b240b3533e6a6889ad3b508/execroot/tensorflow && \\\r\n  exec env - \\\r\n  bazel-out/host/bin/external/protobuf/protoc '--cpp_out=bazel-out/local_linux-py3-opt/genfiles/' '--plugin=protoc-gen-grpc=bazel-out/host/bin/external/grpc/grpc_cpp_plugin' '--grpc_out=bazel-out/local_linux-py3-opt/genfiles/' -I. -Iexternal/protobuf/src -Ibazel-out/local_linux-py3-opt/genfiles/external/protobuf/src tensorflow/core/debug/debug_service.proto): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.\r\nbazel-out/local_linux-py3-opt/genfiles/external/protobuf/src: warning: directory does not exist.\r\nbazel-out/host/bin/external/grpc/grpc_cpp_plugin: program not found or is not executable\r\n--grpc_out: protoc-gen-grpc: Plugin failed with status code 1.\r\nTarget //tensorflow/tools/pip_package:build_pip_package failed to build\r\nERROR: /zhome/ff/2/77654/tensorflow/tensorflow/tools/pip_package/BUILD:23:1 null failed: protoc failed: error executing command\r\n  (cd /work1/s123598/.bazel/48591a606b240b3533e6a6889ad3b508/execroot/tensorflow && \\\r\n  exec env - \\\r\n  bazel-out/host/bin/external/protobuf/protoc '--cpp_out=bazel-out/local_linux-py3-opt/genfiles/' '--plugin=protoc-gen-grpc=bazel-out/host/bin/external/grpc/grpc_cpp_plugin' '--grpc_out=bazel-out/local_linux-py3-opt/genfiles/' -I. -Iexternal/protobuf/src -Ibazel-out/local_linux-py3-opt/genfiles/external/protobuf/src tensorflow/core/debug/debug_service.proto): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.\r\nINFO: Elapsed time: 189.979s, Critical Path: 68.86s\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/253969222","html_url":"https://github.com/tensorflow/tensorflow/issues/4963#issuecomment-253969222","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/4963","id":253969222,"user":{"login":"jart","id":49262,"avatar_url":"https://avatars.githubusercontent.com/u/49262?v=3","gravatar_id":"","url":"https://api.github.com/users/jart","html_url":"https://github.com/jart","followers_url":"https://api.github.com/users/jart/followers","following_url":"https://api.github.com/users/jart/following{/other_user}","gists_url":"https://api.github.com/users/jart/gists{/gist_id}","starred_url":"https://api.github.com/users/jart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jart/subscriptions","organizations_url":"https://api.github.com/users/jart/orgs","repos_url":"https://api.github.com/users/jart/repos","events_url":"https://api.github.com/users/jart/events{/privacy}","received_events_url":"https://api.github.com/users/jart/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T07:49:41Z","updated_at":"2016-10-15T07:49:41Z","body":"@BeGe78 we recommend reaching out to the [StackOverflow](http://stackoverflow.com/questions/tagged/tensorflow) community for support. "}}
{"actor":{"display_login":"jart"}}