Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed on macos #2

Open
yatesco opened this issue Dec 3, 2021 · 0 comments
Open

failed on macos #2

yatesco opened this issue Dec 3, 2021 · 0 comments

Comments

@yatesco
Copy link

yatesco commented Dec 3, 2021

Hi there - it failed after brew install bazelisk and then installing the dependencies on the bazel run //src:main-bin:

ERROR: /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/external/bazel_tools/tools/jdk/BUILD:346:14: Action external/bazel_tools/tools/jdk/platformclasspath.jar failed (Exit 1): sandbox-exec failed: error executing command 
  (cd /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/sandbox/darwin-sandbox/186/execroot/__main__ && \
  exec env - \
    TMPDIR=/var/folders/18/_tk6h6yj0hl72t43k_jrnsgw0000gn/T/ \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/sandbox/darwin-sandbox/186/sandbox.sb /var/tmp/_bazel_coliny/install/e74efe234cbfbe8b17b6baeb8c33e7ff/process-wrapper '--timeout=0' '--kill_delay=15' external/remotejdk11_macos/bin/java -XX:+IgnoreUnrecognizedVMOptions '--add-exports=jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED' -cp bazel-out/darwin-fastbuild/bin/external/bazel_tools/tools/jdk/platformclasspath_classes:external/remotejdk11_macos/lib/tools.jar DumpPlatformClassPath bazel-out/darwin-fastbuild/bin/external/bazel_tools/tools/jdk/platformclasspath.jar external/local_jdk) sandbox-exec failed: error executing command 
  (cd /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/sandbox/darwin-sandbox/186/execroot/__main__ && \
  exec env - \
    TMPDIR=/var/folders/18/_tk6h6yj0hl72t43k_jrnsgw0000gn/T/ \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/sandbox/darwin-sandbox/186/sandbox.sb /var/tmp/_bazel_coliny/install/e74efe234cbfbe8b17b6baeb8c33e7ff/process-wrapper '--timeout=0' '--kill_delay=15' external/remotejdk11_macos/bin/java -XX:+IgnoreUnrecognizedVMOptions '--add-exports=jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED' -cp bazel-out/darwin-fastbuild/bin/external/bazel_tools/tools/jdk/platformclasspath_classes:external/remotejdk11_macos/lib/tools.jar DumpPlatformClassPath bazel-out/darwin-fastbuild/bin/external/bazel_tools/tools/jdk/platformclasspath.jar external/local_jdk)
Exception in thread "main" java.lang.IllegalArgumentException: external/local_jdk
	at jdk.compiler/com.sun.tools.javac.file.Locations$SystemModulesLocationHandler.update(Locations.java:1853)
	at jdk.compiler/com.sun.tools.javac.file.Locations$SystemModulesLocationHandler.handleOption(Locations.java:1798)
	at jdk.compiler/com.sun.tools.javac.file.Locations.handleOption(Locations.java:2062)
	at jdk.compiler/com.sun.tools.javac.file.BaseFileManager.handleOption(BaseFileManager.java:269)
	at jdk.compiler/com.sun.tools.javac.file.BaseFileManager$2.handleFileManagerOption(BaseFileManager.java:222)
	at jdk.compiler/com.sun.tools.javac.main.Option.process(Option.java:1138)
	at jdk.compiler/com.sun.tools.javac.main.Option.handleOption(Option.java:1086)
	at jdk.compiler/com.sun.tools.javac.file.BaseFileManager.handleOption(BaseFileManager.java:232)
	at jdk.compiler/com.sun.tools.javac.main.Arguments.doProcessArgs(Arguments.java:390)
	at jdk.compiler/com.sun.tools.javac.main.Arguments.processArgs(Arguments.java:347)
	at jdk.compiler/com.sun.tools.javac.main.Arguments.init(Arguments.java:246)
	at jdk.compiler/com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:185)
	at DumpPlatformClassPath.dumpJDK9AndNewerBootClassPath(DumpPlatformClassPath.java:106)
	at DumpPlatformClassPath.main(DumpPlatformClassPath.java:67)
