bazelbuild / rules_gwt

Bazel rules for GWT
Apache License 2.0
19 stars 14 forks source link

Failed to build on Ubuntu 18.04 with JDK 11 #23

Closed meteorcloudy closed 5 years ago

meteorcloudy commented 5 years ago

https://buildkite.com/bazel/rules-gwt/builds/75#63496e61-792d-420f-b036-2d73dea73ec2

ERROR: /workdir/example/src/main/java/io/bazel/sample/BUILD:7:1: Couldn't build file example/src/main/java/io/bazel/sample/SampleApp.war: error executing shell command: '/bin/bash -c set -e
--
  | external/local_jdk/bin/java -Xmx1G -cp bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp-deps_deploy.jar:bazel-out/k8-fastbuild/bin/example/src/main/jav...' failed (Exit 1) bash failed: error executing command
  | (cd /home/bazel/.cache/bazel/_bazel_bazel/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/36/execroot/io_bazel_rules_gwt && \
  | exec env - \
  | /bin/bash -c 'set -e
  | external/local_jdk/bin/java -Xmx1G -cp bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp-deps_deploy.jar:bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp-deps_deploy-src.jar com.google.gwt.dev.Compiler -war bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.gwt_output/. -deploy bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.gwt_output/WEB-INF/deploy -extra bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.extra -strict -sourceLevel 1.8 io.bazel.sample.SampleApp
  | cp -LR example/src/main/java/io/bazel/sample/public/WEB-INF example/src/main/java/io/bazel/sample/public/css example/src/main/java/io/bazel/sample/public/index.html bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.gwt_output
  | rm -rf bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.gwt_output/gwt-unitCache
  | find bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.gwt_output -type f \| sed '\''s:^bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.gwt_output/::'\'' > file_list
  | root=`pwd`
  | cd bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.gwt_output; $root/external/bazel_tools/tools/zip/zipper/zipper Cc ../SampleApp.war @$root/file_list
  | cd $root
  | ')
  | Execution platform: @bazel_tools//platforms:host_platform
  |  
  | Use --sandbox_debug to see verbose messages from the sandbox: bash failed: error executing command
  | (cd /home/bazel/.cache/bazel/_bazel_bazel/ec321eb2cc2d0f8f91b676b6d4c66c29/sandbox/linux-sandbox/36/execroot/io_bazel_rules_gwt && \
  | exec env - \
  | /bin/bash -c 'set -e
  | external/local_jdk/bin/java -Xmx1G -cp bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp-deps_deploy.jar:bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp-deps_deploy-src.jar com.google.gwt.dev.Compiler -war bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.gwt_output/. -deploy bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.gwt_output/WEB-INF/deploy -extra bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.extra -strict -sourceLevel 1.8 io.bazel.sample.SampleApp
  | cp -LR example/src/main/java/io/bazel/sample/public/WEB-INF example/src/main/java/io/bazel/sample/public/css example/src/main/java/io/bazel/sample/public/index.html bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.gwt_output
  | rm -rf bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.gwt_output/gwt-unitCache
  | find bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.gwt_output -type f \| sed '\''s:^bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.gwt_output/::'\'' > file_list
  | root=`pwd`
  | cd bazel-out/k8-fastbuild/bin/example/src/main/java/io/bazel/sample/SampleApp.war.gwt_output; $root/external/bazel_tools/tools/zip/zipper/zipper Cc ../SampleApp.war @$root/file_list
  | cd $root
  | ')
  | Execution platform: @bazel_tools//platforms:host_platform
  |  
  | Use --sandbox_debug to see verbose messages from the sandbox
  | May 07, 2019 9:50:24 AM java.util.prefs.FileSystemPreferences$1 run
  | WARNING: Couldn't create user preferences directory. User preferences are unusable.
  | May 07, 2019 9:50:24 AM java.util.prefs.FileSystemPreferences$1 run
  | WARNING: java.io.IOException: No such file or directory
  | Compiling module io.bazel.sample.SampleApp
  | [ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core' either directly or indirectly (most often by inheriting module 'com.google.gwt.user.User')
  | INFO: Elapsed time: 17.948s, Critical Path: 4.84s
  | INFO: 37 processes: 37 remote cache hit.
  | FAILED: Build did NOT complete successfully

/cc @philwo @ekuefler

meteorcloudy commented 5 years ago

The project is disabled in Bazel's downstream test due to this issue, please help fixing.

ekuefler commented 5 years ago

Relevant line here is WARNING: java.io.IOException: No such file or directory. Not sure what changes are in Java 11 that would interfere with GWT's ability to find IOException.