{"action":"opened","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/1826","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1826/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1826/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1826/events","html_url":"https://github.com/bazelbuild/bazel/issues/1826","id":179160012,"number":1826,"title":"Windows: cannot build bazel at 78b9cab","user":{"login":"laszlocsomor","id":10532244,"avatar_url":"https://avatars.githubusercontent.com/u/10532244?v=3","gravatar_id":"","url":"https://api.github.com/users/laszlocsomor","html_url":"https://github.com/laszlocsomor","followers_url":"https://api.github.com/users/laszlocsomor/followers","following_url":"https://api.github.com/users/laszlocsomor/following{/other_user}","gists_url":"https://api.github.com/users/laszlocsomor/gists{/gist_id}","starred_url":"https://api.github.com/users/laszlocsomor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laszlocsomor/subscriptions","organizations_url":"https://api.github.com/users/laszlocsomor/orgs","repos_url":"https://api.github.com/users/laszlocsomor/repos","events_url":"https://api.github.com/users/laszlocsomor/events{/privacy}","received_events_url":"https://api.github.com/users/laszlocsomor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-26T07:46:03Z","updated_at":"2016-09-26T07:46:03Z","closed_at":null,"body":"This fails both with `./compile.sh` and with `bazel build src:bazel`:\r\n\r\n```\r\nINFO: From Building src/tools/android/java/com/google/devtools/build/android/ziputils/libziputils_lib.jar (12 source files):\r\nNote: Some input files use unchecked or unsafe operations.\r\nNote: Recompile with -Xlint:unchecked for details.\r\nERROR: C:/work/bazel2/third_party/ijar/BUILD:30:1: C++ compilation of rule '//third_party/ijar:zlib_client' failed: gcc failed: error executing command C:/tools/msys64/usr/bin/gcc -std=gnu++0x -MD -MF bazel-out/local-fastbuild/bin/third_party/ijar/_objs/zlib_client/third_party/ijar/zlib_client.d ... (remaining 19 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.\r\nthird_party/ijar/zlib_client.cc: In member function 'int devtools_ijar::Decompressor::error(const char*, ...)':\r\nthird_party/ijar/zlib_client.cc:157:42: error: 'vsnprintf' was not declared in this scope\r\n   vsnprintf(errmsg, 4 * PATH_MAX, fmt, ap);\r\n                                          ^\r\nERROR: C:/work/bazel2/third_party/protobuf/BUILD:125:1: output 'third_party/protobuf/_objs/protobuf_clib/third_party/protobuf/src/google/protobuf/stubs/mathlimits.o' was not created.\r\nTarget //src:bazel failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 58.634s, Critical Path: 35.60s\r\n```\r\n\r\nI also see https://github.com/bazelbuild/bazel/issues/1743 (but it's likely because my Bazel binary was built before that bug was fixed):\r\n\r\n```\r\n$ bazel build src:bazel --stamp --embed_label=\"git:78b9cab\"\r\nERROR: Tools symlink creation failed: failed to copy 'C:/tools/msys64/var/tmp/_bazel_laszlocsomor/install/7661bc63cf1206fc339d263724ef3d4c/_embedded_binaries/embedded_tools/src/tools/android/java/com/google/devtools/build/android/ideinfo/classes_deploy.jar': C:\\tools\\msys64\\var\\tmp\\Bazel\\MGAgSgPx\\execroot\\bazel2\\_bin\\classes_deploy.jar (Access is denied).\r\nINFO: Elapsed time: 0.671s\r\n```"}}
{"actor":{"display_login":"laszlocsomor"}}