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

Ghidra extension build fails #111

Closed
cyrozap opened this issue May 14, 2023 · 3 comments
Closed

Ghidra extension build fails #111

cyrozap opened this issue May 14, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@cyrozap
Copy link

cyrozap commented May 14, 2023

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 cblichmann added the bug Something isn't working label May 15, 2023
@cblichmann
Copy link
Member

cblichmann commented May 15, 2023

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
Copy link
Author

cyrozap commented May 15, 2023

Thanks, building with Gradle 7.4.2 worked.

@cblichmann
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants