{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/82","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/82/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/82/events","html_url":"https://github.com/tensorflow/tensorflow/issues/82","id":116058009,"number":82,"title":"bazel compile error","user":{"login":"qm1004","id":5670483,"avatar_url":"https://avatars.githubusercontent.com/u/5670483?v=3","gravatar_id":"","url":"https://api.github.com/users/qm1004","html_url":"https://github.com/qm1004","followers_url":"https://api.github.com/users/qm1004/followers","following_url":"https://api.github.com/users/qm1004/following{/other_user}","gists_url":"https://api.github.com/users/qm1004/gists{/gist_id}","starred_url":"https://api.github.com/users/qm1004/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qm1004/subscriptions","organizations_url":"https://api.github.com/users/qm1004/orgs","repos_url":"https://api.github.com/users/qm1004/repos","events_url":"https://api.github.com/users/qm1004/events{/privacy}","received_events_url":"https://api.github.com/users/qm1004/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-10T08:07:31Z","updated_at":"2015-11-11T03:24:50Z","closed_at":null,"body":"with gcc (GCC) 4.8.2.\r\ngit clone ;\r\ncd bazel ;\r\n./compile.sh; \r\nIs there any requirement of gcc version?\r\nI get this:\r\n<pre>WARNING: Sandboxed execution is not supported on your system and thus hermeticity of actions cannot be guaranteed. See http://bazel.io/docs/bazel-user-manual.html#sandboxing for more information. You can turn off this warning via --ignore_unsupported_sandboxing.\r\nINFO: Found 1 target...\r\nINFO: From Compiling src/main/tools/build-runfiles.cc:\r\ngcc: unrecognized option '-no-canonical-prefixes'\r\nsrc/main/tools/build-runfiles.cc: In member function 'void RunfilesCreator::EnsureDirReadAndWritePerms(const std::string&)':\r\nsrc/main/tools/build-runfiles.cc:342: warning: comparison between signed and unsigned integer expressions\r\nAt global scope:\r\ncc1plus: warning: unrecognized command line option \"-Wno-free-nonheap-object\"\r\nINFO: From Compiling src/main/cpp/util/port.cc:\r\ngcc: unrecognized option '-no-canonical-prefixes'\r\nINFO: From Compiling src/main/cpp/util/errors.cc:\r\ngcc: unrecognized option '-no-canonical-prefixes'\r\nINFO: From Compiling src/main/native/process.cc:\r\ngcc: unrecognized option '-no-canonical-prefixes'\r\nINFO: From Linking src/main/tools/build-runfiles:\r\ngcc: unrecognized option '-no-canonical-prefixes'\r\nINFO: From Compiling src/main/cpp/util/strings.cc:\r\ngcc: unrecognized option '-no-canonical-prefixes'\r\nsrc/main/cpp/util/strings.cc: In function 'void blaze_util::JoinStrings(const std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, char, std::string*)':\r\nsrc/main/cpp/util/strings.cc:90: error: expected initializer before ':' token\r\nsrc/main/cpp/util/strings.cc:305: error: expected primary-expression at end of input\r\nsrc/main/cpp/util/strings.cc:305: error: expected ';' at end of input\r\nsrc/main/cpp/util/strings.cc:305: error: expected primary-expression at end of input\r\nsrc/main/cpp/util/strings.cc:305: error: expected ')' at end of input\r\nsrc/main/cpp/util/strings.cc:305: error: expected statement at end of input\r\nsrc/main/cpp/util/strings.cc:89: warning: unused variable 'first'\r\nsrc/main/cpp/util/strings.cc:305: error: expected '}' at end of input\r\nsrc/main/cpp/util/strings.cc: At global scope:\r\nsrc/main/cpp/util/strings.cc:305: error: expected '}' at end of input\r\ncc1plus: warning: unrecognized command line option \"-Wno-free-nonheap-object\"\r\nERROR: /data/qianmin/project/bazel/src/main/cpp/util/BUILD:31:1: C++ compilation of rule '//src/main/cpp/util:strings' failed: gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -fPIE -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -DBLAZE_OPENSOURCE -iquote . ... (remaining 18 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.\r\nTarget //src:bazel failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 7.541s, Critical Path: 1.41s</pre>"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/155651265","html_url":"https://github.com/tensorflow/tensorflow/issues/82#issuecomment-155651265","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/82","id":155651265,"user":{"login":"piergiaj","id":2308050,"avatar_url":"https://avatars.githubusercontent.com/u/2308050?v=3","gravatar_id":"","url":"https://api.github.com/users/piergiaj","html_url":"https://github.com/piergiaj","followers_url":"https://api.github.com/users/piergiaj/followers","following_url":"https://api.github.com/users/piergiaj/following{/other_user}","gists_url":"https://api.github.com/users/piergiaj/gists{/gist_id}","starred_url":"https://api.github.com/users/piergiaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piergiaj/subscriptions","organizations_url":"https://api.github.com/users/piergiaj/orgs","repos_url":"https://api.github.com/users/piergiaj/repos","events_url":"https://api.github.com/users/piergiaj/events{/privacy}","received_events_url":"https://api.github.com/users/piergiaj/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T03:24:50Z","updated_at":"2015-11-11T03:24:50Z","body":"I get a similar error using gcc 4.8.1 when I run the command\r\n    \r\n    bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer\r\n\r\nI have built bazel 0.1.0 following the instructions and it didn't give any errors. It successfully clones all the repos, but as soon as it starts to compile I get these errors:\r\n\r\n    INFO: Found 1 target...\r\n    INFO: From Compiling google/protobuf/src/google/protobuf/util/internal/json_stream_parser.cc:\r\n    gcc: unrecognized option '-no-canonical-prefixes'\r\n    cc1plus: error: unrecognized command line option \"-Wunused-but-set-parameter\"\r\n    cc1plus: error: unrecognized command line option \"-Wno-free-nonheap-object\"\r\n    cc1plus: error: unrecognized command line option \"-Wno-builtin-macro-redefined\"\r\n    tensorflow/google/protobuf/BUILD:63:1: C++ compilation of rule '//google/protobuf:protobuf' failed: gcc failed: error executing command /usr/bin/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 ... (remaining 31 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.\r\n    Target //tensorflow/cc:tutorials_example_trainer failed to build\r\n\r\n"}}