Target //src:main-bin failed to build
INFO: Elapsed time: 69.539s, Critical Path: 24.48s
INFO: 185 processes: 185 darwin-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully

Subsequent runs:

➜  urep-scala git:(main) bazel run //src:main-bin
DEBUG: Rule 'rules_pkg' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1596141723 -0400"
DEBUG: Repository rules_pkg instantiated at:
  no stack (--record_rule_instantiation_callstack not enabled)
Repository rule git_repository defined at:
  /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/external/bazel_tools/tools/build_defs/repo/git.bzl:195:33: in <toplevel>
INFO: Analyzed target //src:main-bin (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
SUBCOMMAND: # @bazel_tools//tools/jdk:platformclasspath [action 'Action external/bazel_tools/tools/jdk/platformclasspath.jar', configuration: 12c9f5b38ca9023465976bb4b98a011d02814ec73529bdcfee2e76a895d9598f]
(cd /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/execroot/__main__ && \
  exec env - \
  external/remotejdk11_macos/bin/java -XX:+IgnoreUnrecognizedVMOptions '--add-exports=jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED' -cp bazel-out/darwin-fastbuild/bin/external/bazel_tools/tools/jdk/platformclasspath_classes:external/remotejdk11_macos/lib/tools.jar DumpPlatformClassPath bazel-out/darwin-fastbuild/bin/external/bazel_tools/tools/jdk/platformclasspath.jar external/local_jdk)
ERROR: /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/external/bazel_tools/tools/jdk/BUILD:346:14: Action external/bazel_tools/tools/jdk/platformclasspath.jar failed (Exit 1): sandbox-exec failed: error executing command 
  (cd /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/sandbox/darwin-sandbox/189/execroot/__main__ && \
  exec env - \
    TMPDIR=/var/folders/18/_tk6h6yj0hl72t43k_jrnsgw0000gn/T/ \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/sandbox/darwin-sandbox/189/sandbox.sb /var/tmp/_bazel_coliny/install/e74efe234cbfbe8b17b6baeb8c33e7ff/process-wrapper '--timeout=0' '--kill_delay=15' external/remotejdk11_macos/bin/java -XX:+IgnoreUnrecognizedVMOptions '--add-exports=jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED' -cp bazel-out/darwin-fastbuild/bin/external/bazel_tools/tools/jdk/platformclasspath_classes:external/remotejdk11_macos/lib/tools.jar DumpPlatformClassPath bazel-out/darwin-fastbuild/bin/external/bazel_tools/tools/jdk/platformclasspath.jar external/local_jdk) sandbox-exec failed: error executing command 
  (cd /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/sandbox/darwin-sandbox/189/execroot/__main__ && \
  exec env - \
    TMPDIR=/var/folders/18/_tk6h6yj0hl72t43k_jrnsgw0000gn/T/ \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/sandbox/darwin-sandbox/189/sandbox.sb /var/tmp/_bazel_coliny/install/e74efe234cbfbe8b17b6baeb8c33e7ff/process-wrapper '--timeout=0' '--kill_delay=15' external/remotejdk11_macos/bin/java -XX:+IgnoreUnrecognizedVMOptions '--add-exports=jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED' -cp bazel-out/darwin-fastbuild/bin/external/bazel_tools/tools/jdk/platformclasspath_classes:external/remotejdk11_macos/lib/tools.jar DumpPlatformClassPath bazel-out/darwin-fastbuild/bin/external/bazel_tools/tools/jdk/platformclasspath.jar external/local_jdk)
