Skip to content

Instantly share code, notes, and snippets.

@gdemarcsek
Last active March 7, 2023 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdemarcsek/7aef97f0cfc3ec2e1351c0cb5742796b to your computer and use it in GitHub Desktop.
Save gdemarcsek/7aef97f0cfc3ec2e1351c0cb5742796b to your computer and use it in GitHub Desktop.
jazzer_build_issue.txt
gyorgydemarcsek@Gyorgys-MBP ~/p/jazzer (main)> git branch --show
main
gyorgydemarcsek@Gyorgys-MBP ~/p/jazzer (main)> git rev-parse --short HEAD
dcd70dd
gyorgydemarcsek@Gyorgys-MBP ~/p/jazzer (main) [1]> xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
gyorgydemarcsek@Gyorgys-MBP ~/p/jazzer (main) [1]> clang --version
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: arm64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
gyorgydemarcsek@Gyorgys-MBP ~/p/jazzer (main)> bazelisk version
Bazelisk version: development
Build label: 6.0.0
Build target: bazel-out/darwin_arm64-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Mon Dec 19 15:52:58 2022 (1671465178)
Build timestamp: 1671465178
Build timestamp as int: 1671465178
gyorgydemarcsek@Gyorgys-MBP ~/p/jazzer (main)> java -version
openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment Temurin-17.0.2+8 (build 17.0.2+8)
OpenJDK 64-Bit Server VM Temurin-17.0.2+8 (build 17.0.2+8, mixed mode, sharing)
gyorgydemarcsek@Gyorgys-MBP ~/p/jazzer (main)> mvn --version
Apache Maven 3.9.0 (9b58d2bad23a66be161c4664ef21ce219c2c8584)
Maven home: /opt/homebrew/Cellar/maven/3.9.0/libexec
Java version: 19.0.2, vendor: Homebrew, runtime: /opt/homebrew/Cellar/openjdk/19.0.2/libexec/openjdk.jdk/Contents/Home
Default locale: en_NL, platform encoding: UTF-8
OS name: "mac os x", version: "12.6.3", arch: "aarch64", family: "mac"
gyorgydemarcsek@Gyorgys-MBP ~/p/jazzer (main)> bazelisk clean && bazelisk build //... && bazelisk test //... && bazelisk run --local_cpu_resources=8 //examples:CommonsTextFuzzer
INFO: Starting clean (this may take a while). Consider using --async if the clean takes more than several minutes.
INFO: Repository com_github_jetbrains_kotlin instantiated at:
/Users/gyorgydemarcsek/projects/jazzer/WORKSPACE.bazel:10:12: in <toplevel>
/Users/gyorgydemarcsek/projects/jazzer/init.bzl:27:24: in jazzer_init
/private/var/tmp/_bazel_gyorgydemarcsek/071a3ae2fb95e15eb05d82d6a2a2dd28/external/io_bazel_rules_kotlin/src/main/starlark/core/repositories/initialize.bzl:48:31: in kotlin_repositories
Repository rule kotlin_compiler_repository defined at:
/private/var/tmp/_bazel_gyorgydemarcsek/071a3ae2fb95e15eb05d82d6a2a2dd28/external/io_bazel_rules_kotlin/src/main/starlark/core/repositories/compiler.bzl:22:45: in <toplevel>
INFO: Repository remotejdk11_macos instantiated at:
/DEFAULT.WORKSPACE.SUFFIX:109:6: in <toplevel>
/private/var/tmp/_bazel_gyorgydemarcsek/071a3ae2fb95e15eb05d82d6a2a2dd28/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
/private/var/tmp/_bazel_gyorgydemarcsek/071a3ae2fb95e15eb05d82d6a2a2dd28/external/bazel_tools/tools/jdk/remote_java_repository.bzl:48:17: in remote_java_repository
Repository rule http_archive defined at:
/private/var/tmp/_bazel_gyorgydemarcsek/071a3ae2fb95e15eb05d82d6a2a2dd28/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
INFO: Repository jazzer_libfuzzer instantiated at:
/Users/gyorgydemarcsek/projects/jazzer/WORKSPACE.bazel:6:20: in <toplevel>
/Users/gyorgydemarcsek/projects/jazzer/repositories.bzl:177:10: in jazzer_dependencies
/private/var/tmp/_bazel_gyorgydemarcsek/071a3ae2fb95e15eb05d82d6a2a2dd28/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe
Repository rule http_archive defined at:
/private/var/tmp/_bazel_gyorgydemarcsek/071a3ae2fb95e15eb05d82d6a2a2dd28/external/bazel_tools/tools/build_defs/repo/http.bzl:372:31: in <toplevel>
ERROR: /private/var/tmp/_bazel_gyorgydemarcsek/071a3ae2fb95e15eb05d82d6a2a2dd28/external/fmeum_rules_jni/jni/tools/libjvm_stub/BUILD.bazel:72:21: While resolving toolchains for target @fmeum_rules_jni//jni/tools/libjvm_stub:current_java_runtime: No matching toolchains found for types @bazel_tools//tools/cpp:toolchain_type.
To debug, rerun with --toolchain_resolution_debug='@bazel_tools//tools/cpp:toolchain_type'
If platforms or toolchains are a new concept for you, we'd encourage reading https://bazel.build/concepts/platforms-intro.
ERROR: Analysis of target '//:jazzer' failed; build aborted:
INFO: Elapsed time: 1.435s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (193 packages loaded, 1430 targets configured)
currently loading: @org_checkerframework_checker_compat_qual_2_5_5//file ... (13 packages)
Fetching repository @local_config_xcode; Building xcode-locator
Fetching repository @local_config_cc; Building xcode-locator
Fetching repository @jazzer_jacoco; starting
Fetching ...ydemarcsek/071a3ae2fb95e15eb05d82d6a2a2dd28/external/jazzer_jacoco; Extracting v0.8.8.tar.gz
Fetching https://github.com/JetBrains/kotlin/releases/download/v1.7.22/kotlin-compiler-1.7.22.zip
Fetching https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu11.56.19-ca-jdk11.0.15-macosx_x64.tar.gz
# and then on my branch, running without issues, warnings aside:
gyorgydemarcsek@Gyorgys-MBP ~/p/jazzer (feat/add-script-engine-sanitizer)> git branch --show
feat/add-script-engine-sanitizer
gyorgydemarcsek@Gyorgys-MBP ~/p/jazzer (feat/add-script-engine-sanitizer)> git rev-parse --short HEAD
9926129
gyorgydemarcsek@Gyorgys-MBP ~/p/jazzer (feat/add-script-engine-sanitizer)> bazelisk clean && bazelisk build //... && bazelisk test //... && bazelisk run --local_cpu_resources=8 //examples:CommonsTextFuzzer
Starting local Bazel server and connecting to it...
INFO: Starting clean.
INFO: Analyzed 439 targets (285 packages loaded, 3265 targets configured).
INFO: Found 439 targets...
INFO: From Linking external/remote_java_tools/singlejar_cc_bin [for tool]:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking external/remote_java_tools/ijar_cc_binary [for tool]:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking driver/src/main/native/com/code_intelligence/jazzer/driver/libjazzer_driver.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking driver/src/main/native/com/code_intelligence/jazzer/libjazzer_preload.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking driver/src/main/native/com/code_intelligence/jazzer/driver/libjazzer_signal_handler.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking driver/src/main/native/com/code_intelligence/jazzer/driver/libjazzer_fuzzed_data_provider.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking tests/src/test/native/com/example/libnative_value_profile_fuzzer.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking launcher/jazzer:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking agent/src/jmh/native/com/code_intelligence/jazzer/runtime/libfuzzer_callbacks.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking examples/src/main/native/com/example/libnative_asan.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking examples/src/main/native/com/example/libnative_ubsan.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From jarjar @//agent/src/main/java/com/code_intelligence/jazzer/runtime:jazzer_bootstrap_unstripped:
Fully-qualified classname does not match jar entry:
jar entry: META-INF/versions/9/module-info.class
class name: module-info.class
Omitting META-INF/versions/9/module-info.class.
INFO: From KotlinCompile @//agent/src/main/java/com/code_intelligence/jazzer/instrumentor:instrumentor { kt: 11, java: 1, srcjars: 0 } for darwin_arm64:
agent/src/main/java/com/code_intelligence/jazzer/instrumentor/TraceDataFlowInstrumentor.kt:54:6: warning: this annotation should be used with the compiler argument '-opt-in=kotlin.RequiresOptIn'
@OptIn(ExperimentalUnsignedTypes::class)
^
agent/src/main/java/com/code_intelligence/jazzer/instrumentor/TraceDataFlowInstrumentor.kt:54:6: warning: this annotation should be used with the compiler argument '-opt-in=kotlin.RequiresOptIn'
@OptIn(ExperimentalUnsignedTypes::class)
^
INFO: From Linking external/com_google_absl/absl/base/libspinlock_wait.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking external/com_google_absl/absl/base/libthrow_delegate.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking external/com_google_absl/absl/base/libraw_logging_internal.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking external/com_google_absl/absl/base/liblog_severity.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking external/com_google_absl/absl/base/libbase.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking external/fmeum_rules_jni/jni/tools/libjvm_stub/libbazel.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking external/com_google_absl/absl/types/libbad_optional_access.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking launcher/libjvm_tooling_lib.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking external/com_google_absl/absl/numeric/libint128.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking external/com_google_absl/absl/strings/libinternal.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking external/com_google_absl/absl/strings/libstrings.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking external/fmeum_rules_jni/jni/tools/libjvm_stub/liblibjvm_stub_lib.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking external/bazel_tools/tools/cpp/runfiles/librunfiles.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From KotlinCompile @//agent/src/main/java/com/code_intelligence/jazzer/agent:agent_lib { kt: 3, java: 0, srcjars: 0 } for darwin_arm64:
agent/src/main/java/com/code_intelligence/jazzer/agent/RuntimeInstrumentor.kt:49:6: warning: this annotation should be used with the compiler argument '-opt-in=kotlin.RequiresOptIn'
@OptIn(kotlin.time.ExperimentalTime::class)
^
agent/src/main/java/com/code_intelligence/jazzer/agent/RuntimeInstrumentor.kt:125:6: warning: this annotation should be used with the compiler argument '-opt-in=kotlin.RequiresOptIn'
@OptIn(kotlin.time.ExperimentalTime::class)
^
agent/src/main/java/com/code_intelligence/jazzer/agent/RuntimeInstrumentor.kt:49:6: warning: this annotation should be used with the compiler argument '-opt-in=kotlin.RequiresOptIn'
@OptIn(kotlin.time.ExperimentalTime::class)
^
agent/src/main/java/com/code_intelligence/jazzer/agent/RuntimeInstrumentor.kt:125:6: warning: this annotation should be used with the compiler argument '-opt-in=kotlin.RequiresOptIn'
@OptIn(kotlin.time.ExperimentalTime::class)
^
INFO: From Linking external/com_google_absl/absl/strings/libstr_format_internal.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking external/googletest/libgtest.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking driver/src/main/native/com/code_intelligence/jazzer/driver/libcoverage_tracker.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking launcher/libjazzer_main.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking driver/src/main/native/com/code_intelligence/jazzer/driver/libjazzer_fuzzer_callbacks.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking driver/src/main/native/com/code_intelligence/jazzer/driver/libfuzzed_data_provider.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking launcher/jvm_tooling_test:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking driver/src/main/native/com/code_intelligence/jazzer/driver/libinit_jazzer_preload.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking driver/src/main/native/com/code_intelligence/jazzer/driver/libfuzz_target_runner.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking driver/src/main/native/com/code_intelligence/jazzer/driver/liblibfuzzer_callbacks.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking external/googletest/libgtest_main.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking driver/src/main/native/com/code_intelligence/jazzer/driver/fuzzed_data_provider_test:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From Linking driver/src/main/native/com/code_intelligence/jazzer/driver/libsanitizer_symbols.dylib:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From KotlinCompile @//agent/src/test/java/com/code_intelligence/jazzer/instrumentor:coverage_instrumentation_test_kt_ { kt: 1, java: 3, srcjars: 0 } for darwin_arm64:
agent/src/test/java/com/code_intelligence/jazzer/instrumentor/CoverageInstrumentationTest.kt:137:6: warning: this annotation should be used with the compiler argument '-opt-in=kotlin.RequiresOptIn'
@OptIn(ExperimentalUnsignedTypes::class)
^
agent/src/test/java/com/code_intelligence/jazzer/instrumentor/CoverageInstrumentationTest.kt:137:6: warning: this annotation should be used with the compiler argument '-opt-in=kotlin.RequiresOptIn'
@OptIn(ExperimentalUnsignedTypes::class)
^
INFO: From Linking launcher/fuzzed_data_provider_test:
ld: warning: -undefined dynamic_lookup may not work with chained fixups
INFO: From jarjar @//driver/src/main/java/com/code_intelligence/jazzer:jazzer_shaded:
Fully-qualified classname does not match jar entry:
jar entry: META-INF/versions/9/module-info.class
class name: module-info.class
Omitting META-INF/versions/9/module-info.class.
Fully-qualified classname does not match jar entry:
jar entry: META-INF/versions/9/kotlin/reflect/jvm/internal/impl/serialization/deserialization/builtins/BuiltInsResourceLoader.class
class name: kotlin/reflect/jvm/internal/impl/serialization/deserialization/builtins/BuiltInsResourceLoader.class
Omitting META-INF/versions/9/kotlin/reflect/jvm/internal/impl/serialization/deserialization/builtins/BuiltInsResourceLoader.class.
INFO: Elapsed time: 54.049s, Critical Path: 40.21s
INFO: 1877 processes: 775 internal, 772 darwin-sandbox, 2 local, 328 worker.
INFO: Build completed successfully, 1877 total actions
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment