google / mysql-ripple

Ripple, a server that can serve as a middleman in MySQL replication
Apache License 2.0
373 stars 46 forks source link

Error during the build (bazel build :all) #19

Open bc-ashokmahajan opened 5 years ago

bc-ashokmahajan commented 5 years ago

Hi, During build (step: /root/bin/bazel build :all), I am encountering following error. Can you please take a look into it:

 /root/bin/bazel build :all
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Call stack for the definition of repository 'com_google_protobuf' which is a git_repository (rule definition at /root/.cache/bazel/_bazel_root/ed5f0021fd3de9b63d37b11c2a4ed8c7/external/bazel_tools/tools/build_defs/repo/git.bzl:181:18):
 - /home/xxxxx/mysql-ripple/WORKSPACE:22:1
ERROR: An error occurred during the fetch of repository 'com_google_protobuf':
   Traceback (most recent call last):
    File "/root/.cache/bazel/_bazel_root/ed5f0021fd3de9b63d37b11c2a4ed8c7/external/bazel_tools/tools/build_defs/repo/git.bzl", line 163
        _clone_or_update(ctx)
    File "/root/.cache/bazel/_bazel_root/ed5f0021fd3de9b63d37b11c2a4ed8c7/external/bazel_tools/tools/build_defs/repo/git.bzl", line 36, in _clone_or_update
        git_repo(ctx, directory)
    File "/root/.cache/bazel/_bazel_root/ed5f0021fd3de9b63d37b11c2a4ed8c7/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 91, in git_repo
        _update(ctx, git_repo)
    File "/root/.cache/bazel/_bazel_root/ed5f0021fd3de9b63d37b11c2a4ed8c7/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 101, in _update
        init(ctx, git_repo)
    File "/root/.cache/bazel/_bazel_root/ed5f0021fd3de9b63d37b11c2a4ed8c7/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 115, in init
        _error(ctx.name, cl, st.stderr)
    File "/root/.cache/bazel/_bazel_root/ed5f0021fd3de9b63d37b11c2a4ed8c7/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 169, in _error
        fail(("error running '%s' while worki...)))
    File "/root/.cache/bazel/_bazel_root/ed5f0021fd3de9b63d37b11c2a4ed8c7/external/bazel_tools/tools/build_defs/repo/git_worker.bzl", line 169, in fail
        " ".join(command)
sequence element must be a string (got 'path'). See https://github.com/bazelbuild/bazel/issues/7802 for information about --incompatible_string_join_requires_strings.
Internal error thrown during build. Printing stack trace: java.util.MissingFormatArgumentException: Format specifier '%s'
    at java.base/java.util.Formatter.format(Unknown Source)
    at java.base/java.util.Formatter.format(Unknown Source)
    at java.base/java.lang.String.format(Unknown Source)
    at com.google.devtools.build.lib.skyframe.SkyframeDependencyResolver.getTargets(SkyframeDependencyResolver.java:145)
    at com.google.devtools.build.lib.analysis.DependencyResolver.dependentNodeMap(DependencyResolver.java:274)
    at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.computeDependencies(ConfiguredTargetFunction.java:562)
    at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.compute(ConfiguredTargetFunction.java:317)
    at com.google.devtools.build.skyframe.AbstractExceptionalParallelEvaluator.bubbleErrorUp(AbstractExceptionalParallelEvaluator.java:495)
    at com.google.devtools.build.skyframe.ParallelEvaluator.bubbleErrorUpExceptionally(ParallelEvaluator.java:77)
    at com.google.devtools.build.skyframe.AbstractExceptionalParallelEvaluator.waitForCompletionAndConstructResult(AbstractExceptionalParallelEvaluator.java:282)
    at com.google.devtools.build.skyframe.AbstractExceptionalParallelEvaluator.doMutatingEvaluation(AbstractExceptionalParallelEvaluator.java:265)
    at com.google.devtools.build.skyframe.AbstractExceptionalParallelEvaluator.evalExceptionally(AbstractExceptionalParallelEvaluator.java:201)
    at com.google.devtools.build.skyframe.ParallelEvaluator.eval(ParallelEvaluator.java:70)
    at com.google.devtools.build.skyframe.InMemoryMemoizingEvaluator.evaluate(InMemoryMemoizingEvaluator.java:205)
    at com.google.devtools.build.skyframe.SequentialBuildDriver.evaluate(SequentialBuildDriver.java:38)
    at com.google.devtools.build.lib.skyframe.SkyframeExecutor.configureTargets(SkyframeExecutor.java:2381)
    at com.google.devtools.build.lib.skyframe.SkyframeBuildView.configureTargets(SkyframeBuildView.java:373)
    at com.google.devtools.build.lib.analysis.BuildView.update(BuildView.java:399)
    at com.google.devtools.build.lib.buildtool.AnalysisPhaseRunner.runAnalysisPhase(AnalysisPhaseRunner.java:198)
    at com.google.devtools.build.lib.buildtool.AnalysisPhaseRunner.execute(AnalysisPhaseRunner.java:110)
    at com.google.devtools.build.lib.buildtool.BuildTool.buildTargets(BuildTool.java:141)
    at com.google.devtools.build.lib.buildtool.BuildTool.processRequest(BuildTool.java:268)
    at com.google.devtools.build.lib.runtime.commands.BuildCommand.exec(BuildCommand.java:98)
    at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.execExclusively(BlazeCommandDispatcher.java:524)
    at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:192)
    at com.google.devtools.build.lib.server.GrpcServerImpl.executeCommand(GrpcServerImpl.java:573)
    at com.google.devtools.build.lib.server.GrpcServerImpl.lambda$run$2(GrpcServerImpl.java:624)
    at java.base/java.lang.Thread.run(Unknown Source)

INFO: Elapsed time: 6.850s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (7 packages loaded, 21 targets configured)
Internal error thrown during build. Printing stack trace: java.util.MissingFormatArgumentException: Format specifier '%s'
    at java.base/java.util.Formatter.format(Unknown Source)
    at java.base/java.util.Formatter.format(Unknown Source)
    at java.base/java.lang.String.format(Unknown Source)
    at com.google.devtools.build.lib.skyframe.SkyframeDependencyResolver.getTargets(SkyframeDependencyResolver.java:145)
    at com.google.devtools.build.lib.analysis.DependencyResolver.dependentNodeMap(DependencyResolver.java:274)
    at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.computeDependencies(ConfiguredTargetFunction.java:562)
    at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.compute(ConfiguredTargetFunction.java:317)
    at com.google.devtools.build.skyframe.AbstractExceptionalParallelEvaluator.bubbleErrorUp(AbstractExceptionalParallelEvaluator.java:495)
    at com.google.devtools.build.skyframe.ParallelEvaluator.bubbleErrorUpExceptionally(ParallelEvaluator.java:77)
    at com.google.devtools.build.skyframe.AbstractExceptionalParallelEvaluator.waitForCompletionAndConstructResult(AbstractExceptionalParallelEvaluator.java:282)
    at com.google.devtools.build.skyframe.AbstractExceptionalParallelEvaluator.doMutatingEvaluation(AbstractExceptionalParallelEvaluator.java:265)
    at com.google.devtools.build.skyframe.AbstractExceptionalParallelEvaluator.evalExceptionally(AbstractExceptionalParallelEvaluator.java:201)
    at com.google.devtools.build.skyframe.ParallelEvaluator.eval(ParallelEvaluator.java:70)
    at com.google.devtools.build.skyframe.InMemoryMemoizingEvaluator.evaluate(InMemoryMemoizingEvaluator.java:205)
    at com.google.devtools.build.skyframe.SequentialBuildDriver.evaluate(SequentialBuildDriver.java:38)
    at com.google.devtools.build.lib.skyframe.SkyframeExecutor.configureTargets(SkyframeExecutor.java:2381)
    at com.google.devtools.build.lib.skyframe.SkyframeBuildView.configureTargets(SkyframeBuildView.java:373)
    at com.google.devtools.build.lib.analysis.BuildView.update(BuildView.java:399)
    at com.google.devtools.build.lib.buildtool.AnalysisPhaseRunner.runAnalysisPhase(AnalysisPhaseRunner.java:198)
    at com.google.devtools.build.lib.buildtool.AnalysisPhaseRunner.execute(AnalysisPhaseRunner.java:110)
    at com.google.devtools.build.lib.buildtool.BuildTool.buildTargets(BuildTool.java:141)
    at com.google.devtools.build.lib.buildtool.BuildTool.processRequest(BuildTool.java:268)
    at com.google.devtools.build.lib.runtime.commands.BuildCommand.exec(BuildCommand.java:98)
    at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.execExclusively(BlazeCommandDispatcher.java:524)
    at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:192)
    at com.google.devtools.build.lib.server.GrpcServerImpl.executeCommand(GrpcServerImpl.java:573)
    at com.google.devtools.build.lib.server.GrpcServerImpl.lambda$run$2(GrpcServerImpl.java:624)
    at java.base/java.lang.Thread.run(Unknown Source)