Exception in thread "main" java.lang.IllegalArgumentException: external/local_jdk
	at jdk.compiler/com.sun.tools.javac.file.Locations$SystemModulesLocationHandler.update(Locations.java:1853)
	at jdk.compiler/com.sun.tools.javac.file.Locations$SystemModulesLocationHandler.handleOption(Locations.java:1798)
	at jdk.compiler/com.sun.tools.javac.file.Locations.handleOption(Locations.java:2062)
	at jdk.compiler/com.sun.tools.javac.file.BaseFileManager.handleOption(BaseFileManager.java:269)
	at jdk.compiler/com.sun.tools.javac.file.BaseFileManager$2.handleFileManagerOption(BaseFileManager.java:222)
	at jdk.compiler/com.sun.tools.javac.main.Option.process(Option.java:1138)
	at jdk.compiler/com.sun.tools.javac.main.Option.handleOption(Option.java:1086)
	at jdk.compiler/com.sun.tools.javac.file.BaseFileManager.handleOption(BaseFileManager.java:232)
	at jdk.compiler/com.sun.tools.javac.main.Arguments.doProcessArgs(Arguments.java:390)
	at jdk.compiler/com.sun.tools.javac.main.Arguments.processArgs(Arguments.java:347)
	at jdk.compiler/com.sun.tools.javac.main.Arguments.init(Arguments.java:246)
	at jdk.compiler/com.sun.tools.javac.api.JavacTool.getTask(JavacTool.java:185)
	at DumpPlatformClassPath.dumpJDK9AndNewerBootClassPath(DumpPlatformClassPath.java:106)
	at DumpPlatformClassPath.main(DumpPlatformClassPath.java:67)
Target //src:main-bin failed to build
ERROR: /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/external/io_bazel_rules_scala/src/java/io/bazel/rulesscala/scalac/BUILD:3:12 Action external/bazel_tools/tools/jdk/platformclasspath.jar failed (Exit 1): sandbox-exec failed: error executing command 
  (cd /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/sandbox/darwin-sandbox/189/execroot/__main__ && \
  exec env - \
    TMPDIR=/var/folders/18/_tk6h6yj0hl72t43k_jrnsgw0000gn/T/ \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/sandbox/darwin-sandbox/189/sandbox.sb /var/tmp/_bazel_coliny/install/e74efe234cbfbe8b17b6baeb8c33e7ff/process-wrapper '--timeout=0' '--kill_delay=15' external/remotejdk11_macos/bin/java -XX:+IgnoreUnrecognizedVMOptions '--add-exports=jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED' -cp bazel-out/darwin-fastbuild/bin/external/bazel_tools/tools/jdk/platformclasspath_classes:external/remotejdk11_macos/lib/tools.jar DumpPlatformClassPath bazel-out/darwin-fastbuild/bin/external/bazel_tools/tools/jdk/platformclasspath.jar external/local_jdk) sandbox-exec failed: error executing command 
  (cd /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/sandbox/darwin-sandbox/189/execroot/__main__ && \
  exec env - \
    TMPDIR=/var/folders/18/_tk6h6yj0hl72t43k_jrnsgw0000gn/T/ \
  /usr/bin/sandbox-exec -f /private/var/tmp/_bazel_coliny/a83db79adaf47a3cde98435555f04b76/sandbox/darwin-sandbox/189/sandbox.sb /var/tmp/_bazel_coliny/install/e74efe234cbfbe8b17b6baeb8c33e7ff/process-wrapper '--timeout=0' '--kill_delay=15' external/remotejdk11_macos/bin/java -XX:+IgnoreUnrecognizedVMOptions '--add-exports=jdk.compiler/com.sun.tools.javac.platform=ALL-UNNAMED' -cp bazel-out/darwin-fastbuild/bin/external/bazel_tools/tools/jdk/platformclasspath_classes:external/remotejdk11_macos/lib/tools.jar DumpPlatformClassPath bazel-out/darwin-fastbuild/bin/external/bazel_tools/tools/jdk/platformclasspath.jar external/local_jdk)
INFO: Elapsed time: 0.393s, Critical Path: 0.22s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant