gflags/example

Remote connection/protocol failed with: execution failed

Opened this issue · 0 comments

I tried to build your project but failed and the outpouts as following:

INFO: Invocation ID: 96ad545e-971a-4221-8416-c1241e6ec543
Loading:
Loading: 0 packages loaded
Analyzing: target //foo:foo (1 packages loaded, 0 targets configured)
Analyzing: target //foo:foo (8 packages loaded, 64 targets configured)
Analyzing: target //foo:foo (8 packages loaded, 64 targets configured)
Analyzing: target //foo:foo (8 packages loaded, 64 targets configured)
Analyzing: target //foo:foo (8 packages loaded, 64 targets configured)
Analyzing: target //foo:foo (8 packages loaded, 64 targets configured)
Analyzing: target //foo:foo (8 packages loaded, 64 targets configured)
INFO: SHA256 (https://github.com/gflags/gflags/archive/30dbc81fb5ffdc98ea9b14b1918bfe4e8779b26e.tar.gz) = 245314f19b558d38e91a875c3b0a2d03443669ccca37d6ef59d1a44731bb1c8c
INFO: Analysed target //foo:foo (10 packages loaded, 83 targets configured).
INFO: Found 1 target...
[0 / 16] [-----] BazelWorkspaceStatusAction stable-status.txt ... (4 actions, 0 running)
ERROR: C:/users/www/_bazel_www/q7wvpysd/external/com_github_gflags_gflags/BUILD:10:16: Executing genrule @com_github_gflags_gflags//:gflags_declare_h failed (Exit -1). Note: Remote connection/protocol failed with: execution failed
Action failed to execute: java.io.IOException: ERROR: src/main/native/windows/processes-jni.cc(454): CreateProcessW("E:\msys64\usr\bin\bash.exe" -c "source external/bazel_tools/tools/genrule/genrule-setup.sh; awk '{ gsub(/@GFLAGS_NAMESPACE@/, \"gflags\"); gsub(/@(HAVE_STDINT_H|HAVE_SYS_TYPES_H|HAVE_INTTYPES_H|(...)): 系统找不到指定的文件。

Target //foo:foo failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 11.960s, Critical Path: 0.06s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

my bazel version is 0.22.0
the build cmd is bazel build --incompatible_remove_native_git_repository=false --compiler=msys-gcc foo.
I searched a lot but didn't get anything. I need your help, thx!