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

Latest Jazzer (with Bazel 5) doesn't work with existing OSS-Fuzz integration #7193

Closed
oliverchang opened this issue Jan 27, 2022 · 1 comment · Fixed by #7194
Closed

Latest Jazzer (with Bazel 5) doesn't work with existing OSS-Fuzz integration #7193

oliverchang opened this issue Jan 27, 2022 · 1 comment · Fixed by #7194

Comments

@oliverchang
Copy link
Collaborator

Error (from e.g. https://github.com/google/oss-fuzz/runs/4958764951?check_suite_focus=true)

+ git clone --depth=1 https://github.com/CodeIntelligenceTesting/jazzer
Cloning into 'jazzer'...
+ cd jazzer
+ bazel build --java_runtime_version=localjdk_15 -c opt --cxxopt=-stdlib=libc++ --linkopt=-lc++ //agent:jazzer_agent_deploy.jar //driver:jazzer_driver //driver:jazzer_driver_asan //driver:jazzer_driver_ubsan //agent:jazzer_api_deploy.jar
2022/01/26 22:48:22 Downloading https://releases.bazel.build/5.0.0/release/bazel-5.0.0-linux-x86_64...
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
    currently loading: agent
Analyzing: 5 targets (2 packages loaded, 0 targets configured)
Analyzing: 5 targets (41 packages loaded, 282 targets configured)
Analyzing: 5 targets (47 packages loaded, 298 targets configured)
Analyzing: 5 targets (58 packages loaded, 352 targets configured)
INFO: Repository remotejdk11_linux instantiated at:
  /DEFAULT.WORKSPACE.SUFFIX:41:6: in <toplevel>
  /root/.cache/bazel/_bazel_root/e3c2be7f6be7a238950c8073a90fc93c/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
  /root/.cache/bazel/_bazel_root/e3c2be7f6be7a238950c8073a90fc93c/external/bazel_tools/tools/jdk/remote_java_repository.bzl:48:17: in remote_java_repository
Repository rule http_archive defined at:
  /root/.cache/bazel/_bazel_root/e3c2be7f6be7a238950c8073a90fc93c/external/bazel_tools/tools/build_defs/repo/http.bzl:364:31: in <toplevel>
ERROR: /src/jazzer/agent/src/main/java/com/code_intelligence/jazzer/agent/BUILD.bazel:3:15: While resolving toolchains for target //agent/src/main/java/com/code_intelligence/jazzer/agent:agent_lib: no matching toolchains found for types @bazel_tools//tools/jdk:runtime_toolchain_type
ERROR: Analysis of target '//agent:jazzer_agent_deploy.jar' failed; build aborted: 
INFO: Elapsed time: 13.968s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (60 packages loaded, 366 targets configured)
FAILED: Build did NOT complete successfully (60 packages loaded, 366 targets configured)
The command '/bin/sh -c install_java.sh' returned a non-zero code: 1

@fmeum @0roman

@oliverchang
Copy link
Collaborator Author

@fmeum could you please help with this?

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

Successfully merging a pull request may close this issue.

1 participant