Issue with build on Mac (probably again)
See original GitHub issueI would like to contribute and followed by instructions.
- bazel clean
- ANDROID_HOME installed;
- bazel sync
- bazel build //… failed with
INFO: Analyzed 590 targets (275 packages loaded, 3893 targets configured).
INFO: Found 590 targets...
ERROR: /Users/name/IdeaProjects/dagger/javatests/dagger/internal/codegen/BUILD:54:13: //javatests/dagger/internal/codegen:MembersInjectionTest: missing input file 'external/local_jdk/lib/tools.jar', owner: '@local_jdk//:lib/tools.jar'
ERROR: /Users/name/IdeaProjects/dagger/javatests/dagger/internal/codegen/BUILD:54:13 1 input file(s) do not exist
INFO: Elapsed time: 0.916s, Critical Path: 0.05s
INFO: 1 process: 1 darwin-sandbox.
FAILED: Build did NOT complete successfully
- bazel test //… failed with
INFO: Analyzed 590 targets (0 packages loaded, 0 targets configured).
INFO: Found 339 targets and 251 test targets...
ERROR: /Users/name/IdeaProjects/dagger/javatests/dagger/internal/codegen/BUILD:54:13: //javatests/dagger/internal/codegen:ElidedFactoriesTest: missing input file 'external/local_jdk/lib/tools.jar', owner: '@local_jdk//:lib/tools.jar'
ERROR: /Users/name/IdeaProjects/dagger/javatests/dagger/internal/codegen/BUILD:54:13 1 input file(s) do not exist
INFO: Elapsed time: 0.156s, Critical Path: 0.03s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
//javatests/dagger:internal/DoubleCheckTest NO STATUS
//javatests/dagger:internal/InstanceFactoryTest NO STATUS
...all test are failed
FAILED: Build did NOT complete successfully
- ./util/install-local-snapshot.sh
ERROR: /Users/name/IdeaProjects/dagger/java/dagger/hilt/android/processor/BUILD:42:19: error executing shell command: '/bin/bash -c external/local_jdk/bin/javadoc -sourcepath $(find * -type d -name "*java" -print0 | tr "\0" :) dagger.hilt.processor dagger.hilt.android.processor -use -subpackages dagger.hilt.process...' failed (Exit 2) bash failed: error executing command /bin/bash -c ... (remaining 1 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
javadoc: error - No source files for package dagger.hilt.processor
1 error
INFO: Elapsed time: 1.727s, Critical Path: 1.60s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
As I understand the last one is just javadoc generation. I removed it by removing ‘javadoc_root_packages’ and ‘javadoc_srcs’ from …/processor/BUILD.
Thank you.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Why new Macs break your Docker build, and how to fix it
The cause of the problem: a different CPU instruction set. Solving the problem by ensuring the code is installable or compilable. Solving ...
Read more >Build on macOS 12 Monterey fails on MacBook Pro 14" with ...
I followed the instuctions for the building process on macOS using homebrew but it failed. ... It's probably a general clang-specific issue.
Read more >How to Fix “application is damaged, can't be used to install ...
The easiest way to resolve the “This copy of the Install macOS .app application is damaged, and can't be used to install macOS.”...
Read more >Mac Installation Errors You May Encounter and How to Fix Them
In this guide, we will look at some of the installation problems that tend to occur with new releases of the Mac operating...
Read more >How to Install macOS Ventura or Monterey on Unsupported ...
After a while, your Mac will probably restart on its own. If it brings you back to the screen shown in step 17,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can you verify your
JAVA_HOME
env variable? It should also be pointing to your JDK 8 location. Usually/Library/Java/JavaVirtualMachines/jdk-8-latest/Contents/Home
in Mac@bcorso @danysantiago After some time I decided to reinstall bazel 3.4.0. But via XCode which is recommended, not via homebrew. And all worked… 2 tests are fails, but most likely i can solve this problem. Thank you.