google / binexport

Export disassemblies into Protocol Buffers
Apache License 2.0
1.05k stars 204 forks source link

Ghidra extension build fails #111

Closed cyrozap closed 1 year ago

cyrozap commented 1 year ago

I'm trying to build this extension for Ghidra 10.3, but I'm getting the following error:

> Task :extractIncludeProto FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':extractIncludeProto' (type 'ProtobufExtract').
  - Gradle detected a problem with the following location: '<path redacted>/binexport/java/lib/protobuf-java-3.21.1.jar'.

    Reason: Task ':extractIncludeProto' uses this output of task ':copyDependencies' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

    Possible solutions:
      1. Declare task ':copyDependencies' as an input of ':extractIncludeProto'.
      2. Declare an explicit dependency on ':copyDependencies' from ':extractIncludeProto' using Task#dependsOn.
      3. Declare an explicit dependency on ':copyDependencies' from ':extractIncludeProto' using Task#mustRunAfter.

    Please refer to https://docs.gradle.org/8.1.1/userguide/validation_problems.html#implicit_dependency for more details about this problem.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/8.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s
2 actionable tasks: 2 executed

The OS I'm using to run the build is Arch Linux, and I get the same error regardless of whether I select Java 17 or Java 20. If you need any more information from me to help diagnose this issue, please let me know.

cblichmann commented 1 year ago

Try to build with Gradle 7.4.2, I didn't get around to fixing the Gradle files for later versions, yet.

With that, you should get something like this (untested) build: ghidra_10.3_PUBLIC_20230515_BinExport.zip

cyrozap commented 1 year ago

Thanks, building with Gradle 7.4.2 worked.

cblichmann commented 1 year ago

Also uploaded new binaries here: https://github.com/google/binexport/releases/tag/v12-20230515-ghidra_10.3