{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/469","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/469/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/469/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/469/events","html_url":"https://github.com/tensorflow/tensorflow/issues/469","id":121548025,"number":469,"title":"bazel 0.1.2  undeclared inclusions fixes needed in BUILD files","user":{"login":"GregBowyer","id":125935,"avatar_url":"https://avatars.githubusercontent.com/u/125935?v=3","gravatar_id":"","url":"https://api.github.com/users/GregBowyer","html_url":"https://github.com/GregBowyer","followers_url":"https://api.github.com/users/GregBowyer/followers","following_url":"https://api.github.com/users/GregBowyer/following{/other_user}","gists_url":"https://api.github.com/users/GregBowyer/gists{/gist_id}","starred_url":"https://api.github.com/users/GregBowyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GregBowyer/subscriptions","organizations_url":"https://api.github.com/users/GregBowyer/orgs","repos_url":"https://api.github.com/users/GregBowyer/repos","events_url":"https://api.github.com/users/GregBowyer/events{/privacy}","received_events_url":"https://api.github.com/users/GregBowyer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/installation/startup","name":"installation/startup","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"vrv","id":463737,"avatar_url":"https://avatars.githubusercontent.com/u/463737?v=3","gravatar_id":"","url":"https://api.github.com/users/vrv","html_url":"https://github.com/vrv","followers_url":"https://api.github.com/users/vrv/followers","following_url":"https://api.github.com/users/vrv/following{/other_user}","gists_url":"https://api.github.com/users/vrv/gists{/gist_id}","starred_url":"https://api.github.com/users/vrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vrv/subscriptions","organizations_url":"https://api.github.com/users/vrv/orgs","repos_url":"https://api.github.com/users/vrv/repos","events_url":"https://api.github.com/users/vrv/events{/privacy}","received_events_url":"https://api.github.com/users/vrv/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2015-12-10T18:24:34Z","updated_at":"2015-12-21T12:24:55Z","closed_at":"2015-12-11T22:20:03Z","body":"Started out with this error\r\n\r\n```\r\n(env)gbowyer@compute-10-3-61-179 ~/tensorflow $ bazel build --verbose_failures -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer\r\nINFO: Found 1 target...\r\nINFO: From Compiling external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.cc:\r\nsrc/main/tools/namespace-sandbox.c:633: execvp(argv[0], argv): No such file or directory\r\nERROR: /tmp/gbowyer/.cache/bazel/_bazel_gbowyer/d132132edbbae685571ab9488dabc906/external/gemmlowp/BUILD:77:1: C++ compilation of rule '@gemmlowp//:eight_bit_int_gemm' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command\r\n  (cd /tmp/gbowyer/.cache/bazel/_bazel_gbowyer/d132132edbbae685571ab9488dabc906/tensorflow && \\\r\n  exec env - \\\r\n    PATH=/opt/java/jdk1.8.0_31/bin:/tmp/gbowyer/dbpedia-thing/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/cuda-7.0/bin:/usr/local/cuda-7.0/bin:/sbin:/usr/sbin:/tmp/gbowyer/.scripts:/sbin:/usr/sbin:/tmp/gbowyer/pkg/bin:/tmp/gbowyer/.scripts:/tmp/gbowyer/pkgs/bin \\\r\n  third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -iquote external/gemmlowp -iquote bazel-out/local_linux-opt/genfiles/external/gemmlowp -iquote external/bazel_tools -iquote bazel-out/local_linux-opt/genfiles/external/bazel_tools -isystem external/bazel_tools/tools/cpp/gcc3 -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__=\"redacted\"' '-D__TIMESTAMP__=\"redacted\"' '-D__TIME__=\"redacted\"' '-frandom-seed=bazel-out/local_linux-opt/bin/external/gemmlowp/_objs/eight_bit_int_gemm/external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.o' -MD -MF bazel-out/local_linux-opt/bin/external/gemmlowp/_objs/eight_bit_int_gemm/external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.d -c external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.cc -o bazel-out/local_linux-opt/bin/external/gemmlowp/_objs/eight_bit_int_gemm/external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.o): crosstool_wrapper_driver_is_not_gcc failed: error executing command\r\n  (cd /tmp/gbowyer/.cache/bazel/_bazel_gbowyer/d132132edbbae685571ab9488dabc906/tensorflow && \\\r\n  exec env - \\\r\n    PATH=/opt/java/jdk1.8.0_31/bin:/tmp/gbowyer/dbpedia-thing/env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/cuda-7.0/bin:/usr/local/cuda-7.0/bin:/sbin:/usr/sbin:/tmp/gbowyer/.scripts:/sbin:/usr/sbin:/tmp/gbowyer/pkg/bin:/tmp/gbowyer/.scripts:/tmp/gbowyer/pkgs/bin \\\r\n  third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -iquote external/gemmlowp -iquote bazel-out/local_linux-opt/genfiles/external/gemmlowp -iquote external/bazel_tools -iquote bazel-out/local_linux-opt/genfiles/external/bazel_tools -isystem external/bazel_tools/tools/cpp/gcc3 -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__=\"redacted\"' '-D__TIMESTAMP__=\"redacted\"' '-D__TIME__=\"redacted\"' '-frandom-seed=bazel-out/local_linux-opt/bin/external/gemmlowp/_objs/eight_bit_int_gemm/external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.o' -MD -MF bazel-out/local_linux-opt/bin/external/gemmlowp/_objs/eight_bit_int_gemm/external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.d -c external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.cc -o bazel-out/local_linux-opt/bin/external/gemmlowp/_objs/eight_bit_int_gemm/external/gemmlowp/eight_bit_int_gemm/eight_bit_int_gemm.o).\r\nTarget //tensorflow/cc:tutorials_example_trainer failed to build\r\nINFO: Elapsed time: 1.907s, Critical Path: 1.27s\r\n(env)gbowyer@compute-10-3-61-179 ~/tensorflow $ third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc\r\ngcc: fatal error: no input files\r\ncompilation terminated.\r\n(env)gbowyer@compute-10-3-61-179 ~/tensorflow $ nvcc --version\r\nnvcc: NVIDIA (R) Cuda compiler driver\r\nCopyright (c) 2005-2015 NVIDIA Corporation\r\nBuilt on Mon_Feb_16_22:59:02_CST_2015\r\nCuda compilation tools, release 7.0, V7.0.27\r\n(env)gbowyer@compute-10-3-61-179 ~/tensorflow $\r\n```\r\n\r\n---\r\n\r\nSuggestion from Vijay Vasudevan is to use different bazel build params\r\n\r\n> Can you try building with --spawn_strategy=standalone ?  After talking with the bazel folks it looks like the sandbox for some reason doesn't have the crosstool wrapper in the right location, so running in standalone mode might work better.\r\n\r\n---\r\n\r\nThat yields this error\r\n```\r\n(env)gbowyer@compute-10-3-61-179 ~/tensorflow $ bazel build --verbose_failures -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer --spawn_strategy=standalone\r\nINFO: Found 1 target...\r\nERROR: /tmp/gbowyer/tensorflow/tensorflow/stream_executor/BUILD:5:1: undeclared inclusion(s) in rule '//tensorflow/stream_executor:stream_executor':\r\nthis rule is missing dependency declarations for the following files included by 'tensorflow/stream_executor/cuda/cuda_platform_id.cc':\r\n  '/tmp/gbowyer/tensorflow/tensorflow/stream_executor/cuda/cuda_platform_id.h'.\r\nTarget //tensorflow/cc:tutorials_example_trainer failed to build\r\nINFO: Elapsed time: 2.893s, Critical Path: 2.64s\r\n(env)gbowyer@compute-10-3-61-179 ~/tensorflow $ bazel build --verbose_failures -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package --spawn_strategy=standalone\r\nINFO: Found 1 target...\r\nERROR: /tmp/gbowyer/tensorflow/tensorflow/core/BUILD:272:1: undeclared inclusion(s) in rule '//tensorflow/core:gpu_kernels':\r\nthis rule is missing dependency declarations for the following files included by 'tensorflow/core/kernels/aggregate_ops_gpu.cu.cc':\r\n  '/tmp/gbowyer/tensorflow/tensorflow/core/framework/tensor_types.h'.\r\nTarget //tensorflow/tools/pip_package:build_pip_package failed to build\r\nINFO: Elapsed time: 38.609s, Critical Path: 37.67s\r\n(env)gbowyer@compute-10-3-61-179 ~/tensorflow $\r\n```\r\n\r\n---\r\nEvgeny Shaliov notes that\r\n> nvcc --version should return 6.5.* but CUDA toolkit should be installed 7.0. \r\n>\r\n> I posted https://groups.google.com/a/tensorflow.org/forum/#!topic/discuss/jRkkvsB1iWA.\r\n> Also pay attention what gcc version you use.\r\n> \r\n> Best regards,\r\n> Evgeny.\r\n\r\n---\r\n\r\nVijay Vasudevan also remarks\r\n> Yikes! :(\r\n>\r\n> What version of bazel do you happen to be using? \r\n\r\nAnd asks to move this to github issues, so here we are :P"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/166292118","html_url":"https://github.com/tensorflow/tensorflow/issues/469#issuecomment-166292118","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/469","id":166292118,"user":{"login":"gillhofer","id":4135093,"avatar_url":"https://avatars.githubusercontent.com/u/4135093?v=3","gravatar_id":"","url":"https://api.github.com/users/gillhofer","html_url":"https://github.com/gillhofer","followers_url":"https://api.github.com/users/gillhofer/followers","following_url":"https://api.github.com/users/gillhofer/following{/other_user}","gists_url":"https://api.github.com/users/gillhofer/gists{/gist_id}","starred_url":"https://api.github.com/users/gillhofer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gillhofer/subscriptions","organizations_url":"https://api.github.com/users/gillhofer/orgs","repos_url":"https://api.github.com/users/gillhofer/repos","events_url":"https://api.github.com/users/gillhofer/events{/privacy}","received_events_url":"https://api.github.com/users/gillhofer/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T12:24:55Z","updated_at":"2015-12-21T12:24:55Z","body":"There may be a similar bug which still exists. Platform arch-linux\r\n```\r\n./configure\r\nbazel build --jobs 2 --config=cuda --verbose_failures --spawn_strategy=standalone -c opt //tensorflow/tools/pip_package:build_pip_package\r\n```\r\n\r\n```\r\nERROR: $PARENT_DIR/src/tensorflow/tensorflow/stream_executor/BUILD:5:1: undeclared inclusion(s) in rule '//tensorflow/stream_executor:stream_executor':\r\nthis rule is missing dependency declarations for the following files included by 'tensorflow/stream_executor/cuda/cuda_dnn.cc':\r\n  '/opt/cuda/include/cuda_runtime.h'\r\n  '/opt/cuda/include/host_config.h'\r\n  '/opt/cuda/include/builtin_types.h'\r\n  '/opt/cuda/include/device_types.h'\r\n  '/opt/cuda/include/host_defines.h'\r\n  '/opt/cuda/include/driver_types.h'\r\n  '/opt/cuda/include/surface_types.h'\r\n  '/opt/cuda/include/texture_types.h'\r\n  '/opt/cuda/include/vector_types.h'\r\n  '/opt/cuda/include/channel_descriptor.h'\r\n  '/opt/cuda/include/cuda_runtime_api.h'\r\n  '/opt/cuda/include/cuda_device_runtime_api.h'\r\n  '/opt/cuda/include/driver_functions.h'\r\n  '/opt/cuda/include/vector_functions.h'\r\n  '/opt/cuda/include/vector_functions.hpp'.\r\nTarget //tensorflow/tools/pip_package:build_pip_package failed to build\r\n```\r\n"}}