1) Git clone wycheproff revision 189df209602bda4262034a1e19e84b1fe4330fd8
2) Install bagel release 0.14.0: https://github.com/bazelbuild/bazel/releases/download/0.14.0/bazel-0.14.0-installer-darwin-x86_64.sh
3) Export JAVA_HOME to SDK to test
4) Run tests : bazel test OpenJDKAllTests --genrule_strategy=standalone --spawn_strategy=standalone --verbose_failure
However, When I attempt the same steps as above inside a docker container, I get an error. Below is the test run output:
17:42:30 Extracting Bazel installation...
17:42:38 Starting local Bazel server and connecting to it...
17:42:42 .........................................
17:42:43 Loading:
17:42:43 Loading: 0 packages loaded
17:42:44 Loading: 0 packages loaded
17:42:44 currently loading:
17:42:46 Analyzing: target //:OpenJDKAllTests (2 packages loaded)
17:42:46 ERROR: in target '//external:cc_toolchain': no such package '@local_config_cc//': Traceback (most recent call last):
17:42:46 File "/root/.cache/bazel/_bazel_root/4af82d3e9bd7b193f65dd70758adcba4/external/bazel_tools/tools/cpp/cc_configure.bzl", line 44
17:42:46 configure_unix_toolchain(repository_ctx, cpu_value, overriden...)
17:42:46 File "/root/.cache/bazel/_bazel_root/4af82d3e9bd7b193f65dd70758adcba4/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 429, in configure_unix_toolchain
17:42:46 _find_generic(repository_ctx, "gcc", "CC", overriden...)
17:42:46 File "/root/.cache/bazel/_bazel_root/4af82d3e9bd7b193f65dd70758adcba4/external/bazel_tools/tools/cpp/unix_cc_configure.bzl", line 418, in _find_generic
17:42:46 auto_configure_fail(msg)
17:42:46 File "/root/.cache/bazel/_bazel_root/4af82d3e9bd7b193f65dd70758adcba4/external/bazel_tools/tools/cpp/lib_cc_configure.bzl", line 84, in auto_configure_fail
17:42:46 fail(("\n%sAuto-Configuration Error:%...)))
17:42:46
17:42:46 Auto-Configuration Error: Cannot find gcc or CC; either correct your path or set the CC environment variable
17:42:46 INFO: Elapsed time: 6.762s
17:42:46 INFO: 0 processes.
17:42:46 FAILED: Build did NOT complete successfully (2 packages loaded)
17:42:46 ERROR: Couldn't start the build. Unable to run tests
17:42:46 FAILED: Build did NOT complete successfully (2 packages loaded)
Please note, I have tried with Bazel version 0.14.0, and 0.14.1.
Is there anything I am missing?
Any help would be highly appreciated!
Regards,
Mesbah