-
Notifications
You must be signed in to change notification settings - Fork 153
Description
Describe the bug
$ bazel build src/main/java/com/google/j2cl/samples/helloworld:helloworld
Starting local Bazel server and connecting to it...
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
currently loading: src/main/java/com/google/j2cl/samples/helloworld
Analyzing: target //src/main/java/com/google/j2cl/samples/helloworld:helloworld (1 packages loaded)
Analyzing: target //src/main/java/com/google/j2cl/samples/helloworld:helloworld (1 packages loaded, 0 targets configured)
Analyzing: target //src/main/java/com/google/j2cl/samples/helloworld:helloworld (9 packages loaded, 20 targets configured)
Analyzing: target //src/main/java/com/google/j2cl/samples/helloworld:helloworld (36 packages loaded, 23 targets configured)
WARNING: C:/users/fujitsu/_bazel_fujitsu/7zwbdliw/external/bazel_tools/tools/jdk/BUILD:125:6: in alias rule @bazel_tools//tools/jdk:jar: target '@bazel_tools//tools/jdk:jar' depends on deprecated target '@local_jdk//:jar': Don't depend on targets in the JDK workspace; use @bazel_tools//tools/jdk:current_java_runtime instead (see bazelbuild/bazel#5594)
Analyzing: target //src/main/java/com/google/j2cl/samples/helloworld:helloworld (61 packages loaded, 496 targets configured)
Analyzing: target //src/main/java/com/google/j2cl/samples/helloworld:helloworld (77 packages loaded, 1112 targets configured)
Analyzing: target //src/main/java/com/google/j2cl/samples/helloworld:helloworld (114 packages loaded, 1632 targets configured)
Analyzing: target //src/main/java/com/google/j2cl/samples/helloworld:helloworld (146 packages loaded, 2679 targets configured)
WARNING: C:/users/fujitsu/_bazel_fujitsu/7zwbdliw/external/com_google_jsinterop_annotations-j2cl/java/jsinterop/annotations/BUILD:18:12: in j2cl_java_import rule @com_google_jsinterop_annotations-j2cl//java/jsinterop/annotations:annotations-j2cl: target '@com_google_jsinterop_annotations-j2cl//java/jsinterop/annotations:annotations-j2cl' depends on deprecated target '@local_jdk//:jar': Don't depend on targets in the JDK workspace; use @bazel_tools//tools/jdk:current_java_runtime instead (see bazelbuild/bazel#5594)
WARNING: C:/users/fujitsu/_bazel_fujitsu/7zwbdliw/external/com_google_j2cl/jre/java/BUILD:53:12: in j2cl_java_import rule @com_google_j2cl//jre/java:javaemul_internal_annotations-j2cl: target '@com_google_j2cl//jre/java:javaemul_internal_annotations-j2cl' depends on deprecated target '@local_jdk//:jar': Don't depend on targets in the JDK workspace; use @bazel_tools//tools/jdk:current_java_runtime instead (see bazelbuild/bazel#5594)
WARNING: C:/users/fujitsu/_bazel_fujitsu/7zwbdliw/external/com_google_j2cl/jre/java/BUILD:167:13: in j2cl_library rule @com_google_j2cl//jre/java:jre: target '@com_google_j2cl//jre/java:jre' depends on deprecated target '@local_jdk//:jar': Don't depend on targets in the JDK workspace; use @bazel_tools//tools/jdk:current_java_runtime instead (see bazelbuild/bazel#5594)
WARNING: C:/entwicklung/projekte/zuericher/j2cl/samples/helloworld/src/main/java/com/google/j2cl/samples/helloworldlib/BUILD:14:13: in j2cl_library rule //src/main/java/com/google/j2cl/samples/helloworldlib:helloworldlib: target '//src/main/java/com/google/j2cl/samples/helloworldlib:helloworldlib' depends on deprecated target '@local_jdk//:jar': Don't depend on targets in the JDK workspace; use @bazel_tools//tools/jdk:current_java_runtime instead (see bazelbuild/bazel#5594)
INFO: Analyzed target //src/main/java/com/google/j2cl/samples/helloworld:helloworld (201 packages loaded, 2931 targets configured).
INFO: Found 1 target...
[0 / 21] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[4 / 36] [Prepa] Extracting interface @com_google_code_findbugs_jsr305//:com_google_code_findbugs_jsr305 ... (2 actions, 1 running)
[16 / 105] [Scann] Compiling src/google/protobuf/api.pb.cc
[18 / 105] Compiling src/google/protobuf/api.pb.cc; 2s local ... (4 actions, 3 running)
[20 / 105] Compiling src/google/protobuf/wire_format.cc; 3s local ... (4 actions running)
[24 / 105] Compiling src/google/protobuf/util/internal/protostream_objectsource.cc; 2s local ... (4 actions running)
[27 / 105] Compiling src/google/protobuf/util/internal/protostream_objectwriter.cc; 4s local ... (4 actions running)
[33 / 105] Compiling src/google/protobuf/util/internal/object_writer.cc; 2s local ... (4 actions running)
[39 / 105] Compiling src/google/protobuf/util/internal/datapiece.cc; 2s local ... (4 actions running)
[45 / 105] Compiling src/google/protobuf/text_format.cc; 4s local ... (4 actions running)
[53 / 105] Compiling src/google/protobuf/io/printer.cc; 2s local ... (4 actions running)
[59 / 105] Compiling src/google/protobuf/compiler/parser.cc; 5s local ... (4 actions running)
[67 / 187] Compiling src/google/protobuf/descriptor.cc; 5s local ... (4 actions running)
[73 / 187] Compiling src/google/protobuf/compiler/cpp/cpp_message.cc; 7s local ... (4 actions running)
[77 / 187] Compiling src/google/protobuf/compiler/command_line_interface.cc; 11s local ... (4 actions running)
[89 / 187] Compiling src/google/protobuf/compiler/cpp/cpp_helpers.cc; 5s local ... (4 actions running)
[107 / 187] Compiling src/google/protobuf/compiler/java/java_message_builder.cc; 1s local ... (4 actions running)
[124 / 187] Compiling src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc; 2s local ... (4 actions running)
[140 / 187] Compiling src/google/protobuf/compiler/php/php_generator.cc; 3s local ... (4 actions running)
[167 / 217] Compiling src/google/protobuf/arenastring.cc; 1s local ... (4 actions running)
[227 / 336] Compiling src/google/protobuf/compiler/python/python_generator.cc [for host]; 3s local ... (4 actions running)
[253 / 336] Compiling src/google/protobuf/compiler/java/java_generator.cc [for host]; 3s local ... (4 actions running)
[288 / 336] Compiling src/google/protobuf/compiler/cpp/cpp_message.cc [for host]; 4s local ... (4 actions running)
[342 / 419] Compiling src/google/protobuf/compiler/parser.cc [for host]; 5s local ... (4 actions running)
[399 / 454] Linking external/com_google_protobuf/protoc.exe [for host]; 1s local ... (2 actions running)
[442 / 499] Building external/com_google_protobuf/java/core/libcore.jar (37 source files, 1 source jar); 36s multiplex-worker ... (4 actions running)
INFO: From Executing genrule @io_bazel_rules_kotlin//src/main/kotlin/io/bazel/kotlin/builder:builder_kt_jar [for host]:
external\io_bazel_rules_kotlin\src\main\kotlin\io\bazel\kotlin\builder\tasks\BazelWorker.kt:121:9: warning: unreachable code
throw RuntimeException("drop through")
^
external\io_bazel_rules_kotlin\src\main\kotlin\io\bazel\kotlin\builder\tasks\KotlinBuilder.kt:142:64: warning: 'toUpperCase(): String' is deprecated. Use uppercase() instead.
platform = checkNotNull(Platform.valueOf(it[1].toUpperCase())) {
^
external\io_bazel_rules_kotlin\src\main\kotlin\io\bazel\kotlin\builder\tasks\KotlinBuilder.kt:145:64: warning: 'toUpperCase(): String' is deprecated. Use uppercase() instead.
ruleKind = checkNotNull(RuleKind.valueOf(it[2].toUpperCase())) {
^
external\io_bazel_rules_kotlin\src\main\kotlin\io\bazel\kotlin\builder\utils\BazelUtils.kt:26:59: warning: 'toLowerCase(): String' is deprecated. Use lowercase() instead.
private val isWindows = System.getProperty("os.name").toLowerCase().indexOf("win") >= 0
^
external\io_bazel_rules_kotlin\src\main\kotlin\io\bazel\kotlin\builder\utils\TaskUtils.kt:24:75: warning: 'toLowerCase(): String' is deprecated. Use lowercase() instead.
val CompilationTaskInfo.bazelRuleKind: String get() = "kt_${platform.name.toLowerCase()}${ruleKind.name.toLowerCase()}"
^
external\io_bazel_rules_kotlin\src\main\kotlin\io\bazel\kotlin\builder\utils\TaskUtils.kt:24:106: warning: 'toLowerCase(): String' is deprecated. Use lowercase() instead.
val CompilationTaskInfo.bazelRuleKind: String get() = "kt${platform.name.toLowerCase()}_${ruleKind.name.toLowerCase()}"
^
INFO: From Building external/com_google_j2cl/transpiler/java/com/google/j2cl/transpiler/ast/libast.jar (112 source files) and running annotation processors (AutoAnnotationProcessor, AutoOneOfProcessor, AutoValueProcessor, J2clAstProcessor):
warning: File for type 'com.google.j2cl.transpiler.ast.AbstractVisitor' created in the last round will not be subject to annotation processing.
warning: File for type 'com.google.j2cl.transpiler.ast.AbstractRewriter' created in the last round will not be subject to annotation processing.
warning: File for type 'com.google.j2cl.transpiler.ast.ProcessorPrivate' created in the last round will not be subject to annotation processing.
[473 / 503] Building external/com_google_j2cl/transpiler/java/com/google/j2cl/transpiler/passes/libpasses.jar (153 source files) and running annotation processors (AutoAnnotationProcessor, AutoOneOfProcessor, AutoValueProcessor, J2clAstProcessor); 10s multiplex-worker
ERROR: C:/users/fujitsu/_bazel_fujitsu/7zwbdliw/external/com_google_j2cl/jre/java/BUILD:167:13: Transpiling to JavaScript @com_google_j2cl//jre/java:jre failed: (Exit 1): BazelJ2clBuilder.exe failed: error executing command bazel-out\x64_windows-opt-exec-2B5CBBC6\bin\external\com_google_j2cl\transpiler\java\com\google\j2cl\transpiler\BazelJ2clBuilder.exe ... (remaining 1 argument skipped)
Error: Unused native file 'java/lang/Class.native.js'.
Error: Unused native file 'java/lang/IntegralToString.native.js'.
Error: Unused native file 'javaemul/internal/Casts.native.js'.
Error: Unused native file 'javaemul/internal/ConsoleLogger.native.js'.
Error: Unused native file 'javaemul/internal/HashCodes.native.js'.
Error: Unused native file 'javaemul/internal/JsUtils.native.js'.
Error: Unused native file 'javaemul/internal/Objects.native.js'.
Error: Unused native file 'javaemul/internal/ThrowableUtils.native.js'.
Error: Unused native file 'javaemul/internal/ValueType.native.js'.
9 error(s), 0 warning(s).
Target //src/main/java/com/google/j2cl/samples/helloworld:helloworld failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 487.683s, Critical Path: 107.17s
INFO: 490 processes: 9 internal, 440 local, 41 worker.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
To Reproduce
I have checked out the master an tried to run bazel build src/main/java/com/google/j2cl/samples/helloworld:helloworld