java.util.MissingFormatArgumentException: Format specifier '%s'
    at java.base/java.util.Formatter.format(Unknown Source)
    at java.base/java.util.Formatter.format(Unknown Source)
    at java.base/java.lang.String.format(Unknown Source)
    at com.google.devtools.build.lib.skyframe.SkyframeDependencyResolver.getTargets(SkyframeDependencyResolver.java:145)
    at com.google.devtools.build.lib.analysis.DependencyResolver.dependentNodeMap(DependencyResolver.java:274)
    at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.computeDependencies(ConfiguredTargetFunction.java:562)
    at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.compute(ConfiguredTargetFunction.java:317)
    at com.google.devtools.build.skyframe.AbstractExceptionalParallelEvaluator.bubbleErrorUp(AbstractExceptionalParallelEvaluator.java:495)
    at com.google.devtools.build.skyframe.ParallelEvaluator.bubbleErrorUpExceptionally(ParallelEvaluator.java:77)
    at com.google.devtools.build.skyframe.AbstractExceptionalParallelEvaluator.waitForCompletionAndConstructResult(AbstractExceptionalParallelEvaluator.java:282)
    at com.google.devtools.build.skyframe.AbstractExceptionalParallelEvaluator.doMutatingEvaluation(AbstractExceptionalParallelEvaluator.java:265)
    at com.google.devtools.build.skyframe.AbstractExceptionalParallelEvaluator.evalExceptionally(AbstractExceptionalParallelEvaluator.java:201)
    at com.google.devtools.build.skyframe.ParallelEvaluator.eval(ParallelEvaluator.java:70)
    at com.google.devtools.build.skyframe.InMemoryMemoizingEvaluator.evaluate(InMemoryMemoizingEvaluator.java:205)
    at com.google.devtools.build.skyframe.SequentialBuildDriver.evaluate(SequentialBuildDriver.java:38)
    at com.google.devtools.build.lib.skyframe.SkyframeExecutor.configureTargets(SkyframeExecutor.java:2381)
    at com.google.devtools.build.lib.skyframe.SkyframeBuildView.configureTargets(SkyframeBuildView.java:373)
    at com.google.devtools.build.lib.analysis.BuildView.update(BuildView.java:399)
    at com.google.devtools.build.lib.buildtool.AnalysisPhaseRunner.runAnalysisPhase(AnalysisPhaseRunner.java:198)
    at com.google.devtools.build.lib.buildtool.AnalysisPhaseRunner.execute(AnalysisPhaseRunner.java:110)
    at com.google.devtools.build.lib.buildtool.BuildTool.buildTargets(BuildTool.java:141)
    at com.google.devtools.build.lib.buildtool.BuildTool.processRequest(BuildTool.java:268)
    at com.google.devtools.build.lib.runtime.commands.BuildCommand.exec(BuildCommand.java:98)
    at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.execExclusively(BlazeCommandDispatcher.java:524)
    at com.google.devtools.build.lib.runtime.BlazeCommandDispatcher.exec(BlazeCommandDispatcher.java:192)
    at com.google.devtools.build.lib.server.GrpcServerImpl.executeCommand(GrpcServerImpl.java:573)
    at com.google.devtools.build.lib.server.GrpcServerImpl.lambda$run$2(GrpcServerImpl.java:624)
FAILED: Build did NOT complete successfully (7 packages loaded, 21 targets configured)
AntoineRqe commented 5 years ago

Hi,

Have you found a way to correct this problem?

pivanof commented 5 years ago

Sorry for not replying earlier. This looks like a problem with bazel itself. Which OS and bazel version this happens on?

AntoineRqe commented 5 years ago

I checked and before bazel 0.28, I could use commit = "HEAD" in my BUILD file but since bazel 0.28, is isn't working anymore. I had to change my BUILD to branch = "master" instead...