{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/1152","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1152/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1152/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1152/events","html_url":"https://github.com/bazelbuild/bazel/issues/1152","id":148844164,"number":1152,"title":"Faile to install bazel in linux","user":{"login":"liumilan","id":5533901,"avatar_url":"https://avatars.githubusercontent.com/u/5533901?v=3","gravatar_id":"","url":"https://api.github.com/users/liumilan","html_url":"https://github.com/liumilan","followers_url":"https://api.github.com/users/liumilan/followers","following_url":"https://api.github.com/users/liumilan/following{/other_user}","gists_url":"https://api.github.com/users/liumilan/gists{/gist_id}","starred_url":"https://api.github.com/users/liumilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liumilan/subscriptions","organizations_url":"https://api.github.com/users/liumilan/orgs","repos_url":"https://api.github.com/users/liumilan/repos","events_url":"https://api.github.com/users/liumilan/events{/privacy}","received_events_url":"https://api.github.com/users/liumilan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/P2","name":"P2","color":"e99695"},{"url":"https://api.github.com/repos/bazelbuild/bazel/labels/type:%20bug","name":"type: bug","color":"0052cc"}],"state":"open","locked":false,"assignee":{"login":"damienmg","id":3721087,"avatar_url":"https://avatars.githubusercontent.com/u/3721087?v=3","gravatar_id":"","url":"https://api.github.com/users/damienmg","html_url":"https://github.com/damienmg","followers_url":"https://api.github.com/users/damienmg/followers","following_url":"https://api.github.com/users/damienmg/following{/other_user}","gists_url":"https://api.github.com/users/damienmg/gists{/gist_id}","starred_url":"https://api.github.com/users/damienmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damienmg/subscriptions","organizations_url":"https://api.github.com/users/damienmg/orgs","repos_url":"https://api.github.com/users/damienmg/repos","events_url":"https://api.github.com/users/damienmg/events{/privacy}","received_events_url":"https://api.github.com/users/damienmg/received_events","type":"User","site_admin":false},"milestone":null,"comments":51,"created_at":"2016-04-16T11:36:58Z","updated_at":"2016-04-26T10:10:40Z","closed_at":null,"body":"The error as below: \r\nINFO: You can skip this first step by providing a path to the bazel binary as second argument: \r\nINFO:    compile.sh compile /path/to/bazel \r\nBuilding Bazel from scratch...... \r\nBuilding Bazel with Bazel. \r\nWARNING: /search/david/bazel-master/src/main/native/BUILD:46:16: in includes attribute of cc_binary rule //src/main/native:libunix.so: '.' resolves to 'src/main/native' not in 'third_party'. This will be an error in the future. \r\nWARNING: /search/david/bazel-master/src/main/protobuf/BUILD:36:1: in includes attribute of cc_library rule //src/main/protobuf:command_server_cc_proto: '.' resolves to 'src/main/protobuf' not in 'third_party'. This will be an error in the future. Since this rule was created by the macro 'cc_grpc_library', the error might have been caused by the macro implementation in /search/david/bazel-master/tools/build_rules/genproto.bzl:104:18. \r\nINFO: Found 1 target... \r\nERROR: /search/david/bazel-master/src/main/cpp/BUILD:53:1: C++ compilation of rule '//src/main/cpp:blaze_abrupt_exit' failed: gcc -std=gnu99 failed: error executing command \r\n  (cd /tmp/bazel.MM2za3vz/out/bazel-master && \\ \r\n  exec env - \\ \r\n    PATH=/usr/local/cuda-7.0/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/go/bin:/home/david/bin \\ \r\n  '/tmp/bazel.MM2za3vz/out/external/local_config_cc/gcc -std=gnu99' -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer '-std=c++0x' -iquote . -iquote bazel-out/local-fastbuild/genfiles -iquote external/bazel_tools -iquote bazel-out/local-fastbuild/genfiles/external/bazel_tools -isystem external/bazel_tools/tools/cpp/gcc3 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__=\"redacted\"' '-D__TIMESTAMP__=\"redacted\"' '-D__TIME__=\"redacted\"' '-frandom-seed=bazel-out/local-fastbuild/bin/src/main/cpp/_objs/blaze_abrupt_exit/src/main/cpp/blaze_abrupt_exit.pic.o' -MD -MF bazel-out/local-fastbuild/bin/src/main/cpp/_objs/blaze_abrupt_exit/src/main/cpp/blaze_abrupt_exit.pic.d -fPIC -c src/main/cpp/blaze_abrupt_exit.cc -o bazel-out/local-fastbuild/bin/src/main/cpp/_objs/blaze_abrupt_exit/src/main/cpp/blaze_abrupt_exit.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 127. \r\n/tmp/bazel.MM2za3vz/out/bazel-master/_bin/process-wrapper: line 12: /tmp/bazel.MM2za3vz/out/external/local_config_cc/gcc -std=gnu99: No such file or directory \r\nTarget //src:bazel failed to build \r\nINFO: Elapsed time: 3.054s, Critical Path: 0.19s \r\n\r\n\r\nThe bazel.MM2za3vz is created tmp.And the gcc is not in this dir.How can be fixed"},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/214692577","html_url":"https://github.com/bazelbuild/bazel/issues/1152#issuecomment-214692577","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1152","id":214692577,"user":{"login":"liumilan","id":5533901,"avatar_url":"https://avatars.githubusercontent.com/u/5533901?v=3","gravatar_id":"","url":"https://api.github.com/users/liumilan","html_url":"https://github.com/liumilan","followers_url":"https://api.github.com/users/liumilan/followers","following_url":"https://api.github.com/users/liumilan/following{/other_user}","gists_url":"https://api.github.com/users/liumilan/gists{/gist_id}","starred_url":"https://api.github.com/users/liumilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liumilan/subscriptions","organizations_url":"https://api.github.com/users/liumilan/orgs","repos_url":"https://api.github.com/users/liumilan/repos","events_url":"https://api.github.com/users/liumilan/events{/privacy}","received_events_url":"https://api.github.com/users/liumilan/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T10:10:40Z","updated_at":"2016-04-26T10:10:40Z","body":"[@sjs_88_78 bazel]$ echo \"x${CC}x\"\r\nxgcc x\r\n\r\n[@sjs_88_78 bazel]$ unset CC\r\n[@sjs_88_78 bazel]$ sh compile.sh \r\nINFO: You can skip this first step by providing a path to the bazel binary as second argument:\r\nINFO:    compile.sh compile /path/to/bazel\r\n馃崈  Building Bazel from scratch......\r\n馃崈  Building Bazel with Bazel.\r\nWARNING: /tmp/bazel.TSZBzmpC/out/external/bazel_tools/tools/cpp/cc_configure.bzl:273:3: PATH=/usr/local/cuda-7.0/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/go/bin:/home/liudewei/bin, CC=gcc.\r\nWARNING: /search/liudewei/tensorflow/bazel/src/main/native/BUILD:46:16: in includes attribute of cc_binary rule //src/main/native:libunix.so: '.' resolves to 'src/main/native' not in 'third_party'. This will be an error in the future.\r\nWARNING: /search/liudewei/tensorflow/bazel/src/main/protobuf/BUILD:37:1: in includes attribute of cc_library rule //src/main/protobuf:command_server_cc_proto: '.' resolves to 'src/main/protobuf' not in 'third_party'. This will be an error in the future. Since this rule was created by the macro 'cc_grpc_library', the error might have been caused by the macro implementation in /search/liudewei/tensorflow/bazel/tools/build_rules/genproto.bzl:104:18.\r\nINFO: Found 1 target...\r\nERROR: /search/liudewei/tensorflow/bazel/src/main/cpp/util/BUILD:24:1: C++ compilation of rule '//src/main/cpp/util:md5' failed: gcc failed: error executing command \r\n  (cd /tmp/bazel.TSZBzmpC/out/bazel && \\\r\n  exec env - \\\r\n    PATH=/usr/local/cuda-7.0/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/go/bin:/home/liudewei/bin \\\r\n  /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wl,-z,-relro,-z,now -B/usr/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -iquote . -iquote bazel-out/local-fastbuild/genfiles -iquote external/bazel_tools -iquote bazel-out/local-fastbuild/genfiles/external/bazel_tools -isystem external/bazel_tools/tools/cpp/gcc3 -no-canonical-prefixes -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__=\"redacted\"' '-D__TIMESTAMP__=\"redacted\"' '-D__TIME__=\"redacted\"' '-frandom-seed=bazel-out/local-fastbuild/bin/src/main/cpp/util/_objs/md5/src/main/cpp/util/md5.pic.o' -MD -MF bazel-out/local-fastbuild/bin/src/main/cpp/util/_objs/md5/src/main/cpp/util/md5.pic.d -fPIC -c src/main/cpp/util/md5.cc -o bazel-out/local-fastbuild/bin/src/main/cpp/util/_objs/md5/src/main/cpp/util/md5.pic.o): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.\r\ngcc: error trying to exec 'cc1plus': execvp: No such file or directory\r\nTarget //src:bazel failed to build\r\nINFO: Elapsed time: 2.922s, Critical Path: 0.04s"}}